(PixmapImage) Removed dependency on Adaptor
[platform/core/uifw/dali-adaptor.git] / adaptors / wayland / pixmap-image-impl.h
index 12f3498..86120ff 100644 (file)
  */
 
 // EXTERNAL INCLUDES
-#include <Ecore.h>
-#include <Ecore_Wayland.h>
-#include <pixmap-image.h>
 
 // INTERNAL INCLUDES
+#include <pixmap-image.h>
 
 namespace Dali
 {
@@ -33,7 +31,6 @@ namespace Internal
 
 namespace Adaptor
 {
-class Adaptor;
 class EglImageExtensions;
 
 /**
@@ -49,26 +46,14 @@ public:
    * @param[in] width The width of the image.
    * @param[in] height The height of the image.
    * @param[in] depth color depth of the pixmap
-   * @param[in] adaptor reference to dali adaptor
    * @param[in] pixmap contains either: pixmap of type X11 Pixmap , a Ecore_X_Pixmap or is empty
    * @return A smart-pointer to a newly allocated image.
    */
   static PixmapImage* New(unsigned int width,
                           unsigned int height,
                           Dali::PixmapImage::ColorDepth depth,
-                          Dali::Adaptor& adaptor,
                           Any pixmap);
 
-   /**
-    * @copydoc Dali::PixmapImage::GetPixmap()
-    */
-  Any GetPixmap(Dali::PixmapImage::PixmapAPI api) const;
-
-  /**
-   * @copydoc Dali::PixmapImage::GetDisplay()
-   */
-  Any GetDisplay() const;
-
   /**
    * @copydoc Dali::PixmapImage::GetPixels()
    */
@@ -130,13 +115,11 @@ private:
    * @param[in] width The width of the image.
    * @param[in] height The height of the image.
    * @param[in] colour depth of the pixmap
-   * @param[in] adaptor a reference to Dali adaptor
    * @param[in] pixmap contains either: pixmap of type X11 Pixmap , a Ecore_X_Pixmap or is empty
    */
   PixmapImage(unsigned int width,
               unsigned  int height,
               Dali::PixmapImage::ColorDepth depth,
-              Dali::Adaptor &adaptor,
               Any pixmap);
 
   /**
@@ -163,12 +146,6 @@ private:
    */
   void GetPixmapDetails();
 
-  /**
-   * Returns the egl image extensions class from the adaptor
-   * @return reference to egl image extensionsa
-   */
-  EglImageExtensions* GetEglImageExtensions() const;
-
 private:
 
   unsigned int mWidth;                        ///< pixmap width
@@ -176,8 +153,8 @@ private:
   bool mOwnPixmap;                            ///< Whether we created pixmap or not
   Pixel::Format mPixelFormat;                 ///< pixmap pixel format
   Dali::PixmapImage::ColorDepth mColorDepth;  ///< color depth of pixmap
-  Adaptor& mAdaptor;                          ///< adaptor
   void* mEglImageKHR;                         ///< From EGL extension
+  EglImageExtensions* mEglImageExtensions;    ///< The EGL Image Extensions
 };
 
 } // namespace Adaptor