*/
bool ReleaseBuffer() override;
+ /**
+ * @copydoc Dali::NativeImageSource::SetResourceDestructionCallback()
+ */
+ void SetResourceDestructionCallback(EventThreadCallback* callback) override;
+
private:
/**
void DestroySurface();
private:
-
uint32_t mWidth; ///< image width
uint32_t mHeight; ///< image height
bool mOwnTbmSurface; ///< Whether we created pixmap or not
bool mSetSource;
mutable Dali::Mutex mMutex;
bool mIsBufferAcquired; ///< Whether AcquireBuffer is called
+ std::unique_ptr<EventThreadCallback> mResourceDestructionCallback;
};
} // namespace Adaptor