X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-render-surface.h;h=a6643e6b85d09935639cf2a7429f8b145dbdd812;hb=refs%2Fchanges%2F71%2F281871%2F17;hp=660dfdbf8196460dd692b5b61072f7d5293e3d35;hpb=c8b1640553338e8a2ca131a3c81fe691ea2ad33e;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/window-render-surface.h b/dali/internal/window-system/common/window-render-surface.h index 660dfdb..a6643e6 100644 --- a/dali/internal/window-system/common/window-render-surface.h +++ b/dali/internal/window-system/common/window-render-surface.h @@ -48,8 +48,10 @@ class AdaptorInternalServices; class WindowRenderSurface : public Dali::RenderSurfaceInterface, public ConnectionTracker { public: - using OutputSignalType = Signal; - using DamagedRectsContainer = std::vector>; + + using RotationFinishedSignalType = Signal ; ///; + using DamagedRectsContainer = std::vector>; /** * Uses an window surface to render to. @@ -138,16 +140,14 @@ public: // API void UpdatePositionSize(Dali::PositionSize positionSize); /** - * @brief Query whether window is rotating or not. - * - * @return true if window is rotating, false otherwise. + * @brief This signal is emitted when the output is transformed. */ - bool IsWindowRotating() const; + OutputSignalType& OutputTransformedSignal(); /** - * @brief This signal is emitted when the output is transformed. + * @brief This signal is emitted when a rotation job is finished. */ - OutputSignalType& OutputTransformedSignal(); + RotationFinishedSignalType& RotationFinishedSignal(); public: // from Dali::RenderSurfaceInterface /** @@ -160,9 +160,14 @@ public: // from Dali::RenderSurfaceInterface void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical) override; /** - * @copydoc Dali::RenderSurfaceInterface::GetOrientation() + * @copydoc Dali::RenderSurfaceInterface::GetSurfaceOrientation() + */ + int GetSurfaceOrientation() const override; + + /** + * @copydoc Dali::RenderSurfaceInterface::GetScreenOrientation() */ - int GetOrientation() const override; + int GetScreenOrientation() const override; /** * @copydoc Dali::RenderSurfaceInterface::InitializeGraphics() @@ -330,7 +335,8 @@ private: // Data EGLSurface mEGLSurface; EGLContext mEGLContext; ColorDepth mColorDepth; ///< Color depth of surface (32 bit or 24 bit) - OutputSignalType mOutputTransformedSignal; + OutputSignalType mOutputTransformedSignal; ///< The signal of screen rotation occurs + RotationFinishedSignalType mWindowRotationFinishedSignal; ///< The signal of window rotation's finished FrameCallbackInfoContainer mFrameCallbackInfoContainer; DamagedRectsContainer mBufferDamagedRects; Dali::Mutex mMutex; @@ -340,12 +346,9 @@ private: // Data uint32_t mDpiVertical; std::vector> mDamagedRects{}; ///< Keeps collected damaged render items rects for one render pass. These rects are rotated by scene orientation. bool mOwnSurface; ///< Whether we own the surface (responsible for deleting it) - bool mWindowRotationFinished; - bool mScreenRotationFinished; - bool mResizeFinished; - bool mDefaultScreenRotationAvailable; bool mIsImeWindowSurface; bool mNeedWindowRotationAcknowledgement; + bool mIsWindowOrientationChanging; }; // class WindowRenderSurface