*/
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.
*
GetImplementation(*this).AddPropertyValueCallback(keyPath, property, callback, id);
}
+void VectorAnimationRenderer::KeepRasterizedBuffer()
+{
+ GetImplementation(*this).KeepRasterizedBuffer();
+}
+
VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
{
return GetImplementation(*this).UploadCompletedSignal();
*/
void AddPropertyValueCallback(const std::string& keyPath, VectorProperty property, CallbackBase* callback, int32_t id);
+ /**
+ * @brief Keep the rasterized buffer to use the frame cache.
+ *
+ * By default, only as much as needed is kept in the rasterized buffer and not kept after use.
+ * tis API is efficient in terms of memory, but has the disadvantage of having to load the necessary buffer each time.
+ * therefore, if there are cases in which you want to improve the performance even if the app sacrifices a lot of memory, this API is useful.
+ */
+ void KeepRasterizedBuffer();
+
public: // Signals
/**
* @brief Connect to this signal to be notified when the texture upload is completed.
mPlugin.AddPropertyValueCallback(keyPath, property, callback, id);
}
+void VectorAnimationRenderer::KeepRasterizedBuffer()
+{
+ mPlugin.KeepRasterizedBuffer();
+}
+
Dali::VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
{
return mPlugin.UploadCompletedSignal();
void AddPropertyValueCallback(const std::string& keyPath, Dali::VectorAnimationRenderer::VectorProperty property, CallbackBase* callback, int32_t id);
/**
+ * @copydoc Dali::VectorAnimationRenderer::KeepRasterizedBuffer()
+ */
+ void KeepRasterizedBuffer();
+
+ /**
* @copydoc Dali::VectorAnimationRenderer::UploadCompletedSignal()
*/
Dali::VectorAnimationRenderer::UploadCompletedSignalType& UploadCompletedSignal();
}
}
+void VectorAnimationRendererPluginProxy::KeepRasterizedBuffer()
+{
+ if(mPlugin)
+ {
+ mPlugin->KeepRasterizedBuffer();
+ }
+}
+
VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal()
{
if(mPlugin)
void AddPropertyValueCallback(const std::string& keyPath, Dali::VectorAnimationRenderer::VectorProperty property, CallbackBase* callback, int32_t id);
/**
+ * @copydoc Dali::VectorAnimationRendererPlugin::KeepRasterizedBuffer()
+ */
+ void KeepRasterizedBuffer();
+
+ /**
* @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal()
*/
VectorAnimationRendererPlugin::UploadCompletedSignalType& UploadCompletedSignal();