[Tizen] Fixed Cache for AnimatedVectorImageVisual 44/302144/1 accepted/tizen/7.0/unified/20231205.172623 accepted/tizen/7.0/unified/20231207.071830
authorseungho baek <sbsh.baek@samsung.com>
Thu, 26 Oct 2023 09:16:32 +0000 (18:16 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Fri, 1 Dec 2023 02:12:46 +0000 (11:12 +0900)
Change-Id: I75e21fae0ca9e2561dd08f66e05ff590d2c898fc
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h
dali/devel-api/adaptor-framework/vector-animation-renderer.cpp
dali/devel-api/adaptor-framework/vector-animation-renderer.h
dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp
dali/internal/vector-animation/common/vector-animation-renderer-impl.h
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h

index 3b87f4a326f1e44e91dc65a03faaa28c85c2da4e..04c1e311c2c6977c0c1f744e0f9f790fefc2c0d0 100644 (file)
@@ -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.
    *
index 33ea624fe5b9685585db08bd17b9f9c154c6f11e..d816fa5b01c0c411fba973dd6b6fea4d313efe6e 100644 (file)
@@ -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();
index 1636c1f212de96b2ed0468cebbd308411b918bea..a3083928b5273cee23c7d03504c66dca3a589ce8 100644 (file)
@@ -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.
index a4af959337ccded15c44324ce1d8278ad4495023..8bf5f5f1bab5949f5d6e700390b2584b8d34d5a7 100644 (file)
@@ -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();
index 94d9cdd0cb4bc76c98b4e4d19c88fc744f7a690e..27ed34f7ec975f0622d147732e97d7b4622995fb 100644 (file)
@@ -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()
    */
index 011c9cd0c5708f56c0b5b6ba30962e1095728c93..6a3c015a9521abe401de94ba69c9d6f37afbb16a 100644 (file)
@@ -211,6 +211,14 @@ void VectorAnimationRendererPluginProxy::AddPropertyValueCallback(const std::str
   }
 }
 
+void VectorAnimationRendererPluginProxy::KeepRasterizedBuffer()
+{
+  if(mPlugin)
+  {
+    mPlugin->KeepRasterizedBuffer();
+  }
+}
+
 VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal()
 {
   if(mPlugin)
index e5deb25a03f8b4553f1f64555b560ed56924e593..3a9754253e91f827d15caae35eca9ceb7462a978 100644 (file)
@@ -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()
    */