Revert "[3.0] Fix rendering issue by tbm_surface and eglSwapBuffers in native render... 50/97650/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:13:06 +0000 (09:13 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:13:11 +0000 (09:13 +0900)
This reverts commit 49431448de387e087cd282658f98de7ebd5199d5.

Change-Id: Ifd4c3b31c2b871f40bc88be3a0a7da4d7f58ab67

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

index 3799b0e..a205f2e 100644 (file)
@@ -186,9 +186,10 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract
   Internal::Adaptor::EglImplementation& eglImpl = static_cast<Internal::Adaptor::EglImplementation&>( egl );
   eglImpl.SwapBuffers();
 
-  {
-    ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition );
+  // flush gl instruction queue
+  glAbstraction.Flush();
 
+  {
     if( tbm_surface_queue_can_acquire( mImpl->mTbmQueue, 1 ) )
     {
       if( tbm_surface_queue_acquire( mImpl->mTbmQueue, &mImpl->mConsumeSurface ) != TBM_SURFACE_QUEUE_ERROR_NONE )
@@ -203,9 +204,14 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract
   if( mImpl->mRenderNotification )
   {
     // use notification trigger
-    // Tell the event-thread to render the tbm_surface
+    // Tell the event-thread to render the pixmap
     mImpl->mRenderNotification->Trigger();
   }
+  else
+  {
+    // FIXME
+  }
+
 }
 
 void NativeRenderSurface::StopRender()
@@ -255,7 +261,6 @@ void NativeRenderSurface::CreateNativeRenderable()
 
 void NativeRenderSurface::ReleaseSurface()
 {
-  ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition );
   if( mImpl->mConsumeSurface )
   {
     tbm_surface_queue_release( mImpl->mTbmQueue, mImpl->mConsumeSurface );