From 670698c96a90ba6f39edf4bdb5aa0c0791393336 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Fri, 20 Jan 2017 11:17:19 +0900 Subject: [PATCH] Revert "[Tizen] Fix rendering issue by tbm_surface and eglSwapBuffers in native render surface" This reverts commit efb181048bc27d34c8337f230d09c0450b27a3d7. Change-Id: Iaf39687d83ff466de4cc53bcf41e0c907239109d --- adaptors/tizen/native-render-surface-tizen.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/adaptors/tizen/native-render-surface-tizen.cpp b/adaptors/tizen/native-render-surface-tizen.cpp index 3799b0e..c202bcc 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 ); -- 2.7.4