[Tizen] Add to get the status whether window is rotating or not accepted/tizen/unified/20220429.003436 submit/tizen/20220426.044425 submit/tizen/20220426.051358 submit/tizen/20220427.060039
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 26 Apr 2022 01:47:23 +0000 (10:47 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Tue, 26 Apr 2022 01:47:46 +0000 (10:47 +0900)
This reverts commit caf1239ea6ef32ac28e3d370ab8b8322c1d6953e.

Change-Id: I35ca2bb08be37ead500276472dd8399f77b8f5ac

dali/devel-api/adaptor-framework/window-devel.cpp
dali/devel-api/adaptor-framework/window-devel.h
dali/internal/window-system/common/window-impl.cpp
dali/internal/window-system/common/window-impl.h
dali/internal/window-system/common/window-render-surface.cpp
dali/internal/window-system/common/window-render-surface.h

index 34b609a..0713159 100644 (file)
@@ -244,6 +244,11 @@ bool IsMinimized(Window window)
   return GetImplementation(window).IsMinimized();
 }
 
+bool IsWindowRotating(Window window)
+{
+  return GetImplementation(window).IsWindowRotating();
+}
+
 } // namespace DevelWindow
 
 } // namespace Dali
index 8f51d27..459c289 100644 (file)
@@ -480,6 +480,14 @@ DALI_ADAPTOR_API void Minimize(Window window, bool minimize);
  */
 DALI_ADAPTOR_API bool IsMinimized(Window window);
 
+/**
+ * @brief Query whether window is rotating or not.
+ *
+ * @param[in] window The window instance.
+ * @return true if window is rotating, false otherwise.
+ */
+DALI_ADAPTOR_API bool IsWindowRotating(Window window);
+
 } // namespace DevelWindow
 
 } // namespace Dali
index fc5a81d..545b382 100644 (file)
@@ -1195,6 +1195,11 @@ void Window::SendRotationCompletedAcknowledgement()
   }
 }
 
+bool Window::IsWindowRotating() const
+{
+  return mWindowSurface->IsWindowRotating();
+}
+
 } // namespace Adaptor
 
 } // namespace Internal
index ce91a7f..12d1c7f 100644 (file)
@@ -454,6 +454,11 @@ public: // Dali::Internal::Adaptor::SceneHolder
    */
   void SendRotationCompletedAcknowledgement();
 
+  /**
+   * @copydoc Dali::DevelWindow::IsWindowRotating()
+   */
+  bool IsWindowRotating() const;
+
 private:
   /**
    * @brief Enumeration for orietation mode.
index a0523d3..c6cee4a 100644 (file)
@@ -747,13 +747,18 @@ void WindowRenderSurface::OutputTransformed()
   }
 }
 
+bool WindowRenderSurface::IsWindowRotating() const
+{
+  return !(mWindowRotationFinished);
+}
+
 void WindowRenderSurface::ProcessPostRender()
 {
   if(!mWindowRotationFinished)
   {
     mWindowBase->WindowRotationCompleted(mWindowRotationAngle, mPositionSize.width, mPositionSize.height);
-    DALI_LOG_RELEASE_INFO("WindowRenderSurface::ProcessPostRender: Rotation Done\n");
     mWindowRotationFinished = true;
+    DALI_LOG_RELEASE_INFO("WindowRenderSurface::ProcessPostRender: Rotation Done, flag = %d\n", mWindowRotationFinished);
   }
 
   if(mIsImeWindowSurface)
index 5d248c0..5e58893 100644 (file)
@@ -138,6 +138,13 @@ public: // API
   void UpdatePositionSize(Dali::PositionSize positionSize);
 
   /**
+   * @brief Query whether window is rotating or not.
+   *
+   * @return true if window is rotating, false otherwise.
+   */
+  bool IsWindowRotating() const;
+
+  /**
    * @brief This signal is emitted when the output is transformed.
    */
   OutputSignalType& OutputTransformedSignal();