[3.0] Fixed lock up issue when EvasPlugin is resized 08/95008/1
authortaeyoon <taeyoon0.lee@samsung.com>
Mon, 24 Oct 2016 05:01:15 +0000 (14:01 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 2 Nov 2016 06:00:20 +0000 (15:00 +0900)
Change-Id: I23eeb8f834dd1e39f66c77d9379d9e734d690483

adaptors/tizen/native-render-surface-tizen.cpp

index 3799b0e..0c94474 100644 (file)
@@ -186,6 +186,11 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract
   Internal::Adaptor::EglImplementation& eglImpl = static_cast<Internal::Adaptor::EglImplementation&>( egl );
   eglImpl.SwapBuffers();
 
+  if( mImpl->mThreadSynchronization )
+  {
+    mImpl->mThreadSynchronization->PostRenderStarted();
+  }
+
   {
     ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition );
 
@@ -206,6 +211,11 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract
     // Tell the event-thread to render the tbm_surface
     mImpl->mRenderNotification->Trigger();
   }
+
+  if( mImpl->mThreadSynchronization )
+  {
+    mImpl->mThreadSynchronization->PostRenderWaitForCompletion();
+  }
 }
 
 void NativeRenderSurface::StopRender()