X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fatlas%2Fatlas-glyph-manager.h;h=6a5348164ef68d91a44d1b25dddeea4e77d7f4ad;hb=cc82bd9b187cda8fe2c8336b73fd1fa9376cfebd;hp=a90efdb42d6f259173a286bdcf12284944df087a;hpb=3e17d9f63dedb5d669409301f8d9a3d8c393f979;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager.h b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager.h index a90efdb..6a53481 100644 --- a/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager.h +++ b/dali-toolkit/internal/text/rendering/atlas/atlas-glyph-manager.h @@ -39,6 +39,15 @@ class DALI_IMPORT_API AtlasGlyphManager : public BaseHandle public: /** + * Description of GlyphManager state + */ + struct Metrics + { + uint32_t mGlyphCount; // number of glyphs being managed + AtlasManager::Metrics mAtlasMetrics; // metrics from the Atlas Manager + }; + + /** * @brief Create a AtlasGlyphManager handle. * * Calling member functions with an uninitialised handle is not allowed. @@ -107,8 +116,8 @@ public: * @param[in] size size of the atlas in pixels * @param[in] blockSize size of a block in this atlas in pixels */ - void SetAtlasSize( const Vector2& size, - const Vector2& blockSize ); + void SetNewAtlasSize( const Vector2& size, + const Vector2& blockSize ); /** * @brief Unreference an image from the atlas and remove from cache if no longer needed @@ -120,11 +129,19 @@ public: /** * @brief Get the Pixel Format used by an atlas * - * @param atlasId Id of atlas to check + * @param[in] atlasId Id of atlas to check + * * @return The pixel format of the atlas */ Pixel::Format GetPixelFormat( uint32_t atlasId ); + /** + * @brief Get Glyph Manager metrics + * + * @return const reference to glyph manager metrics + */ + const Metrics& GetMetrics(); + private: explicit DALI_INTERNAL AtlasGlyphManager(Internal::AtlasGlyphManager *impl);