diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-13 15:44:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-13 15:44:36 +0000 |
commit | 996c93068bfc8b443c77b735bc6400285bc8a407 (patch) | |
tree | 13b6d18f62f15c4ba04edec3dd2349f7ae3c1d54 /core/fpdfapi/page/cpdf_colorstate.h | |
parent | 7afdad5ab7a1bd54ddf6f2a823be30d4b8e39567 (diff) | |
download | pdfium-996c93068bfc8b443c77b735bc6400285bc8a407.tar.xz |
Rename the other CPDF_Color::SetValue() variant.
Rename it to SetValueForNonePattern() and combine the components
parameters into a std::vector. Fix the callers to use std::vector as
well.
Change-Id: I0edd7e7876e47b56821e63cc5073fc21fd4098ee
Reviewed-on: https://pdfium-review.googlesource.com/30470
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorstate.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorstate.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/fpdfapi/page/cpdf_colorstate.h b/core/fpdfapi/page/cpdf_colorstate.h index 053e103ead..a617409268 100644 --- a/core/fpdfapi/page/cpdf_colorstate.h +++ b/core/fpdfapi/page/cpdf_colorstate.h @@ -41,8 +41,8 @@ class CPDF_ColorState { CPDF_Color* GetMutableStrokeColor(); bool HasStrokeColor() const; - void SetFillColor(CPDF_ColorSpace* pCS, float* pValue, uint32_t nValues); - void SetStrokeColor(CPDF_ColorSpace* pCS, float* pValue, uint32_t nValues); + void SetFillColor(CPDF_ColorSpace* pCS, const std::vector<float>& values); + void SetStrokeColor(CPDF_ColorSpace* pCS, const std::vector<float>& values); void SetFillPattern(CPDF_Pattern* pattern, const std::vector<float>& values); void SetStrokePattern(CPDF_Pattern* pattern, const std::vector<float>& values); @@ -64,11 +64,10 @@ class CPDF_ColorState { CPDF_Color m_StrokeColor; }; - void SetColor(CPDF_Color& color, - FX_COLORREF* colorref, - CPDF_ColorSpace* pCS, - float* pValue, - uint32_t nValues); + void SetColor(CPDF_ColorSpace* pCS, + const std::vector<float>& values, + CPDF_Color* color, + FX_COLORREF* colorref); SharedCopyOnWrite<ColorData> m_Ref; }; |