X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fdisplay-connection.h;h=00c67c810d51dee4155bc64f7dfde5776d8038a6;hb=e8e185f7d90010214890c2cb78bdd52c732f63ba;hp=2bf4417235b145fd241634dd91ef00c969774517;hpb=c2661eb631bd87ee9eed1e752c7113aeda6af785;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/display-connection.h b/dali/internal/window-system/common/display-connection.h index 2bf4417..00c67c8 100644 --- a/dali/internal/window-system/common/display-connection.h +++ b/dali/internal/window-system/common/display-connection.h @@ -22,16 +22,12 @@ #include // INTERNAL INCLUDES -#include -#include +#include +#include -#include namespace Dali { - -class EglInterface; - namespace Internal { namespace Adaptor @@ -47,18 +43,20 @@ public: /** * @brief Create an initialized DisplayConnection. * + * @param[in] graphics The abstracted graphics interface * @return A handle to a newly allocated DisplayConnection resource. */ - static DisplayConnection* New(); + static DisplayConnection* New( Dali::Internal::Adaptor::GraphicsInterface& graphics ); /** * @brief Create an initialized DisplayConnection. * Native surface will need this instead of DisplayConnection::New() * + * @param[in] graphics The abstracted graphics interface * @param[in] type Render surface type * @return A handle to a newly allocated DisplayConnection resource. */ - static DisplayConnection* New( RenderSurface::Type type ); + static DisplayConnection* New( Dali::Internal::Adaptor::GraphicsInterface& graphics, Integration::RenderSurface::Type type ); /** * @brief Create a DisplayConnection handle; this can be initialised with DisplayConnection::New(). @@ -82,31 +80,14 @@ public: Any GetDisplay(); /** - * @brief Get DPI - * @param[out] dpiHorizontal set to the horizontal dpi - * @param[out] dpiVertical set to the vertical dpi - */ - static void GetDpi(unsigned int& dpiHorizontal, unsigned int& dpiVertical); - - /** - * @brief Get DPI - * @param [in] handle A pointer to a newly allocated DisplayConnection resource - * @param[out] dpiHorizontal set to the horizontal dpi - * @param[out] dpiVertical set to the vertical dpi - */ - static void GetDpi(Any nativeWindow, unsigned int& dpiHorizontal, unsigned int& dpiVertical); - - /** * @brief Consumes any possible events on the queue so that there is no leaking between frames */ void ConsumeEvents(); /** - * @brief Initialize EGL display - * - * @param egl implementation to use for the creation + * @brief Initialize the display */ - bool InitializeEgl(EglInterface& egl); + bool Initialize(); public: