#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.
// 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
{
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.
*/
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
TextureSet mTextureSet;
Vector2 mSize;
CanvasRendererRasterizingTaskPtr mRasterizingTask;
+ bool mIsSynchronous;
};
} // namespace Internal