X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-vector-image%2Fvector-rasterize-thread.h;h=25bd4e5009aef0fda2c87d2228e82905d7657936;hb=0c8875977f6f8e8a026eacb7a9ef57d14ce8deac;hp=6315d4d9b8a403bb52bcccaa4d59c7fbb5d0fdc1;hpb=5cefe49bcc101e10e8a10acb546d8ea2587cad31;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-vector-image/vector-rasterize-thread.h b/dali-toolkit/internal/visuals/animated-vector-image/vector-rasterize-thread.h index 6315d4d..25bd4e5 100644 --- a/dali-toolkit/internal/visuals/animated-vector-image/vector-rasterize-thread.h +++ b/dali-toolkit/internal/visuals/animated-vector-image/vector-rasterize-thread.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_VECTOR_IMAGE_RASTERIZE_THREAD_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -18,31 +18,27 @@ */ // EXTERNAL INCLUDES -#include -#include #include #include #include +#include +#include // INTERNAL INCLUDES #include namespace Dali { - namespace Toolkit { - namespace Internal { - /** * The worker thread for vector image rasterization. */ class VectorRasterizeThread : public Thread { public: - /** * @brief Constructor. */ @@ -57,17 +53,16 @@ public: * The callback is called from the rasterize thread after the rasterization is completed. * @param[in] callBack The function to call. */ - void SetCompletedCallback( CallbackBase* callback ); + void SetCompletedCallback(CallbackBase* callback); /** * Add a task to rasterize. * * @param[in] task The task to rasterize */ - void AddTask( VectorAnimationTaskPtr task ); + void AddTask(VectorAnimationTaskPtr task); protected: - /** * @brief The entry function of the worker thread. * It rasterizes the vector image. @@ -75,29 +70,25 @@ protected: void Run() override; private: - /** * Rasterizes the tasks. */ void Rasterize(); private: - // Undefined - VectorRasterizeThread( const VectorRasterizeThread& thread ) = delete; + VectorRasterizeThread(const VectorRasterizeThread& thread) = delete; // Undefined - VectorRasterizeThread& operator=( const VectorRasterizeThread& thread ) = delete; + VectorRasterizeThread& operator=(const VectorRasterizeThread& thread) = delete; private: - - std::vector< VectorAnimationTaskPtr > mRasterizeTasks; - ConditionalWait mConditionalWait; - std::unique_ptr< CallbackBase > mCompletedCallback; - bool mDestroyThread; ///< Whether the thread be destroyed - bool mIsThreadStarted; - const Dali::LogFactoryInterface& mLogFactory; ///< The log factory - + std::vector mRasterizeTasks; + ConditionalWait mConditionalWait; + std::unique_ptr mCompletedCallback; + bool mDestroyThread; ///< Whether the thread be destroyed + bool mIsThreadStarted; + const Dali::LogFactoryInterface& mLogFactory; ///< The log factory }; } // namespace Internal