Added ImageView::SetImage instead of NativeImageSource::SetSource
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Mon, 27 Mar 2017 10:57:54 +0000 (19:57 +0900)
committertaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 1 Jun 2017 04:43:48 +0000 (13:43 +0900)
 - Current dali SetSource should will need KeepRendering
 - Same widget apps will have a sync issue by KeepRendering in current dali.

Change-Id: Idb25fc2e4438fc32c58fedb56ff87ed085ec397b

internal/widget_view/widget_view_impl.cpp

index 166da2d..5c326c8 100644 (file)
@@ -921,8 +921,13 @@ bool WidgetView::IsWidgetImageView()
 
 void WidgetView::UpdateImageSource( tbm_surface_h source )
 {
-  mImageSource->SetSource( source );
-  Dali::Stage::GetCurrent().KeepRendering( 0.0f );
+  mImageSource = Dali::NativeImageSource::New( source );
+  Dali::NativeImage image = Dali::NativeImage::New( *mImageSource );
+
+  if( mWidgetImageView )
+  {
+    mWidgetImageView.SetImage( image );
+  }
 }
 
 void WidgetView::ConnectSignal( tizen_remote_surface* surface )