}
}
+void ImageView::OnStageConnection( int depth )
+{
+ if( mImage )
+ {
+ mImage.UploadedSignal().Emit( mImage );
+ }
+
+ Dali::ResourceImage resourceImage = Dali::ResourceImage::DownCast( mImage );
+ if( resourceImage )
+ {
+ resourceImage.LoadingFinishedSignal().Emit( resourceImage );
+ }
+
+ Control::OnStageConnection( depth ); // Enabled visuals will be put on stage
+}
+
Vector3 ImageView::GetNaturalSize()
{
if( mVisual )
// the property map contains only the custom shader
else if( ( map->Count() == 1u )&&( shaderValue ) )
{
- impl.mShaderMap = *( shaderValue->GetMap() );
-
- if( !impl.mUrl.empty() )
- {
- impl.SetImage( impl.mUrl, impl.mImageSize );
- }
- else if( impl.mImage )
- {
- impl.SetImage( impl.mImage );
- }
- else if( !impl.mPropertyMap.Empty() )
+ Property::Map* shaderMap = shaderValue->GetMap();
+ if( shaderMap )
{
- impl.SetImage( impl.mPropertyMap );
+ impl.mShaderMap = *shaderMap;
+
+ if( !impl.mUrl.empty() )
+ {
+ impl.SetImage( impl.mUrl, impl.mImageSize );
+ }
+ else if( impl.mImage )
+ {
+ impl.SetImage( impl.mImage );
+ }
+ else if( !impl.mPropertyMap.Empty() )
+ {
+ impl.SetImage( impl.mPropertyMap );
+ }
}
}
}