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_colorstate.cpp | |
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_colorstate.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorstate.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/fpdfapi/page/cpdf_colorstate.cpp b/core/fpdfapi/page/cpdf_colorstate.cpp index b1f14c88b1..16d2770600 100644 --- a/core/fpdfapi/page/cpdf_colorstate.cpp +++ b/core/fpdfapi/page/cpdf_colorstate.cpp @@ -85,10 +85,9 @@ void CPDF_ColorState::SetStrokeColor(CPDF_ColorSpace* pCS, } void CPDF_ColorState::SetFillPattern(CPDF_Pattern* pPattern, - float* pValue, - uint32_t nValues) { + const std::vector<float>& values) { ColorData* pData = m_Ref.GetPrivateCopy(); - pData->m_FillColor.SetValue(pPattern, pValue, nValues); + pData->m_FillColor.SetValueForPattern(pPattern, values); int R; int G; int B; @@ -103,10 +102,9 @@ void CPDF_ColorState::SetFillPattern(CPDF_Pattern* pPattern, } void CPDF_ColorState::SetStrokePattern(CPDF_Pattern* pPattern, - float* pValue, - uint32_t nValues) { + const std::vector<float>& values) { ColorData* pData = m_Ref.GetPrivateCopy(); - pData->m_StrokeColor.SetValue(pPattern, pValue, nValues); + pData->m_StrokeColor.SetValueForPattern(pPattern, values); int R; int G; int B; |