X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fwayland%2Fwindow-render-surface.h;h=41025224c5cc96be186f104cbeacf513b4cc16a5;hb=26dfd5a0bdb0573292cb34bbe4a3c540ec2aeee9;hp=980e2732fca1b964b90e42670e960fe61f0b386e;hpb=6c48d965d1eca249b71488ab4193bf6dcdd74bcd;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/wayland/window-render-surface.h b/adaptors/wayland/window-render-surface.h index 980e273..4102522 100644 --- a/adaptors/wayland/window-render-surface.h +++ b/adaptors/wayland/window-render-surface.h @@ -25,20 +25,14 @@ namespace Dali { -namespace Internal -{ - -namespace Adaptor -{ - namespace ECore { /** - * @copydoc Dali::Internal::Adaptor::ECore::RenderSurface. + * @copydoc Dali::ECore::EcoreWlRenderSurface. * Window specialization. */ -class WindowRenderSurface : public RenderSurface +class WindowRenderSurface : public EcoreWlRenderSurface { public: @@ -46,18 +40,16 @@ public: * Uses an Wayland surface to render to. * @param [in] positionSize the position and size of the surface * @param [in] surface can be a Wayland-window or Wayland-pixmap (type must be unsigned int). - * @param [in] display connection to Wayland-server if the surface is a X window or pixmap (type must be void * to X display struct) * @param [in] name optional name of surface passed in * @param [in] isTransparent if it is true, surface has 32 bit color depth, otherwise, 24 bit */ WindowRenderSurface( Dali::PositionSize positionSize, Any surface, - Any display, const std::string& name, bool isTransparent = false ); /** - * @copydoc Dali::Internal::Adaptor::ECore::RenderSurface::~RenderSurface + * @copydoc Dali::ECore::EcoreWlRenderSurface::~EcoreWlRenderSurface */ virtual ~WindowRenderSurface(); @@ -74,69 +66,77 @@ public: // API */ void RequestToApproveDeiconify(); -public: // from Dali::RenderSurface - /** - * @copydoc Dali::RenderSurface::GetType() + * Map window */ - virtual Dali::RenderSurface::SurfaceType GetType(); + virtual void Map(); /** - * @copydoc Dali::RenderSurface::GetSurface() + * @copydoc Dali::ECore::EcoreWlRenderSurface::GetSurface() */ virtual Any GetSurface(); /** - * @copydoc Dali::RenderSurface::GetDrawable() + * @copydoc Dali::ECore::EcoreWlRenderSurface::GetWlWindow() */ virtual Ecore_Wl_Window* GetWlWindow(); -public: // from Internal::Adaptor::RenderSurface +public: // from Dali::RenderSurface /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::InitializeEgl() + * @copydoc Dali::RenderSurface::InitializeEgl() */ virtual void InitializeEgl( EglInterface& egl ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::CreateEglSurface() + * @copydoc Dali::RenderSurface::CreateEglSurface() */ virtual void CreateEglSurface( EglInterface& egl ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::DestroyEglSurface() + * @copydoc Dali::RenderSurface::DestroyEglSurface() */ virtual void DestroyEglSurface( EglInterface& egl ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::ReplaceEGLSurface() + * @copydoc Dali::RenderSurface::ReplaceEGLSurface() */ virtual bool ReplaceEGLSurface( EglInterface& egl ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::MoveResize() + * @copydoc Dali::RenderSurface::MoveResize() */ virtual void MoveResize( Dali::PositionSize positionSize); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::Map() + * @copydoc Dali::RenderSurface::SetViewMode() */ - virtual void Map(); + void SetViewMode( ViewMode viewMode ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::PreRender() + * @copydoc Dali::RenderSurface::StartRender() + */ + virtual void StartRender(); + + /** + * @copydoc Dali::RenderSurface::PreRender() */ virtual bool PreRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::PostRender() + * @copydoc Dali::RenderSurface::PostRender() */ - virtual void PostRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction, unsigned int timeDelta, SyncMode syncMode ); + virtual void PostRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction, DisplayConnection* displayConnection, unsigned int deltaTime, bool replacingSurface ); /** - * @copydoc Dali::Internal::Adaptor::RenderSurface::SetViewMode() + * @copydoc Dali::RenderSurface::StopRender() */ - void SetViewMode( ViewMode viewMode ); + virtual void StopRender(); + + /** + * @copydoc Dali::RenderSurface::ReleaseLock() + */ + virtual void ReleaseLock(); protected: @@ -146,7 +146,7 @@ protected: virtual void CreateWlRenderable(); /** - * @copydoc Dali::Internal::Adaptor::ECoreX::RenderSurface::UseExistingRenderable + * @copydoc Dali::Internal::Adaptor::ECore::EcoreWlRenderSurface::UseExistingRenderable */ virtual void UseExistingRenderable( unsigned int surfaceId ); @@ -160,10 +160,6 @@ private: // Data } // namespace ECore -} // namespace Adaptor - -} // namespace internal - } // namespace Dali #endif // __DALI_INTERNAL_ECORE_X_WINDOW_RENDER_SURFACE_H__