From 9892ada04b5d852c33776447f81c14e079fc0a35 Mon Sep 17 00:00:00 2001 From: seungho baek Date: Thu, 26 Oct 2023 18:16:32 +0900 Subject: [PATCH] [Tizen] Fixed Cache for AnimatedVectorImageVisual Change-Id: I75e21fae0ca9e2561dd08f66e05ff590d2c898fc Signed-off-by: seungho baek --- .../adaptor-framework/vector-animation-renderer-plugin.h | 2 ++ dali/devel-api/adaptor-framework/vector-animation-renderer.cpp | 5 +++++ dali/devel-api/adaptor-framework/vector-animation-renderer.h | 2 ++ .../vector-animation/common/vector-animation-renderer-impl.cpp | 5 +++++ .../vector-animation/common/vector-animation-renderer-impl.h | 2 ++ .../common/vector-animation-renderer-plugin-proxy.cpp | 8 ++++++++ .../common/vector-animation-renderer-plugin-proxy.h | 2 ++ 7 files changed, 26 insertions(+) diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h index 3b87f4a..04c1e31 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h @@ -167,6 +167,8 @@ public: */ virtual void AddPropertyValueCallback(const std::string& keyPath, VectorProperty property, CallbackBase* callback, int32_t id) = 0; + virtual void KeepRasterizedBuffer() = 0; + /** * @brief Connect to this signal to be notified when the texture upload is completed. * diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp index 33ea624..d816fa5 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.cpp @@ -118,6 +118,11 @@ void VectorAnimationRenderer::AddPropertyValueCallback(const std::string& keyPat GetImplementation(*this).AddPropertyValueCallback(keyPath, property, callback, id); } +void VectorAnimationRenderer::KeepRasterizedBuffer() +{ + GetImplementation(*this).KeepRasterizedBuffer(); +} + VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal() { return GetImplementation(*this).UploadCompletedSignal(); diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer.h b/dali/devel-api/adaptor-framework/vector-animation-renderer.h index 1636c1f..a308392 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer.h @@ -211,6 +211,8 @@ public: */ void AddPropertyValueCallback(const std::string& keyPath, VectorProperty property, CallbackBase* callback, int32_t id); + void KeepRasterizedBuffer(); + public: // Signals /** * @brief Connect to this signal to be notified when the texture upload is completed. diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp b/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp index a4af959..8bf5f5f 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp @@ -121,6 +121,11 @@ void VectorAnimationRenderer::AddPropertyValueCallback(const std::string& keyPat mPlugin.AddPropertyValueCallback(keyPath, property, callback, id); } +void VectorAnimationRenderer::KeepRasterizedBuffer() +{ + mPlugin.KeepRasterizedBuffer(); +} + Dali::VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal() { return mPlugin.UploadCompletedSignal(); diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-impl.h b/dali/internal/vector-animation/common/vector-animation-renderer-impl.h index 94d9cdd..27ed34f 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-impl.h +++ b/dali/internal/vector-animation/common/vector-animation-renderer-impl.h @@ -112,6 +112,8 @@ public: */ void AddPropertyValueCallback(const std::string& keyPath, Dali::VectorAnimationRenderer::VectorProperty property, CallbackBase* callback, int32_t id); + void KeepRasterizedBuffer(); + /** * @copydoc Dali::VectorAnimationRenderer::UploadCompletedSignal() */ diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp index 011c9cd..6a3c015 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp +++ b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp @@ -211,6 +211,14 @@ void VectorAnimationRendererPluginProxy::AddPropertyValueCallback(const std::str } } +void VectorAnimationRendererPluginProxy::KeepRasterizedBuffer() +{ + if(mPlugin) + { + mPlugin->KeepRasterizedBuffer(); + } +} + VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal() { if(mPlugin) diff --git a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h index e5deb25..3a97542 100644 --- a/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h +++ b/dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h @@ -108,6 +108,8 @@ public: */ void AddPropertyValueCallback(const std::string& keyPath, Dali::VectorAnimationRenderer::VectorProperty property, CallbackBase* callback, int32_t id); + void KeepRasterizedBuffer(); + /** * @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal() */ -- 2.7.4