summaryrefslogtreecommitdiff
path: root/core/fxge/android/fpf_skiafontmgr.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-21 11:56:53 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-21 11:56:53 -0700
commit83828032e3fa26dd98185523dfdba5f1f4e94dfc (patch)
treec0924c34212ff116d1afa8400844c54f5952aabf /core/fxge/android/fpf_skiafontmgr.h
parentfd5ae3f7cf077d00af0ce3082376f4051c499c5d (diff)
downloadpdfium-83828032e3fa26dd98185523dfdba5f1f4e94dfc.tar.xz
Clean up fpf_skiafontmgr
Remove unused methods, create namespace, nits. Review-Url: https://chromiumcodereview.appspot.com/2433543002
Diffstat (limited to 'core/fxge/android/fpf_skiafontmgr.h')
-rw-r--r--core/fxge/android/fpf_skiafontmgr.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/fxge/android/fpf_skiafontmgr.h b/core/fxge/android/fpf_skiafontmgr.h
index 897e21f981..bd586204c5 100644
--- a/core/fxge/android/fpf_skiafontmgr.h
+++ b/core/fxge/android/fpf_skiafontmgr.h
@@ -95,28 +95,24 @@ class CFPF_SkiaFontMgr {
~CFPF_SkiaFontMgr();
void LoadSystemFonts();
- void LoadPrivateFont(IFX_FileRead* pFontFile);
- void LoadPrivateFont(const CFX_ByteStringC& bsFileName);
- void LoadPrivateFont(void* pBuffer, size_t szBuffer);
CFPF_SkiaFont* CreateFont(const CFX_ByteStringC& bsFamilyname,
uint8_t uCharset,
uint32_t dwStyle,
uint32_t dwMatch = 0);
- FX_BOOL InitFTLibrary();
+ bool InitFTLibrary();
FXFT_Face GetFontFace(IFX_FileRead* pFileRead, int32_t iFaceIndex = 0);
FXFT_Face GetFontFace(const CFX_ByteStringC& bsFile, int32_t iFaceIndex = 0);
FXFT_Face GetFontFace(const uint8_t* pBuffer,
size_t szBuffer,
int32_t iFaceIndex = 0);
- protected:
+ private:
void ScanPath(const CFX_ByteString& path);
void ScanFile(const CFX_ByteString& file);
void ReportFace(FXFT_Face face, CFPF_SkiaFontDescriptor* pFontDesc);
- void OutputSystemFonts();
- FX_BOOL m_bLoaded;
+ bool m_bLoaded;
FXFT_Library m_FTLibrary;
std::vector<CFPF_SkiaFontDescriptor*> m_FontFaces;
std::map<uint32_t, CFPF_SkiaFont*> m_FamilyFonts;