diff options
author | Nicolas Pena <npm@chromium.org> | 2018-05-31 18:30:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-31 18:30:32 +0000 |
commit | 08eaf467ed0bed35ecccf370df32b7d51f3bc5fa (patch) | |
tree | 5a56502bf869f2bc2155c119f01d4c840e69c9d2 /core/fpdfapi/render/cpdf_type3glyphs.h | |
parent | dd5459ce862dfe709b88f698a28e72b31be6fb7c (diff) | |
download | pdfium-08eaf467ed0bed35ecccf370df32b7d51f3bc5fa.tar.xz |
Clean up some nits in CPDF_Type3Glyph
Change-Id: Ia466bb0119d914794b0d7ed9385547a7be245858
Reviewed-on: https://pdfium-review.googlesource.com/33312
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3glyphs.h')
-rw-r--r-- | core/fpdfapi/render/cpdf_type3glyphs.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/fpdfapi/render/cpdf_type3glyphs.h b/core/fpdfapi/render/cpdf_type3glyphs.h index 7756be309f..09dd70a564 100644 --- a/core/fpdfapi/render/cpdf_type3glyphs.h +++ b/core/fpdfapi/render/cpdf_type3glyphs.h @@ -9,25 +9,26 @@ #include <map> #include <memory> +#include <utility> +#include <vector> #include "core/fxcrt/fx_system.h" class CFX_GlyphBitmap; -#define TYPE3_MAX_BLUES 16 - class CPDF_Type3Glyphs { public: CPDF_Type3Glyphs(); ~CPDF_Type3Glyphs(); - void AdjustBlue(float top, float bottom, int& top_line, int& bottom_line); + // Returns a pair of integers (top_line, bottom_line). + std::pair<int, int> AdjustBlue(float top, float bottom); std::map<uint32_t, std::unique_ptr<CFX_GlyphBitmap>> m_GlyphMap; - int m_TopBlueCount; - int m_BottomBlueCount; - int m_TopBlue[TYPE3_MAX_BLUES]; - int m_BottomBlue[TYPE3_MAX_BLUES]; + + private: + std::vector<int> m_TopBlue; + std::vector<int> m_BottomBlue; }; #endif // CORE_FPDFAPI_RENDER_CPDF_TYPE3GLYPHS_H_ |