summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_facecache.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-26 10:52:53 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-26 15:24:34 +0000
commit15dffdf6bd8d595193cfb072974a8efeb8052a91 (patch)
tree6f29c7c7eb78f6d1453a86ed643f2d1e41533f2b /core/fxge/cfx_facecache.h
parent1a43b3064dc38a55de4b1d727237806578bb3ef9 (diff)
downloadpdfium-15dffdf6bd8d595193cfb072974a8efeb8052a91.tar.xz
Remove fx_text_int.h
The CFX_SizeGlyphCache is only used internally by the CFX_FaceCache. This CL moves the definition to that file and removes fx_text_int.h Change-Id: I38f26f437f0eaa72492995ae7442d5c38ed2f229 Reviewed-on: https://pdfium-review.googlesource.com/14771 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/cfx_facecache.h')
-rw-r--r--core/fxge/cfx_facecache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fxge/cfx_facecache.h b/core/fxge/cfx_facecache.h
index 673d0a4cf9..ef5652ed20 100644
--- a/core/fxge/cfx_facecache.h
+++ b/core/fxge/cfx_facecache.h
@@ -38,6 +38,8 @@ class CFX_FaceCache {
#endif
private:
+ using SizeGlyphCache = std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>>;
+
std::unique_ptr<CFX_GlyphBitmap> RenderGlyph(const CFX_Font* pFont,
uint32_t glyph_index,
bool bFontStyle,
@@ -61,7 +63,7 @@ class CFX_FaceCache {
void DestroyPlatform();
FXFT_Face const m_Face;
- std::map<ByteString, std::unique_ptr<CFX_SizeGlyphCache>> m_SizeMap;
+ std::map<ByteString, SizeGlyphCache> m_SizeMap;
std::map<uint32_t, std::unique_ptr<CFX_PathData>> m_PathMap;
#if defined _SKIA_SUPPORT_ || _SKIA_SUPPORT_PATHS_
sk_sp<SkTypeface> m_pTypeface;