[Tizen](Partial Update) Fix window rotation issue 10/280810/3 accepted/tizen/6.5/unified/20221130.122622 submit/tizen_6.5/20221130.063311
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 5 Sep 2022 09:21:17 +0000 (18:21 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 15 Sep 2022 05:49:47 +0000 (14:49 +0900)
Set the dirty flag of the root layer when the surface size is changed

Change-Id: I1f9fa4256b5bce9a1bc35f72a5229805620aa670

dali/internal/update/common/scene-graph-scene.cpp

index 1ad1c93..36b4049 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -145,6 +145,11 @@ void Scene::SetSurfaceRect(const Rect<int32_t>& rect)
 {
   mSurfaceRect        = rect;
   mSurfaceRectChanged = true;
+
+  if(mRoot)
+  {
+    mRoot->SetUpdated(true);
+  }
 }
 
 const Rect<int32_t>& Scene::GetSurfaceRect() const
@@ -155,6 +160,11 @@ const Rect<int32_t>& Scene::GetSurfaceRect() const
 void Scene::SetSurfaceOrientation(int32_t orientation)
 {
   mSurfaceOrientation = orientation;
+
+  if(mRoot)
+  {
+    mRoot->SetUpdated(true);
+  }
 }
 
 int32_t Scene::GetSurfaceOrientation() const