diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-17 20:44:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-17 20:44:22 +0000 |
commit | cffa651acfa7ca1d90aecea728e94c5c3dcdfe79 (patch) | |
tree | 11f2db075105c99e6967a5476d3803739092fb96 /core/fxge/android/cfpf_skiafont.h | |
parent | 16208a0ef769a84c7e96ff5d55a16637ca01de03 (diff) | |
download | pdfium-cffa651acfa7ca1d90aecea728e94c5c3dcdfe79.tar.xz |
Change CFPF_SkiaFontMgr::m_FontFaces to store unique_ptrs.
Instead of raw pointers.
Change-Id: Ie46af37bbe3fe287bdff25249afaeb90589c85b3
Reviewed-on: https://pdfium-review.googlesource.com/40552
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/android/cfpf_skiafont.h')
-rw-r--r-- | core/fxge/android/cfpf_skiafont.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/android/cfpf_skiafont.h b/core/fxge/android/cfpf_skiafont.h index 260e4222a5..d80378ec75 100644 --- a/core/fxge/android/cfpf_skiafont.h +++ b/core/fxge/android/cfpf_skiafont.h @@ -37,14 +37,14 @@ class CFPF_SkiaFont { uint32_t GetFontData(uint32_t dwTable, uint8_t* pBuffer, uint32_t dwSize); bool InitFont(CFPF_SkiaFontMgr* pFontMgr, - CFPF_SkiaPathFont* pFont, + const CFPF_SkiaPathFont* pFont, const ByteStringView& bsFamily, uint32_t dwStyle, uint8_t uCharset); private: UnownedPtr<CFPF_SkiaFontMgr> m_pFontMgr; - UnownedPtr<CFPF_SkiaPathFont> m_pFont; + UnownedPtr<const CFPF_SkiaPathFont> m_pFont; FXFT_Face m_Face = nullptr; uint32_t m_dwStyle = 0; uint8_t m_uCharset = 0; |