diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-19 16:35:26 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-08 23:17:06 +0000 |
commit | 88469f5fa0fe43b74063ffaec97617ef0abbb8ca (patch) | |
tree | 6f38498021fe68baccd427dc99620a326a074f60 /core/fpdfapi/page/cpdf_shadingobject.cpp | |
parent | 1f2211e9c3d0c2c3a448280b58c85d021cb3ee4b (diff) | |
download | pdfium-88469f5fa0fe43b74063ffaec97617ef0abbb8ca.tar.xz |
Encapsulate CPDF_ShadingObject members.
Change-Id: I9b878c8df4a6208fb1908bad09eb1c699970163f
Reviewed-on: https://pdfium-review.googlesource.com/21690
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_shadingobject.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_shadingobject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_shadingobject.cpp b/core/fpdfapi/page/cpdf_shadingobject.cpp index df3fbd17cd..1b16ac4862 100644 --- a/core/fpdfapi/page/cpdf_shadingobject.cpp +++ b/core/fpdfapi/page/cpdf_shadingobject.cpp @@ -9,7 +9,9 @@ #include "core/fpdfapi/page/cpdf_shadingpattern.h" #include "core/fpdfapi/parser/cpdf_document.h" -CPDF_ShadingObject::CPDF_ShadingObject() : m_pShading(nullptr) {} +CPDF_ShadingObject::CPDF_ShadingObject(CPDF_ShadingPattern* pattern, + const CFX_Matrix& matrix) + : m_pShading(pattern), m_Matrix(matrix) {} CPDF_ShadingObject::~CPDF_ShadingObject() {} |