Fix a surface resize issue 45/227145/4
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 10 Mar 2020 04:03:18 +0000 (13:03 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 12 Mar 2020 01:00:18 +0000 (10:00 +0900)
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

dali/internal/adaptor/common/adaptor-impl.cpp

index fa01ca3..d2bee02 100755 (executable)
@@ -968,11 +968,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()