X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Frenderer-factory-cache.h;h=f6fd573ca531f397cfa155d7fcd07a3feef47f29;hp=2dbcd7a3e6189d7b9ba89845406cf3bf1194939f;hb=54fbf47db890d0479d19d780de5ea5d860924632;hpb=ae4ebe4de0eaea7942295160d310b9818969b3e7 diff --git a/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h b/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h index 2dbcd7a..f6fd573 100644 --- a/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h +++ b/dali-toolkit/internal/controls/renderers/renderer-factory-cache.h @@ -17,9 +17,11 @@ * limitations under the License. */ -#include +// INTERNAL INCLUDES +#include "svg/svg-rasterize-thread.h" // EXTERNAL INCLUDES +#include #include #include #include @@ -113,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: /** @@ -152,6 +161,19 @@ public: */ 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: /** @@ -192,9 +214,6 @@ 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]; @@ -202,6 +221,8 @@ private: CachedRenderers mRenderers; Renderer mDebugRenderer; + + SvgRasterizeThread* mSvgRasterizeThread; }; } // namespace Internal