From eadff195ea8a8e0d1f400bd8910873ce8e38635f Mon Sep 17 00:00:00 2001 From: npm Date: Thu, 1 Sep 2016 13:21:37 -0700 Subject: Move CPDF_Type3Cache and CPDF_Type3Glyphs to their own files Review-Url: https://codereview.chromium.org/2298163004 --- core/fpdfapi/fpdf_render/render_int.h | 40 +---------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'core/fpdfapi/fpdf_render/render_int.h') 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 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 m_SizeMap; -}; - class CPDF_TransferFunc { public: explicit CPDF_TransferFunc(CPDF_Document* pDoc); -- cgit v1.2.3