diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-12 21:23:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-12 21:23:15 +0000 |
commit | 008b928ea39904374bc0dc8888e27bc48c812bda (patch) | |
tree | 5525b4c893aa2eae0f188747d64b6ead68225993 /core/fpdfapi/page/cpdf_color.h | |
parent | 1638179e85863b5045fcea2282fd3e0622aeac13 (diff) | |
download | pdfium-008b928ea39904374bc0dc8888e27bc48c812bda.tar.xz |
Rename one CPDF_Color::SetValue() variant.
Rename it to SetValueForPattern() and combine the components parameters
into a std::vector. Fix the callers to use std::vector as well.
Change-Id: Ib3426e0ffdb164f0fbb10d462ad251bf91165925
Reviewed-on: https://pdfium-review.googlesource.com/30450
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_color.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_color.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_color.h b/core/fpdfapi/page/cpdf_color.h index 31bc125d83..a6e640c736 100644 --- a/core/fpdfapi/page/cpdf_color.h +++ b/core/fpdfapi/page/cpdf_color.h @@ -7,6 +7,8 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_COLOR_H_ #define CORE_FPDFAPI_PAGE_CPDF_COLOR_H_ +#include <vector> + #include "core/fpdfapi/page/cpdf_colorspace.h" #include "core/fxcrt/fx_system.h" @@ -24,7 +26,8 @@ class CPDF_Color { void SetColorSpace(CPDF_ColorSpace* pCS); void SetValue(const float* comp); - void SetValue(CPDF_Pattern* pPattern, const float* comp, uint32_t ncomps); + void SetValueForPattern(CPDF_Pattern* pPattern, + const std::vector<float>& values); bool GetRGB(int* R, int* G, int* B) const; |