Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: core/fpdfapi/fpdf_page/cpdf_colorstatedata.h

Issue 2294553002: Revert "Use ->() in CPDF_ColorState" (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_colorstate.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_colorstatedata.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_page/cpdf_colorstatedata.h
diff --git a/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h b/core/fpdfapi/fpdf_page/cpdf_colorstatedata.h
index 1b8413f3f14b7ada3cc0c0f38644e5f52081a75f..6a992ad0b1ecb10c2105d0d21a3dea08576bd986 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_
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_colorstate.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_colorstatedata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698