Disable partial update in OffscreenApplication case 78/293978/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 9 Jun 2023 09:25:31 +0000 (18:25 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 12 Jun 2023 01:38:07 +0000 (01:38 +0000)
Change-Id: I505f89c63f56bb49c2a246c3c12346a0e68c346a

dali/internal/offscreen/common/offscreen-application-impl.cpp

index 9510978..6e6ee05 100644 (file)
 #include <dali/internal/offscreen/common/offscreen-application-impl.h>
 
 // INTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/environment-variable.h>
 #include <dali/integration-api/adaptor-framework/adaptor.h>
 #include <dali/integration-api/adaptor-framework/native-render-surface.h>
 #include <dali/internal/adaptor/common/adaptor-impl.h>
 #include <dali/internal/adaptor/common/thread-controller-interface.h>
 #include <dali/internal/offscreen/common/offscreen-window-impl.h>
+#include <dali/internal/system/common/environment-variables.h>
 #include <dali/internal/window-system/common/window-system.h>
 
 namespace Dali
@@ -40,6 +42,9 @@ IntrusivePtr<OffscreenApplication> OffscreenApplication::New(uint16_t width, uin
 
 OffscreenApplication::OffscreenApplication(uint16_t width, uint16_t height, Dali::Any surface, bool isTranslucent, RenderMode renderMode)
 {
+  // Disable partial update
+  EnvironmentVariable::SetEnvironmentVariable(DALI_ENV_DISABLE_PARTIAL_UPDATE, "1");
+
   Dali::Internal::Adaptor::WindowSystem::Initialize();
 
   // Generate a default window