X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Frenderer-factory-cache.h;h=8d5b18e45390f4f4d25193111906af69070c7769;hb=d00a250741411c386d988e7ac34525cf94a1918e;hp=d1c26ee60fa512123603b4ec4ad7368b460149e3;hpb=f3c7e52f300fc2f6d07bcbd75ad3b992e19083f5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h b/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h index d1c26ee..8d5b18e 100644 --- a/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h +++ b/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H__ -#define __DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H__ +#ifndef DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H +#define DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 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. @@ -17,13 +17,15 @@ * limitations under the License. */ -#include +// INTERNAL INCLUDES +#include "svg/svg-rasterize-thread.h" // EXTERNAL INCLUDES +#include #include -#include -#include -#include +#include +#include +#include #include #include @@ -51,6 +53,7 @@ public: { COLOR_SHADER, BORDER_SHADER, + BORDER_SHADER_ANTI_ALIASING, GRADIENT_SHADER_LINEAR_USER_SPACE, GRADIENT_SHADER_LINEAR_BOUNDING_BOX, GRADIENT_SHADER_RADIAL_USER_SPACE, @@ -112,6 +115,13 @@ public: */ static Geometry CreateQuadGeometry(); + /** + * Create the grid geometry. + * @param[in] gridSize The size of the grid. + * @return The created grid geometry. + */ + static Geometry CreateGridGeometry( Uint16Pair gridSize ); + public: /** @@ -141,6 +151,29 @@ public: */ bool CleanRendererCache( const std::string& key ); + /** + * @brief Cache the debug renderer + */ + void CacheDebugRenderer( Renderer& renderer ); + + /** + * @brief Request the debug renderer; + */ + Renderer GetDebugRenderer(); + + /** + * Get the SVG rasterization thread. + * @return A pointer pointing to the SVG rasterization thread. + */ + SvgRasterizeThread* GetSVGRasterizationThread(); + +private: // for svg rasterization thread + + /** + * Applies the rasterized image to material + */ + void ApplyRasterizedSVGToSampler(); + protected: /** @@ -181,14 +214,15 @@ private: int FindRenderer( const std::string& key ) const; private: - // ToDo: test whether using the WeakHandle could improve the performance - // With WeakHandle, the resource would be released automatically when no control is using it - Geometry mGeometry[GEOMETRY_TYPE_MAX+1]; Shader mShader[SHADER_TYPE_MAX+1]; HashVector mRendererHashes; CachedRenderers mRenderers; + + Renderer mDebugRenderer; + + SvgRasterizeThread* mSvgRasterizeThread; }; } // namespace Internal @@ -197,4 +231,4 @@ private: } // namespace Dali -#endif /*__DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H__ */ +#endif // DALI_TOOLKIT_RENDERER_FACTORY_CACHE_H