X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fsvg%2Fsvg-rasterize-thread.h;h=c0cf72650a9a9bad56444211e35dc3c8a4f1d1c1;hb=5e568632fb11fd797309ccd61d4fcae784de91a0;hp=b915b133d60e182326b2b45314600e7248b54f12;hpb=6c62f5aa91b434193d0fc11b7763ba7286372fc4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/svg/svg-rasterize-thread.h b/dali-toolkit/internal/visuals/svg/svg-rasterize-thread.h index b915b13..c0cf726 100644 --- a/dali-toolkit/internal/visuals/svg/svg-rasterize-thread.h +++ b/dali-toolkit/internal/visuals/svg/svg-rasterize-thread.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_SVG_RASTERIZE_THREAD_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -29,7 +29,6 @@ #include #include #include -#include #include // INTERNAL INCLUDES @@ -60,12 +59,14 @@ class RasterizingTask : public RefObject public: /** * Constructor - * @param[in] svgRenderer The renderer which the rasterized image to be applied. + * @param[in] svgVisual The visual which the rasterized image to be applied. + * @param[in] vectorRenderer The vector rasterizer. * @param[in] url The URL to svg resource to use. + * @param[in] dpi The DPI of the screen. * @param[in] width The rasterization width. * @param[in] height The rasterization height. */ - RasterizingTask(SvgVisual* svgRenderer, VectorImageRenderer vectorRenderer, const VisualUrl& url, float dpi, unsigned int width, unsigned int height); + RasterizingTask(SvgVisual* svgVisual, VectorImageRenderer vectorRenderer, const VisualUrl& url, float dpi, unsigned int width, unsigned int height); /** * Destructor. @@ -73,6 +74,11 @@ public: ~RasterizingTask() override; /** + * Load svg file + */ + void Load(); + + /** * Do the rasterization with the mRasterizer. */ void Rasterize(); @@ -89,21 +95,11 @@ public: PixelData GetPixelData() const; /** - * Get the VectorRenderer. - * @return VectorRenderer. - */ - VectorImageRenderer GetVectorRenderer() const; - /** * Whether the resource is loaded. * @return True if the resource is loaded. */ bool IsLoaded() const; - /** - * Load svg file - */ - void Load(); - private: // Undefined RasterizingTask(const RasterizingTask& task); @@ -117,8 +113,8 @@ private: VisualUrl mUrl; PixelData mPixelData; float mDpi; - unsigned int mWidth; - unsigned int mHeight; + uint32_t mWidth; + uint32_t mHeight; bool mLoadSuccess; }; @@ -166,7 +162,7 @@ public: /** * @copydoc Dali::Integration::Processor::Process() */ - void Process() override; + void Process(bool postProcessor) override; private: /**