summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_facecache.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-21 16:26:34 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-24 21:17:48 +0000
commit39b83dd0ce7d828f6a17a2e6529ceb5ffc819207 (patch)
treea07d9cbab1d8a91407f988a208f8419cfdf5cdb2 /core/fxge/cfx_facecache.h
parented991c7d9d5bede7e3bb93ff6571512d875716dd (diff)
downloadpdfium-39b83dd0ce7d828f6a17a2e6529ceb5ffc819207.tar.xz
Use unique_ptr in CFX_SizeGlyphCache
Fix illegal leading underscore in class name while at it. Change-Id: Idd138eb42f4a0676552aa02d7dda4c29d1877348 Reviewed-on: https://pdfium-review.googlesource.com/4438 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/cfx_facecache.h')
-rw-r--r--core/fxge/cfx_facecache.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/core/fxge/cfx_facecache.h b/core/fxge/cfx_facecache.h
index 44ed0b287a..5857a6310b 100644
--- a/core/fxge/cfx_facecache.h
+++ b/core/fxge/cfx_facecache.h
@@ -33,17 +33,18 @@ class CFX_FaceCache {
#endif
private:
- CFX_GlyphBitmap* RenderGlyph(const CFX_Font* pFont,
- uint32_t glyph_index,
- bool bFontStyle,
- const CFX_Matrix* pMatrix,
- int dest_width,
- int anti_alias);
- CFX_GlyphBitmap* RenderGlyph_Nativetext(const CFX_Font* pFont,
- uint32_t glyph_index,
- const CFX_Matrix* pMatrix,
- int dest_width,
- int anti_alias);
+ std::unique_ptr<CFX_GlyphBitmap> RenderGlyph(const CFX_Font* pFont,
+ uint32_t glyph_index,
+ bool bFontStyle,
+ const CFX_Matrix* pMatrix,
+ int dest_width,
+ int anti_alias);
+ std::unique_ptr<CFX_GlyphBitmap> RenderGlyph_Nativetext(
+ const CFX_Font* pFont,
+ uint32_t glyph_index,
+ const CFX_Matrix* pMatrix,
+ int dest_width,
+ int anti_alias);
CFX_GlyphBitmap* LookUpGlyphBitmap(const CFX_Font* pFont,
const CFX_Matrix* pMatrix,
const CFX_ByteString& FaceGlyphsKey,