X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-vector-image%2Fvector-animation-thread.h;h=0fd37e48b2cb874e5a4e59bcd43d1f4fe2788d52;hb=d124a23dd94e5119147b127286d2e5ad687f0efd;hp=b752105fae685e0c60ca2ec47131a8854c3c3f9c;hpb=7b406456059abec8a9085c02814e3ea526fc525a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.h b/dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.h index b752105..0fd37e4 100644 --- a/dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.h +++ b/dali-toolkit/internal/visuals/animated-vector-image/vector-animation-thread.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_VECTOR_ANIMATION_THREAD_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. @@ -21,13 +21,12 @@ #include #include #include +#include #include #include // INTERNAL INCLUDES -#include #include -#include namespace Dali { @@ -83,45 +82,6 @@ private: */ void Rasterize(); -private: - /** - * @brief Helper class to keep the relation between VectorRasterizeThread and corresponding container - */ - class RasterizeHelper : public ConnectionTracker - { - public: - /** - * @brief Create an RasterizeHelper. - * - * @param[in] animationThread Reference to the VectorAnimationThread - */ - RasterizeHelper(VectorAnimationThread& animationThread); - - /** - * @brief Rasterizes the task. - * - * @param[in] task The task to rasterize. - */ - void Rasterize(VectorAnimationTaskPtr task); - - public: - RasterizeHelper(const RasterizeHelper&) = delete; - RasterizeHelper& operator=(const RasterizeHelper&) = delete; - - RasterizeHelper(RasterizeHelper&& rhs); - RasterizeHelper& operator=(RasterizeHelper&& rhs) = delete; - - private: - /** - * @brief Main constructor that used by all other constructors - */ - RasterizeHelper(std::unique_ptr rasterizer, VectorAnimationThread& animationThread); - - private: - std::unique_ptr mRasterizer; - VectorAnimationThread& mAnimationThread; - }; - /** * @brief The thread to sleep until the next frame time. */ @@ -170,15 +130,15 @@ private: VectorAnimationThread& operator=(const VectorAnimationThread& thread) = delete; private: - std::vector mAnimationTasks; - std::vector mCompletedTasks; - std::vector mWorkingTasks; - RoundRobinContainerView mRasterizers; - SleepThread mSleepThread; - ConditionalWait mConditionalWait; - bool mNeedToSleep; - bool mDestroyThread; - const Dali::LogFactoryInterface& mLogFactory; + std::vector mAnimationTasks; + std::vector mCompletedTasks; + std::vector mWorkingTasks; + SleepThread mSleepThread; + ConditionalWait mConditionalWait; + bool mNeedToSleep; + bool mDestroyThread; + const Dali::LogFactoryInterface& mLogFactory; + Dali::AsyncTaskManager mAsyncTaskManager; }; } // namespace Internal