#include <toolkit-async-task-manager.h>
#include <toolkit-scene-holder-impl.h>
#include <toolkit-test-application.h>
+#include "dali-test-suite-utils.h"
namespace Dali
{
void Adaptor::RegisterProcessor(Integration::Processor& processor, bool postProcessor)
{
Integration::Core& core = mTestApplication->GetCore();
+ tet_printf("Adaptor::RegisterProcessor : %s\n", processor.GetProcessorName().data());
core.RegisterProcessor(processor, postProcessor);
}
void Adaptor::UnregisterProcessor(Integration::Processor& processor, bool postProcessor)
{
Integration::Core& core = mTestApplication->GetCore();
+ tet_printf("Adaptor::UnregisterProcessor : %s\n", processor.GetProcessorName().data());
core.UnregisterProcessor(processor, postProcessor);
}
#include <toolkit-application.h>
#include <toolkit-environment-variable.h>
#include <toolkit-event-thread-callback.h>
+#include "dali-test-suite-utils.h"
namespace Dali
{
}
else
{
+ tet_printf("BEGIN: AsyncTask[%s] Process\n", task->GetTaskName().data());
task->Process();
+ tet_printf("END: AsyncTask[%s] Process\n", task->GetTaskName().data());
if(!mDestroyThread)
{
mAsyncTaskManager.CompleteTask(std::move(task));
~EnvironmentMapLoadTask();
/**
- * Process the task
- */
- void Process() override;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- bool IsReady() override;
-
- /**
* Whether the task has succeeded.
* @return True if the task has succeeded.
*/
*/
Dali::Scene3D::EnvironmentMapType GetEnvironmentMapType();
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
+ */
+ void Process();
+
+ /**
+ * @copydoc Dali::AsyncTask::IsReady()
+ */
+ bool IsReady();
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "EnvironmentMapLoadTask";
+ }
+
private:
// Undefined
EnvironmentMapLoadTask(const EnvironmentMapLoadTask& task) = delete;
~ModelLoadTask();
/**
- * Process the task
- */
- void Process() override;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- bool IsReady() override;
-
- /**
* Whether the task has succeeded.
* @return True if the task has succeeded.
*/
*/
Dali::Scene3D::Loader::Customization::Choices& GetResourceChoices();
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
+ */
+ void Process();
+
+ /**
+ * @copydoc Dali::AsyncTask::IsReady()
+ */
+ bool IsReady();
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "ModelLoadTask";
+ }
+
private:
// Undefined
ModelLoadTask(const ModelLoadTask& task) = delete;
private:
void ModelOnScene(Actor actor);
- void Process(bool /*postProcessor*/);
-
void AddSceneViewParentToProcessingQueue(Scene3D::Model model);
+protected: // Implementation of Processor
+ /**
+ * @copydoc Dali::Integration::Processor::Process()
+ */
+ void Process(bool /*postProcessor*/) override;
+
+ /**
+ * @copydoc Dali::Integration::Processor::GetProcessorName()
+ */
+ std::string_view GetProcessorName() const override
+ {
+ return "ColliderMeshProcessor";
+ }
+
private:
std::vector<Scene3D::SceneView> mSceneViewsToProcess;
std::vector<Scene3D::SceneView> mConnectedSceneViews;
*/
~MotionDataLoadTask();
+public: // Implementation of AsyncTask
/**
- * Process the task
+ * @copydoc Dali::AsyncTask::Process()
*/
- void Process() override;
+ void Process();
/**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
+ * @copydoc Dali::AsyncTask::IsReady()
*/
- bool IsReady() override;
+ bool IsReady();
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "MotionDataLoadTask";
+ }
public:
const Scene3D::Loader::AnimationDefinition& GetAnimationDefinition() const;
#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
{
*/
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
#define DALI_TOOLKIT_CANVAS_VIEW_RASTERIZE_TASK_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.
~CanvasRendererRasterizingTask() = default;
/**
- * Process the task
- */
- void Process() override;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- bool IsReady() override;
-
- /**
* Do the rasterization with the mRasterizer.
* @return Returns True when it's successful. False otherwise.
*/
*/
Texture GetRasterizedTexture();
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
+ */
+ void Process() override;
+
+ /**
+ * @copydoc Dali::AsyncTask::IsReady()
+ */
+ bool IsReady() override;
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "CanvasRendererRasterizingTask";
+ }
+
private:
// Undefined
CanvasRendererRasterizingTask(const CanvasRendererRasterizingTask& task);
*/
~FastTrackLoadingTask() override;
+public: // Implementation of AsyncTask
/**
- * @brief Process the task accodring to the type
+ * @copydoc Dali::AsyncTask::Process()
*/
void Process() override;
/**
- * @brief Whether the task is ready to process.
- * @return True if the task is ready to process.
+ * @copydoc Dali::AsyncTask::IsReady()
*/
bool IsReady() override;
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "FastTrackLoadingTask";
+ }
+
private:
// Undefined
FastTrackLoadingTask(const FastTrackLoadingTask& queue) = delete;
#define DALI_TOOLKIT_IMAGE_LOADING_TASK_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.
~LoadingTask() override;
/**
- * Process the task accodring to the type
+ * @brief Set the Texture Id
+ */
+ void SetTextureId(TextureManagerType::TextureId id);
+
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
*/
void Process() override;
/**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
+ * @copydoc Dali::AsyncTask::IsReady()
*/
bool IsReady() override;
/**
- * @brief Set the Texture Id
- *
+ * @copydoc Dali::AsyncTask::GetTaskName()
*/
- void SetTextureId(TextureManagerType::TextureId id);
+ std::string_view GetTaskName() const override
+ {
+ return "LoadingTask";
+ }
private:
// Undefined
*/
void Process(bool postProcessor) override;
+ /**
+ * @copydoc Dali::Integration::Processor::GetProcessorName()
+ */
+ std::string_view GetProcessorName() const override
+ {
+ return "TextureManager";
+ }
+
private:
/**
* Deleted copy constructor.
#define DALI_TOOLKIT_INTERNAL_TRANSITION_SET_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.
*/
void Process(bool postProcessor) override;
+ /**
+ * @copydoc Dali::Integration::Processor::GetProcessorName()
+ */
+ std::string_view GetProcessorName() const override
+ {
+ return "TransitionSet";
+ }
+
protected:
/**
* Construct a new TransitionSet.
*/
void Process(bool postProcessor) override;
+ /**
+ * @copydoc Dali::Integration::Processor::GetProcessorName()
+ */
+ std::string_view GetProcessorName() const override
+ {
+ return "VectorAnimationManager";
+ }
+
private:
// Undefined
VectorAnimationManager(const VectorAnimationManager& manager) = delete;
~VectorAnimationTask() override;
/**
- * Process the task accodring to the type
- */
- void Process() override;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- bool IsReady() override;
-
- /**
* @brief Finalizes the task.
*/
void Finalize();
*/
bool IsAnimating();
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
+ */
+ void Process() override;
+
+ /**
+ * @copydoc Dali::AsyncTask::IsReady()
+ */
+ bool IsReady() override;
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "VectorAnimationTask";
+ }
+
private:
/**
* @brief Loads the animation file.
*/
void Process(bool postProcessor) override;
+ /**
+ * @copydoc Dali::Integration::Processor::GetProcessorName()
+ */
+ std::string_view GetProcessorName() const override
+ {
+ return "NPatchLoader";
+ }
+
private:
NPatchData::NPatchDataId GenerateUniqueNPatchDataId();
// EXTERNAL INCLUDES
#include <dali/devel-api/adaptor-framework/vector-image-renderer.h>
+#include <dali/public-api/adaptor-framework/encoded-image-buffer.h>
#include <dali/public-api/common/intrusive-ptr.h>
#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/images/pixel-data.h>
-#include <dali/public-api/adaptor-framework/encoded-image-buffer.h>
#include <memory>
// INTERNAL INCLUDES
virtual ~SvgTask() = default;
/**
- * Process the task
- */
- virtual void Process() = 0;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- virtual bool IsReady() = 0;
-
- /**
* Whether the task has succeeded.
* @return True if the task has succeeded.
*/
*/
~SvgLoadingTask() override;
+public: // Implementation of AsyncTask
/**
- * Process the task
+ * @copydoc Dali::AsyncTask::Process()
*/
- void Process() override;
+ void Process();
/**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
+ * @copydoc Dali::AsyncTask::IsReady()
*/
- bool IsReady() override;
+ bool IsReady();
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "SvgLoadingTask";
+ }
private:
// Undefined
~SvgRasterizingTask() override;
/**
- * Process the task accodring to the type
- */
- void Process() override;
-
- /**
- * Whether the task is ready to process.
- * @return True if the task is ready to process.
- */
- bool IsReady() override;
-
- /**
* Get the rasterization result.
* @return The pixel data with the rasterized pixels.
*/
}
#endif
+public: // Implementation of AsyncTask
+ /**
+ * @copydoc Dali::AsyncTask::Process()
+ */
+ void Process();
+
+ /**
+ * @copydoc Dali::AsyncTask::IsReady()
+ */
+ bool IsReady();
+
+ /**
+ * @copydoc Dali::AsyncTask::GetTaskName()
+ */
+ std::string_view GetTaskName() const override
+ {
+ return "SvgRasterizingTask";
+ }
+
private:
// Undefined
SvgRasterizingTask(const SvgRasterizingTask& task) = delete;