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.h | |
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.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_shadingobject.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_shadingobject.h b/core/fpdfapi/page/cpdf_shadingobject.h index a5405cb090..80e062c729 100644 --- a/core/fpdfapi/page/cpdf_shadingobject.h +++ b/core/fpdfapi/page/cpdf_shadingobject.h @@ -15,10 +15,10 @@ class CPDF_ShadingPattern; class CPDF_ShadingObject : public CPDF_PageObject { public: - CPDF_ShadingObject(); + CPDF_ShadingObject(CPDF_ShadingPattern* pattern, const CFX_Matrix& matrix); ~CPDF_ShadingObject() override; - // CPDF_PageObject + // CPDF_PageObject: Type GetType() const override; void Transform(const CFX_Matrix& matrix) override; bool IsShading() const override; @@ -27,6 +27,10 @@ class CPDF_ShadingObject : public CPDF_PageObject { void CalcBoundingBox(); + const CPDF_ShadingPattern* pattern() const { return m_pShading.Get(); } + const CFX_Matrix& matrix() const { return m_Matrix; } + + private: UnownedPtr<CPDF_ShadingPattern> m_pShading; CFX_Matrix m_Matrix; }; |