[dali_2.3.24] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / canvas-view / canvas-view-impl.h
index d7c8c4b..6f0fa11 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_CANVAS_VIEW_H
 
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/devel-api/controls/canvas-view/canvas-view.h>
-#include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/internal/controls/canvas-view/canvas-view-rasterize-task.h>
+#include <dali-toolkit/public-api/controls/control-impl.h>
 
 namespace Dali
 {
@@ -120,6 +120,20 @@ private: // From Control
   const Vector2& GetViewBox();
 
   /**
+   * @brief Set to load the canvas synchronously.
+   *
+   * @param isSynchronous The synchronous
+   */
+  void SetSynchronous(const bool isSynchronous);
+
+  /**
+   * @brief Whether to load the canvas synchronously.
+   *
+   * @return Returns true if synchronously.
+   */
+  const bool IsSynchronous();
+
+  /**
    * @bried Rasterize the canvas, and add it to the view.
    *
    * @param[in] size The target size of the canvas view rasterization.
@@ -132,6 +146,14 @@ protected:
    */
   void Process(bool postProcessor) override;
 
+  /**
+   * @copydoc Dali::Integration::Processor::GetProcessorName()
+   */
+  std::string_view GetProcessorName() const override
+  {
+    return "CanvasView";
+  }
+
 public:
   /**
    * @bried Apply the rasterized image to the canvas view
@@ -150,6 +172,7 @@ private:
   TextureSet                       mTextureSet;
   Vector2                          mSize;
   CanvasRendererRasterizingTaskPtr mRasterizingTask;
+  bool                             mIsSynchronous;
 };
 
 } // namespace Internal