X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fimaging%2Ftizen%2Fnative-image-source-impl-tizen.h;h=35299ba62b891ba0652ba96d82796a1c81d13f5c;hb=refs%2Fchanges%2F84%2F266384%2F2;hp=7436a33806adade821ea746d7542988580cf8316;hpb=8f38c728d7670c1f0a6616fad32b011b02acd1e7;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 7436a33..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,11 +127,6 @@ public: } /** - * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix() - */ - const char* GetCustomFragmentPrefix() const override; - - /** * @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader(std::string& shader) */ bool ApplyNativeFragmentShader(std::string& shader) override; @@ -173,6 +169,11 @@ public: */ bool ReleaseBuffer() override; + /** + * @copydoc Dali::NativeImageSource::SetResourceDestructionCallback() + */ + void SetResourceDestructionCallback(EventThreadCallback* callback) override; + private: /** * Private constructor; @see NativeImageSource::New() @@ -195,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