[dali_2.3.42] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / canvas-view / canvas-view-impl.h
index 52ea231..82f7ff3 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_CANVAS_VIEW_H
 
 /*
 #define DALI_TOOLKIT_INTERNAL_CANVAS_VIEW_H
 
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -90,6 +90,11 @@ public:
    */
   bool RemoveAllDrawables();
 
    */
   bool RemoveAllDrawables();
 
+  /**
+   * @copydoc Toolkit::Control::CanvasView::RequestRasterization
+   */
+  void RequestRasterization();
+
 private: // From Control
   /**
    * @copydoc Control::OnRelayout
 private: // From Control
   /**
    * @copydoc Control::OnRelayout
@@ -120,6 +125,34 @@ private: // From Control
   const Vector2& GetViewBox();
 
   /**
   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() const;
+
+  /**
+   * @brief Set to request rasterize canvas manually or automatically
+   *
+   * @param isRasterizationManually True if rasterize canvas manually.
+   */
+  void SetRasterizationRequestManually(const bool isRasterizationManually);
+
+  /**
+   * @brief Whether to request rasterize canvas manually or automatically
+   *
+   * @return Returns true if rasterize canvas manually.
+   */
+  const bool IsRasterizationRequestManually() const;
+
+  /**
    * @bried Rasterize the canvas, and add it to the view.
    *
    * @param[in] size The target size of the canvas view rasterization.
    * @bried Rasterize the canvas, and add it to the view.
    *
    * @param[in] size The target size of the canvas view rasterization.
@@ -158,6 +191,9 @@ private:
   TextureSet                       mTextureSet;
   Vector2                          mSize;
   CanvasRendererRasterizingTaskPtr mRasterizingTask;
   TextureSet                       mTextureSet;
   Vector2                          mSize;
   CanvasRendererRasterizingTaskPtr mRasterizingTask;
+  bool                             mIsSynchronous : 1;
+  bool                             mManualRasterization : 1;
+  bool                             mProcessorRegistered : 1;
 };
 
 } // namespace Internal
 };
 
 } // namespace Internal