From ecc0123613fa6f455a5a0b498695fb2ea54eed64 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 13 Apr 2018 18:33:46 +0000 Subject: Add CPDF_ColorState::SetPattern(). A common helper method for patterns, just like SetColor(). Change-Id: Iba6a9b33143d2d1278d05bbc2ce7e26b0ae5d197 Reviewed-on: https://pdfium-review.googlesource.com/30591 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fpdfapi/page/cpdf_colorstate.h | 4 ++++ 1 file changed, 4 insertions(+) (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 a617409268..49416db1d5 100644 --- a/core/fpdfapi/page/cpdf_colorstate.h +++ b/core/fpdfapi/page/cpdf_colorstate.h @@ -68,6 +68,10 @@ class CPDF_ColorState { const std::vector& values, CPDF_Color* color, FX_COLORREF* colorref); + void SetPattern(CPDF_Pattern* pPattern, + const std::vector& values, + CPDF_Color* color, + FX_COLORREF* colorref); SharedCopyOnWrite m_Ref; }; -- cgit v1.2.3