diff options
author | Lei Zhang <thestig@chromium.org> | 2018-03-20 21:06:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-20 21:06:35 +0000 |
commit | 40d37b1a8077031a078b374eaf6644d89e506d23 (patch) | |
tree | 72928249b6b2c0c230917518a5a616cf757c0da8 /core/fpdfapi/page/cpdf_colorstate.h | |
parent | aff457782dcb9c2f7fa82e3c9c469182c5b8ad15 (diff) | |
download | pdfium-40d37b1a8077031a078b374eaf6644d89e506d23.tar.xz |
Rename "RGB" methods/variables to "ColorRef" in CPDF_ColorState.
Change-Id: I196e3148d680c9efeaf9609dd3ddbfe3f6635fa6
Reviewed-on: https://pdfium-review.googlesource.com/28576
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorstate.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorstate.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fpdfapi/page/cpdf_colorstate.h b/core/fpdfapi/page/cpdf_colorstate.h index cae79b28e2..591610a753 100644 --- a/core/fpdfapi/page/cpdf_colorstate.h +++ b/core/fpdfapi/page/cpdf_colorstate.h @@ -10,6 +10,7 @@ #include "core/fpdfapi/page/cpdf_color.h" #include "core/fxcrt/fx_system.h" #include "core/fxcrt/shared_copy_on_write.h" +#include "core/fxge/fx_dib.h" class CPDF_Color; class CPDF_ColorSpace; @@ -24,11 +25,11 @@ class CPDF_ColorState { void Emplace(); void SetDefault(); - uint32_t GetFillRGB() const; - void SetFillRGB(uint32_t rgb); + FX_COLORREF GetFillColorRef() const; + void SetFillColorRef(FX_COLORREF colorref); - uint32_t GetStrokeRGB() const; - void SetStrokeRGB(uint32_t rgb); + FX_COLORREF GetStrokeColorRef() const; + void SetStrokeColorRef(FX_COLORREF colorref); const CPDF_Color* GetFillColor() const; CPDF_Color* GetMutableFillColor(); @@ -54,15 +55,14 @@ class CPDF_ColorState { void SetDefault(); - // TODO(thestig): Rename these to BGR. - uint32_t m_FillRGB; - uint32_t m_StrokeRGB; + FX_COLORREF m_FillColorRef; + FX_COLORREF m_StrokeColorRef; CPDF_Color m_FillColor; CPDF_Color m_StrokeColor; }; void SetColor(CPDF_Color& color, - uint32_t& rgb, + FX_COLORREF* colorref, CPDF_ColorSpace* pCS, float* pValue, uint32_t nValues); |