From: Heeyong Song Date: Tue, 10 Mar 2020 04:03:18 +0000 (+0900) Subject: [Tizen] Fix a surface resize issue X-Git-Tag: accepted/tizen/5.5/unified/20200324.134416~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=3fcc51a9908e866ea7c3245882ed2d41b4a49458;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Fix a surface resize issue The thread controller will wait for the response that the surface is resized in the updated thread. But the message may be processed right after ProcessCoreEvents(). If it is processed before calling to mThreadController->ResizeSurface(), the thread controll will wait for the response forever. So I've changed to call to mThreadController->ResizeSurface() before ProcessCoreEvents(). Change-Id: Id7d4e2a801c1d2fc8d4992676ae2b673eeb8baf0 --- diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index 4d0dc84..c2505aa 100755 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -1005,11 +1005,12 @@ void Adaptor::SurfaceResizePrepare( Dali::RenderSurfaceInterface* surface, Surfa void Adaptor::SurfaceResizeComplete( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize ) { + // Nofify surface resizing before flushing event queue + mThreadController->ResizeSurface(); + // Flush the event queue to give the update-render thread chance // to start processing messages for new camera setup etc as soon as possible ProcessCoreEvents(); - - mThreadController->ResizeSurface(); } void Adaptor::NotifySceneCreated()