Make GlyphCacheManager cache shared_ptr of GlyphCacheData 59/290359/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 23 Mar 2023 14:03:58 +0000 (23:03 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 23 Mar 2023 14:38:31 +0000 (23:38 +0900)
commit87fedb101d54c95bc6afb3bcfc3b10cf01db5715
tree381abc3cb8c128319abf89a2c7a0952676fa46e5
parent4a0ac161bb7526bf2a16ebfd46384a858e3f0326
Make GlyphCacheManager cache shared_ptr of GlyphCacheData

Previously, font-face-glyph-cache-manager release GlyphCacheData by manager side.

Now, let we keep cache data by shared_ptr<GlyphCacheData>, and also get pointer,
not whole copy of data.

After this patch, we don't need to worry about glyph cache data's lifecycle.

Change-Id: Iceb58d78085f0415b679434cd5066ea93ab2859a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp
dali/internal/text/text-abstraction/plugin/font-face-glyph-cache-manager.cpp
dali/internal/text/text-abstraction/plugin/font-face-glyph-cache-manager.h
dali/internal/text/text-abstraction/plugin/harfbuzz-proxy-font.cpp