Internal::Adaptor::EglImplementation& eglImpl = static_cast<Internal::Adaptor::EglImplementation&>( egl );
eglImpl.SwapBuffers();
- // flush gl instruction queue
- glAbstraction.Flush();
+ if( mImpl->mThreadSynchronization )
+ {
+ mImpl->mThreadSynchronization->PostRenderStarted();
+ }
{
+ ConditionalWait::ScopedLock lock( mImpl->mTbmSurfaceCondition );
+
if( tbm_surface_queue_can_acquire( mImpl->mTbmQueue, 1 ) )
{
if( tbm_surface_queue_acquire( mImpl->mTbmQueue, &mImpl->mConsumeSurface ) != TBM_SURFACE_QUEUE_ERROR_NONE )
// Tell the event-thread to render the pixmap
mImpl->mRenderNotification->Trigger();
}
- else
+
+ if( mImpl->mThreadSynchronization )
{
- // FIXME
+ mImpl->mThreadSynchronization->PostRenderWaitForCompletion();
}
-
}
void NativeRenderSurface::StopRender()