diff options
author | Lei Zhang <thestig@chromium.org> | 2018-04-13 18:33:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-13 18:33:46 +0000 |
commit | ecc0123613fa6f455a5a0b498695fb2ea54eed64 (patch) | |
tree | c63e944e49e34f9c0f8768e1ea41f9e9a39c6779 /core/fpdfapi/page/cpdf_colorstate.h | |
parent | dc62019316b411c2e8fe1e9c1a3aa5fb89762cd4 (diff) | |
download | pdfium-ecc0123613fa6f455a5a0b498695fb2ea54eed64.tar.xz |
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 <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorstate.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorstate.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<float>& values, CPDF_Color* color, FX_COLORREF* colorref); + void SetPattern(CPDF_Pattern* pPattern, + const std::vector<float>& values, + CPDF_Color* color, + FX_COLORREF* colorref); SharedCopyOnWrite<ColorData> m_Ref; }; |