Update forcely when creating a new texture using NativeImage. 74/205774/5
authorSunghyun kim <scholb.kim@samsung.com>
Thu, 9 May 2019 06:00:48 +0000 (15:00 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 16 May 2019 00:49:03 +0000 (00:49 +0000)
When adaptor is paused, Dali can't unref tbm_surface.
To avoid this problem, DALi need to update forcely when creating a new texture using NativeImage.

Change-Id: I69807ef47f46e58c6825c37cc3882e67b16fb011

dali/internal/event/rendering/texture-impl.cpp

index 3fb61f7..02e7484 100644 (file)
@@ -41,6 +41,10 @@ TexturePtr Texture::New( NativeImageInterface& nativeImageInterface )
 {
   TexturePtr texture( new Texture( &nativeImageInterface ) );
   texture->Initialize();
+
+  // Request event processing and update forcely.
+  texture->mEventThreadServices.GetRenderController().RequestProcessEventsOnIdle( true );
+  texture->mEventThreadServices.ForceNextUpdate();
   return texture;
 }