X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fcanvas-view%2Fcanvas-view-impl.h;h=6f0fa11dba01d0f96d5abfeba43b199232674540;hb=HEAD;hp=52ea231037b07de7d8a47147446035001ab4064b;hpb=8aa72bf4c2768e91dd2b912bcc7b5ac63d67f385;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/canvas-view/canvas-view-impl.h b/dali-toolkit/internal/controls/canvas-view/canvas-view-impl.h index 52ea231..82f7ff3 100644 --- a/dali-toolkit/internal/controls/canvas-view/canvas-view-impl.h +++ b/dali-toolkit/internal/controls/canvas-view/canvas-view-impl.h @@ -2,7 +2,7 @@ #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. @@ -90,6 +90,11 @@ public: */ bool RemoveAllDrawables(); + /** + * @copydoc Toolkit::Control::CanvasView::RequestRasterization + */ + void RequestRasterization(); + private: // From Control /** * @copydoc Control::OnRelayout @@ -120,6 +125,34 @@ 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() 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. @@ -158,6 +191,9 @@ private: TextureSet mTextureSet; Vector2 mSize; CanvasRendererRasterizingTaskPtr mRasterizingTask; + bool mIsSynchronous : 1; + bool mManualRasterization : 1; + bool mProcessorRegistered : 1; }; } // namespace Internal