From: suhyung Eom Date: Tue, 13 Dec 2016 10:19:45 +0000 (+0900) Subject: Revert "[3.0] Fix rendering issue by tbm_surface and eglSwapBuffers in native render... X-Git-Tag: submit/tizen/20170120.063242~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dda1acf780cea3e6f7760357f248727a0e9299d3;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Revert "[3.0] Fix rendering issue by tbm_surface and eglSwapBuffers in native render surface" This reverts commit 8835b8f521facfd691ef5463972b3cde73f638af. Change-Id: I47caed4e281fec9a98048385148b53bf24002552 --- diff --git a/adaptors/tizen/native-render-surface-tizen.cpp b/adaptors/tizen/native-render-surface-tizen.cpp index 3799b0e00..c202bccd2 100644 --- a/adaptors/tizen/native-render-surface-tizen.cpp +++ b/adaptors/tizen/native-render-surface-tizen.cpp @@ -186,6 +186,11 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract Internal::Adaptor::EglImplementation& eglImpl = static_cast( egl ); eglImpl.SwapBuffers(); + if( mImpl->mThreadSynchronization ) + { + mImpl->mThreadSynchronization->PostRenderStarted(); + } + { ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition ); @@ -203,9 +208,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(); } + + if( mImpl->mThreadSynchronization ) + { + mImpl->mThreadSynchronization->PostRenderWaitForCompletion(); + } } void NativeRenderSurface::StopRender() @@ -255,7 +265,6 @@ void NativeRenderSurface::CreateNativeRenderable() void NativeRenderSurface::ReleaseSurface() { - ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition ); if( mImpl->mConsumeSurface ) { tbm_surface_queue_release( mImpl->mTbmQueue, mImpl->mConsumeSurface );