DSRenderEngineDaliImpl: Set dali render thread mode to MANUAL. 09/241809/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Wed, 12 Aug 2020 07:41:41 +0000 (16:41 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 10:11:32 +0000 (19:11 +0900)
 - There are two RenderModes provided by Dali::OffscreenApplication.
   1. AUTO
   2. MANUAL
 - AUTO performs rendering without stopping while
  traversing the Scene Graph even if it is not requested.
 - MANUAL is a mode that basically stops the render thread
  and performs rendering only when there is a render once request.

Change-Id: Iabfc409ff5fdfc8b24ecbc45944e2d7ba8a442b8
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/DSRender/DSRenderEngineDaliImpl.cpp

index 12d8b18..70e02d4 100644 (file)
@@ -38,7 +38,7 @@ DSRenderEngineDaliImpl::DSRenderEngineDaliImpl(std::shared_ptr<IDSBufferQueue> b
        : __bufferQueue(bufferQueue)
 {
        tbm_surface_queue_h nativeBufferQueue = (tbm_surface_queue_h)bufferQueue->getNativeBufferQueue();
-       __offscreenApplication  = OffscreenApplication::New((nativeBufferQueue), true);
+       __offscreenApplication  = OffscreenApplication::New(nativeBufferQueue, true, OffscreenApplication::RenderMode::MANUAL);
 
        __offscreenApplication.InitSignal().Connect(this, &DSRenderEngineDaliImpl::onInitialize);