summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_colorstate.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-12 21:23:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-12 21:23:15 +0000
commit008b928ea39904374bc0dc8888e27bc48c812bda (patch)
tree5525b4c893aa2eae0f188747d64b6ead68225993 /core/fpdfapi/page/cpdf_colorstate.h
parent1638179e85863b5045fcea2282fd3e0622aeac13 (diff)
downloadpdfium-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_colorstate.h')
-rw-r--r--core/fpdfapi/page/cpdf_colorstate.h7
1 files changed, 5 insertions, 2 deletions
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 <vector>
+
#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<float>& values);
+ void SetStrokePattern(CPDF_Pattern* pattern,
+ const std::vector<float>& values);
bool HasRef() const { return !!m_Ref; }