From 008b928ea39904374bc0dc8888e27bc48c812bda Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 12 Apr 2018 21:23:15 +0000 Subject: 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 Reviewed-by: Henrique Nakashima --- core/fpdfapi/page/cpdf_colorstate.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/page/cpdf_colorstate.h') diff --git a/core/fpdfapi/page/cpdf_colorstate.h b/core/fpdfapi/page/cpdf_colorstate.h index 591610a753..053e103ead 100644 --- a/core/fpdfapi/page/cpdf_colorstate.h +++ b/core/fpdfapi/page/cpdf_colorstate.h @@ -7,6 +7,8 @@ #ifndef CORE_FPDFAPI_PAGE_CPDF_COLORSTATE_H_ #define CORE_FPDFAPI_PAGE_CPDF_COLORSTATE_H_ +#include + #include "core/fpdfapi/page/cpdf_color.h" #include "core/fxcrt/fx_system.h" #include "core/fxcrt/shared_copy_on_write.h" @@ -41,8 +43,9 @@ class CPDF_ColorState { void SetFillColor(CPDF_ColorSpace* pCS, float* pValue, uint32_t nValues); void SetStrokeColor(CPDF_ColorSpace* pCS, float* pValue, uint32_t nValues); - void SetFillPattern(CPDF_Pattern* pattern, float* pValue, uint32_t nValues); - void SetStrokePattern(CPDF_Pattern* pattern, float* pValue, uint32_t nValues); + void SetFillPattern(CPDF_Pattern* pattern, const std::vector& values); + void SetStrokePattern(CPDF_Pattern* pattern, + const std::vector& values); bool HasRef() const { return !!m_Ref; } -- cgit v1.2.3