X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Ftizen%2Fnative-image-source-impl-tizen.h;h=35299ba62b891ba0652ba96d82796a1c81d13f5c;hb=2eb17a0add04d011b5cac0d6513ee41c7fc89005;hp=7f48b929e7f907c6479b90bf132a26ee71ebc241;hpb=880c3fef683f952d6fe64a7eeb1a83b34959c4ec;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/tizen/native-image-source-impl-tizen.h b/dali/internal/imaging/tizen/native-image-source-impl-tizen.h index 7f48b92..35299ba 100644 --- a/dali/internal/imaging/tizen/native-image-source-impl-tizen.h +++ b/dali/internal/imaging/tizen/native-image-source-impl-tizen.h @@ -22,6 +22,7 @@ #include #include #include +#include // INTERNAL INCLUDES #include @@ -126,9 +127,9 @@ public: } /** - * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix() + * @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader(std::string& shader) */ - const char* GetCustomFragmentPrefix() const override; + bool ApplyNativeFragmentShader(std::string& shader) override; /** * @copydoc Dali::NativeImageInterface::GetCustomSamplerTypename() @@ -168,6 +169,11 @@ public: */ bool ReleaseBuffer() override; + /** + * @copydoc Dali::NativeImageSource::SetResourceDestructionCallback() + */ + void SetResourceDestructionCallback(EventThreadCallback* callback) override; + private: /** * Private constructor; @see NativeImageSource::New() @@ -190,19 +196,20 @@ private: void DestroySurface(); private: - uint32_t mWidth; ///< image width - uint32_t mHeight; ///< image height - bool mOwnTbmSurface; ///< Whether we created pixmap or not - tbm_surface_h mTbmSurface; - tbm_format mTbmFormat; - bool mBlendingRequired; ///< Whether blending is required - Dali::NativeImageSource::ColorDepth mColorDepth; ///< color depth of image - void* mEglImageKHR; ///< From EGL extension - EglGraphics* mEglGraphics; ///< EGL Graphics - EglImageExtensions* mEglImageExtensions; ///< The EGL Image Extensions - bool mSetSource; - mutable Dali::Mutex mMutex; - bool mIsBufferAcquired; ///< Whether AcquireBuffer is called + uint32_t mWidth; ///< image width + uint32_t mHeight; ///< image height + bool mOwnTbmSurface; ///< Whether we created pixmap or not + tbm_surface_h mTbmSurface; + tbm_format mTbmFormat; + bool mBlendingRequired; ///< Whether blending is required + Dali::NativeImageSource::ColorDepth mColorDepth; ///< color depth of image + void* mEglImageKHR; ///< From EGL extension + EglGraphics* mEglGraphics; ///< EGL Graphics + EglImageExtensions* mEglImageExtensions; ///< The EGL Image Extensions + bool mSetSource; + mutable Dali::Mutex mMutex; + bool mIsBufferAcquired; ///< Whether AcquireBuffer is called + std::unique_ptr mResourceDestructionCallback; ///< The Resource Destruction Callback }; } // namespace Adaptor