Change-Id: I0eed4a040cb86468fb649a062b6d3f2f2b13dbd1
properties[Dali::Toolkit::Visual::Property::SHADER]=shader;
properties[Dali::Toolkit::ImageVisual::Property::URL] = url;
- Dali::Toolkit::InitializeVisual( self, mVisual, properties );
- RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, self, mVisual );
+ mVisual = Toolkit::VisualFactory::Get().CreateVisual( properties );
+ RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, mVisual );
mVisual.SetName("imageVisual");
RelayoutRequest();