Fix Front buffer rendering does not activate when window created. 93/301093/4
authorANZ1217 <chihun.jeong@samsung.com>
Wed, 8 Nov 2023 08:40:01 +0000 (17:40 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Wed, 8 Nov 2023 09:34:53 +0000 (18:34 +0900)
Change-Id: I54459b0d4ddfc1711d894abc11f3898429a763b2

dali/internal/window-system/common/window-impl.cpp
dali/internal/window-system/common/window-impl.h

index 52ba60b..7c6ebfc 100644 (file)
@@ -67,6 +67,7 @@ Window* Window::New(Any surface, const std::string& name, const std::string& cla
 {
   Window* window         = new Window();
   window->mIsTransparent = windowData.GetTransparency();
+  window->mIsFrontBufferRendering = windowData.GetFrontBufferRendering();
   window->Initialize(surface, windowData.GetPositionSize(), name, className, windowData.GetWindowType());
   return window;
 }
@@ -106,7 +107,8 @@ Window::Window()
   mFocused(false),
   mIsWindowRotating(false),
   mIsEnabledUserGeometry(false),
-  mIsEmittedWindowCreatedEvent(false)
+  mIsEmittedWindowCreatedEvent(false),
+  mIsFrontBufferRendering(false)
 {
 }
 
@@ -209,6 +211,11 @@ void Window::Initialize(Any surface, const PositionSize& positionSize, const std
 
   // For Debugging
   mNativeWindowId = mWindowBase->GetNativeWindowId();
+
+  if(mIsFrontBufferRendering)
+  {
+    SetFrontBufferRendering(mIsFrontBufferRendering);
+  }
 }
 
 void Window::SetRenderNotification(TriggerEventInterface* renderNotification)
index d3d5ce5..c138780 100644 (file)
@@ -1007,6 +1007,7 @@ private:
   bool mIsWindowRotating : 1;      ///< The window rotating flag.
   bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
   bool mIsEmittedWindowCreatedEvent : 1; ///< The Window Created Event emit flag for accessibility.
+  bool mIsFrontBufferRendering : 1;      ///< The Front Buffer Rendering state.
 };
 
 } // namespace Adaptor