From: dongsug.song Date: Tue, 15 Nov 2016 00:13:06 +0000 (+0900) Subject: Revert "[3.0] Fix rendering issue by tbm_surface and eglSwapBuffers in native render... X-Git-Tag: accepted/tizen/common/20161115.200910~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ee7f49081f217aa3e87cfc252700f809149b9db;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 49431448de387e087cd282658f98de7ebd5199d5. Change-Id: Ifd4c3b31c2b871f40bc88be3a0a7da4d7f58ab67 --- diff --git a/adaptors/tizen/native-render-surface-tizen.cpp b/adaptors/tizen/native-render-surface-tizen.cpp index 3799b0e..a205f2e 100644 --- a/adaptors/tizen/native-render-surface-tizen.cpp +++ b/adaptors/tizen/native-render-surface-tizen.cpp @@ -186,9 +186,10 @@ void NativeRenderSurface::PostRender( EglInterface& egl, Integration::GlAbstract Internal::Adaptor::EglImplementation& eglImpl = static_cast( 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 );