diff options
author | tsepez <tsepez@chromium.org> | 2016-08-29 14:07:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-29 14:07:28 -0700 |
commit | adbd32950006075fc04ff2cbb01bf3a099f0e010 (patch) | |
tree | 62ad8839a0190a8cf5e2b0823276e4ba2dbd99a2 /core/fpdfapi/fpdf_page/cpdf_colorstatedata.h | |
parent | dda2c0dc502b50d4de66b80305441bfb612ec6c1 (diff) | |
download | pdfium-adbd32950006075fc04ff2cbb01bf3a099f0e010.tar.xz |
Revert "Use ->() in CPDF_ColorState"
This reverts commit 91ddd3f7501429222f648b986a99f3959a398889.
Reason for revert: may introduce sublte bugs, more thought required.
TBR=dsinclair@chromium.org
Review-Url: https://codereview.chromium.org/2294553002
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_colorstatedata.h')
-rw-r--r-- | core/fpdfapi/fpdf_page/cpdf_colorstatedata.h | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h b/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h index 1b8413f3f1..6a992ad0b1 100644 --- a/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h +++ b/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h @@ -10,49 +10,17 @@ #include "core/fpdfapi/fpdf_page/include/cpdf_color.h" #include "core/fxcrt/include/fx_system.h" -class CPDF_Color; -class CPDF_ColorSpace; -class CPDF_Pattern; - class CPDF_ColorStateData { public: CPDF_ColorStateData() : m_FillRGB(0), m_StrokeRGB(0) {} CPDF_ColorStateData(const CPDF_ColorStateData& src); - void SetDefault(); - - uint32_t GetFillRGB() const { return m_FillRGB; } - void SetFillRGB(uint32_t rgb) { m_FillRGB = rgb; } - - uint32_t GetStrokeRGB() const { return m_StrokeRGB; } - void SetStrokeRGB(uint32_t rgb) { m_StrokeRGB = rgb; } - - CPDF_Color* GetFillColor() { return &m_FillColor; } - const CPDF_Color* GetFillColor() const { return &m_FillColor; } - void SetFillColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, uint32_t nValues); - - CPDF_Color* GetStrokeColor() { return &m_StrokeColor; } - const CPDF_Color* GetStrokeColor() const { return &m_StrokeColor; } - void SetStrokeColor(CPDF_ColorSpace* pCS, FX_FLOAT* pValue, uint32_t nValues); - - void SetFillPattern(CPDF_Pattern* pattern, - FX_FLOAT* pValue, - uint32_t nValues); - void SetStrokePattern(CPDF_Pattern* pattern, - FX_FLOAT* pValue, - uint32_t nValues); + void Default(); - private: - void SetColor(CPDF_Color& color, - uint32_t& rgb, - CPDF_ColorSpace* pCS, - FX_FLOAT* pValue, - uint32_t nValues); - - uint32_t m_FillRGB; - uint32_t m_StrokeRGB; CPDF_Color m_FillColor; + uint32_t m_FillRGB; CPDF_Color m_StrokeColor; + uint32_t m_StrokeRGB; }; #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_COLORSTATEDATA_H_ |