X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fnpatch%2Fnpatch-renderer.h;h=77ba2a4632af6405856d9fa5e15fbd999fc5e25a;hb=refs%2Fchanges%2F40%2F49040%2F8;hp=6e5bd5d949e3bcb1f4318c2b43028f64720c5078;hpb=33f6a623f309e8696d9e149e6ecf50a64e4cfddc;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h index 6e5bd5d..77ba2a4 100644 --- a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h +++ b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h @@ -55,8 +55,10 @@ public: /** * @brief Constructor. + * + * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object */ - NPatchRenderer(); + NPatchRenderer( RendererFactoryCache& factoryCache ); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -66,11 +68,6 @@ public: public: // from ControlRenderer /** - * @copydoc ControlRenderer::DoInitialize - */ - virtual void DoInitialize( RendererFactoryCache& factoryCache, const Property::Map& propertyMap ); - - /** * @copydoc ControlRenderer::GetNaturalSize */ virtual void GetNaturalSize( Vector2& naturalSize ) const; @@ -91,6 +88,17 @@ public: // from ControlRenderer virtual void DoCreatePropertyMap( Property::Map& map ) const; protected: + + /** + * @copydoc ControlRenderer::DoInitialize + */ + virtual void DoInitialize( const Property::Map& propertyMap ); + + /** + * @copydoc ControlRenderer::InitializeRenderer + */ + virtual void InitializeRenderer( Renderer& renderer ); + /** * @copydoc ControlRenderer::DoSetOnStage */ @@ -104,13 +112,6 @@ protected: public: /** - * Request the geometry and shader from the cache, if not available, create and save to the cache for sharing. - * - * @param[in] factoryCache A pointer pointing to the RendererFactoryCache object - */ - void Initialize( RendererFactoryCache& factoryCache ); - - /** * @brief Sets the 9 patch image of this renderer to the resource at imageUrl * The renderer will load the image synchronously when the associated actor is put on stage, and destroy the image when it is off stage * @@ -184,7 +185,6 @@ private: Image mCroppedImage; Geometry mNinePatchGeometry; Geometry mNinePatchBorderGeometry; - Shader mNinePatchShader; std::string mImageUrl; ///< The url to the image resource to render if the renderer was set from an image resource url, empty otherwise NinePatchImage::StretchRanges mStretchPixelsX;