From 6998bc502dd2798115024c48b95e6e9180b2b3ee Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 12 Apr 2018 17:56:35 +0000 Subject: Make the input data to CPDF_ColorSpace::GetRGB() const. Make a copy of the input data when clamping it in CPDF_Function::Call(). Change-Id: I1d2b3d080977f0f9a4c3ccaf111780867668991a Reviewed-on: https://pdfium-review.googlesource.com/30350 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- core/fpdfapi/page/cpdf_colorspace.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi/page/cpdf_colorspace.h') diff --git a/core/fpdfapi/page/cpdf_colorspace.h b/core/fpdfapi/page/cpdf_colorspace.h index 7f3a739d8f..e9108578f5 100644 --- a/core/fpdfapi/page/cpdf_colorspace.h +++ b/core/fpdfapi/page/cpdf_colorspace.h @@ -68,7 +68,10 @@ class CPDF_ColorSpace { float* min, float* max) const; - virtual bool GetRGB(float* pBuf, float* R, float* G, float* B) const = 0; + virtual bool GetRGB(const float* pBuf, + float* R, + float* G, + float* B) const = 0; virtual void TranslateImageLine(uint8_t* dest_buf, const uint8_t* src_buf, -- cgit v1.2.3