| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_FXGE_INCLUDE_CFX_FACECACHE_H_ | 7 #ifndef CORE_FXGE_CFX_FACECACHE_H_ |
| 8 #define CORE_FXGE_INCLUDE_CFX_FACECACHE_H_ | 8 #define CORE_FXGE_CFX_FACECACHE_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "core/fxge/include/fx_font.h" | 12 #include "core/fxge/fx_font.h" |
| 13 #include "core/fxge/include/fx_freetype.h" | 13 #include "core/fxge/fx_freetype.h" |
| 14 | 14 |
| 15 class CFX_FaceCache { | 15 class CFX_FaceCache { |
| 16 public: | 16 public: |
| 17 explicit CFX_FaceCache(FXFT_Face face); | 17 explicit CFX_FaceCache(FXFT_Face face); |
| 18 ~CFX_FaceCache(); | 18 ~CFX_FaceCache(); |
| 19 const CFX_GlyphBitmap* LoadGlyphBitmap(const CFX_Font* pFont, | 19 const CFX_GlyphBitmap* LoadGlyphBitmap(const CFX_Font* pFont, |
| 20 uint32_t glyph_index, | 20 uint32_t glyph_index, |
| 21 FX_BOOL bFontStyle, | 21 FX_BOOL bFontStyle, |
| 22 const CFX_Matrix* pMatrix, | 22 const CFX_Matrix* pMatrix, |
| 23 int dest_width, | 23 int dest_width, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 54 void DestroyPlatform(); | 54 void DestroyPlatform(); |
| 55 | 55 |
| 56 FXFT_Face const m_Face; | 56 FXFT_Face const m_Face; |
| 57 std::map<CFX_ByteString, std::unique_ptr<CFX_SizeGlyphCache>> m_SizeMap; | 57 std::map<CFX_ByteString, std::unique_ptr<CFX_SizeGlyphCache>> m_SizeMap; |
| 58 std::map<uint32_t, std::unique_ptr<CFX_PathData>> m_PathMap; | 58 std::map<uint32_t, std::unique_ptr<CFX_PathData>> m_PathMap; |
| 59 #ifdef _SKIA_SUPPORT_ | 59 #ifdef _SKIA_SUPPORT_ |
| 60 CFX_TypeFace* m_pTypeface; | 60 CFX_TypeFace* m_pTypeface; |
| 61 #endif | 61 #endif |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 #endif // CORE_FXGE_INCLUDE_CFX_FACECACHE_H_ | 64 #endif // CORE_FXGE_CFX_FACECACHE_H_ |
| OLD | NEW |