Remove unused custom shader prefix method
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / tizen / native-image-source-queue-impl-tizen.h
index ae2bf8d..347f60a 100644 (file)
@@ -47,11 +47,11 @@ public:
    * Depending on hardware the width and height may have to be a power of two.
    * @param[in] width The width of the image.
    * @param[in] height The height of the image.
-   * @param[in] depth color depth of the image.
+   * @param[in] colorFormat The color format of the image.
    * @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
    * @return A smart-pointer to a newly allocated image.
    */
-  static NativeImageSourceQueueTizen* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue);
+  static NativeImageSourceQueueTizen* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
 
   /**
    * @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
@@ -69,6 +69,21 @@ public:
   void IgnoreSourceImage() override;
 
   /**
+   * @copydoc Dali::NativeImageSourceQueue::CanDequeueBuffer
+   */
+  bool CanDequeueBuffer() override;
+
+  /**
+   * @copydoc Dali::NativeImageSourceQueue::DequeueBuffer
+   */
+  uint8_t* DequeueBuffer(uint32_t& width, uint32_t& height, uint32_t& stride) override;
+
+  /**
+   * @copydoc Dali::NativeImageSourceQueue::EnqueueBuffer
+   */
+  bool EnqueueBuffer(uint8_t* buffer) override;
+
+  /**
    * destructor
    */
   ~NativeImageSourceQueueTizen() override;
@@ -118,11 +133,6 @@ public:
   }
 
   /**
-   * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
-   */
-  const char* GetCustomFragmentPrefix() const override;
-
-  /**
    * @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
    */
   bool ApplyNativeFragmentShader(std::string& shader) override;
@@ -160,12 +170,12 @@ private:
    * Private constructor; @see NativeImageSourceQueue::New()
    * @param[in] width The width of the image.
    * @param[in] height The height of the image.
-   * @param[in] colour depth of the image.
+   * @param[in] colorFormat The format of the image.
    * @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
    */
-  NativeImageSourceQueueTizen(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue);
+  NativeImageSourceQueueTizen(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
 
-  void Initialize(Dali::NativeImageSourceQueue::ColorDepth depth);
+  void Initialize(Dali::NativeImageSourceQueue::ColorFormat colorFormat);
 
   void ResetEglImageList();
 
@@ -175,6 +185,7 @@ private:
 
 private:
   typedef std::pair<tbm_surface_h, void*> EglImagePair;
+  typedef std::pair<tbm_surface_h, void*> BufferPair;
 
   Dali::Mutex               mMutex;              ///< Mutex
   uint32_t                  mWidth;              ///< image width
@@ -182,6 +193,7 @@ private:
   tbm_surface_queue_h       mTbmQueue;           ///< Tbm surface queue handle
   tbm_surface_h             mConsumeSurface;     ///< The current tbm surface
   std::vector<EglImagePair> mEglImages;          ///< EGL Image vector
+  std::vector<BufferPair>   mBuffers;            ///< Buffer vector
   EglGraphics*              mEglGraphics;        ///< EGL Graphics
   EglImageExtensions*       mEglImageExtensions; ///< The EGL Image Extensions
   bool                      mOwnTbmQueue;        ///< Whether we created tbm queue