X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fatlas%2Fatlas-glyph-manager-impl.h;h=da659bc2f289e9efd6f0b90e848a1da1cefd1fc8;hp=9fe8ead9b80ce39e95c9a5b2dae22ded24a53861;hb=6861f629112d44d4de1a8a7c70591e2279b951b2;hpb=d3a00dc1c24ece2488696c0b518013ad6d97969b diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h index 9fe8ead..da659bc 100644 --- a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h +++ b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager-impl.h @@ -1,4 +1,3 @@ - #ifndef __DALI_TOOLKIT_ATLAS_GLYPH_MANAGER_IMPL_H__ #define __DALI_TOOLKIT_ATLAS_GLYPH_MANAGER_IMPL_H__ @@ -62,20 +61,15 @@ public: Vector< GlyphRecordEntry > mGlyphRecords; }; - AtlasGlyphManager(); - - virtual ~AtlasGlyphManager(); - -/** - * Create a new AtlasGlyphManager + /** + * @brief Constructor */ - static AtlasGlyphManagerPtr New(); + AtlasGlyphManager(); /** * @copydoc Toolkit::AtlasGlyphManager::Add */ - void Add( Text::FontId fontId, - const Text::GlyphInfo& glyph, + void Add( const Text::GlyphInfo& glyph, const BufferImage& bitmap, Dali::Toolkit::AtlasManager::AtlasSlot& slot ); @@ -117,7 +111,7 @@ public: /** * @copydoc toolkit::AtlasGlyphManager::AdjustReferenceCount */ - void AdjustReferenceCount( Text::FontId fontId, uint32_t imageId, int32_t delta ); + void AdjustReferenceCount( Text::FontId fontId, Text::GlyphIndex index, int32_t delta ); /** * @copydoc Toolkit::AtlasGlyphManager::GetMaterial @@ -127,7 +121,7 @@ public: /** * @copydoc Toolkit::AtlasGlyphManager::GetMaterial */ - Sampler GetSampler( uint32_t atlasId ) const; + Image GetImage( uint32_t atlasId ) const; /** * @copydoc Toolkit::AtlasGlyphManager::GetMetrics @@ -150,6 +144,13 @@ public: return mShadowShader; } +protected: + + /** + * A reference counted object may only be deleted by calling Unreference() + */ + virtual ~AtlasGlyphManager(); + private: Dali::Toolkit::AtlasManager mAtlasManager; ///> Atlas Manager created by GlyphManager @@ -183,5 +184,4 @@ inline Internal::AtlasGlyphManager& GetImplementation(Toolkit::AtlasGlyphManager } // namespace Dali - - #endif // __DALI_TOOLKIT_ATLAS_GLYPH_MANAGER_IMPL_H__ +#endif // __DALI_TOOLKIT_ATLAS_GLYPH_MANAGER_IMPL_H__