diff options
author | npm <npm@chromium.org> | 2016-09-01 13:21:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-01 13:21:37 -0700 |
commit | eadff195ea8a8e0d1f400bd8910873ce8e38635f (patch) | |
tree | ad29ff4d0744c752dabaa8733e522049a6c29053 /core/fpdfapi/fpdf_render/render_int.h | |
parent | f4bf0b22d7fd04be99f05b89008598956cc4ded0 (diff) | |
download | pdfium-eadff195ea8a8e0d1f400bd8910873ce8e38635f.tar.xz |
Move CPDF_Type3Cache and CPDF_Type3Glyphs to their own files
Review-Url: https://codereview.chromium.org/2298163004
Diffstat (limited to 'core/fpdfapi/fpdf_render/render_int.h')
-rw-r--r-- | core/fpdfapi/fpdf_render/render_int.h | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/core/fpdfapi/fpdf_render/render_int.h b/core/fpdfapi/fpdf_render/render_int.h index 66d0a70d52..893784bc8f 100644 --- a/core/fpdfapi/fpdf_render/render_int.h +++ b/core/fpdfapi/fpdf_render/render_int.h @@ -46,50 +46,12 @@ class CPDF_Stream; class CPDF_TilingPattern; class CPDF_TransferFunc; class CPDF_Type3Cache; +class CPDF_Type3Glyphs; class CPDF_Type3Char; class CPDF_Type3Font; -#define TYPE3_MAX_BLUES 16 - FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); -class CPDF_Type3Glyphs { - public: - CPDF_Type3Glyphs(); - ~CPDF_Type3Glyphs(); - - void AdjustBlue(FX_FLOAT top, - FX_FLOAT bottom, - int& top_line, - int& bottom_line); - - std::map<uint32_t, CFX_GlyphBitmap*> m_GlyphMap; - int m_TopBlue[TYPE3_MAX_BLUES]; - int m_BottomBlue[TYPE3_MAX_BLUES]; - int m_TopBlueCount; - int m_BottomBlueCount; -}; - -class CPDF_Type3Cache { - public: - explicit CPDF_Type3Cache(CPDF_Type3Font* pFont); - ~CPDF_Type3Cache(); - - CFX_GlyphBitmap* LoadGlyph(uint32_t charcode, - const CFX_Matrix* pMatrix, - FX_FLOAT retinaScaleX = 1.0f, - FX_FLOAT retinaScaleY = 1.0f); - - protected: - CFX_GlyphBitmap* RenderGlyph(CPDF_Type3Glyphs* pSize, - uint32_t charcode, - const CFX_Matrix* pMatrix, - FX_FLOAT retinaScaleX = 1.0f, - FX_FLOAT retinaScaleY = 1.0f); - CPDF_Type3Font* const m_pFont; - std::map<CFX_ByteString, CPDF_Type3Glyphs*> m_SizeMap; -}; - class CPDF_TransferFunc { public: explicit CPDF_TransferFunc(CPDF_Document* pDoc); |