summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_imageobject.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-11-21 14:54:29 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 14:54:29 -0800
commit8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf (patch)
treed6cc32fe926152e521248f57c5c51deb8ba5aa73 /core/fpdfapi/page/cpdf_imageobject.h
parentd88090fb780480217af37273e7abb01ae48e322b (diff)
downloadpdfium-8a5e15d7b16c1c2a99b013fc4f68597cedab4fcf.tar.xz
Make CPDF_ImageObject::m_Matrix private.
Review-Url: https://codereview.chromium.org/2514263003
Diffstat (limited to 'core/fpdfapi/page/cpdf_imageobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_imageobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_imageobject.h b/core/fpdfapi/page/cpdf_imageobject.h
index fd99d3d612..2bb1e8233d 100644
--- a/core/fpdfapi/page/cpdf_imageobject.h
+++ b/core/fpdfapi/page/cpdf_imageobject.h
@@ -32,11 +32,13 @@ class CPDF_ImageObject : public CPDF_PageObject {
void SetOwnedImage(std::unique_ptr<CPDF_Image> pImage);
void SetUnownedImage(CPDF_Image* pImage);
- CFX_Matrix m_Matrix;
+ void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
+ const CFX_Matrix& matrix() const { return m_Matrix; }
private:
void Release();
+ CFX_Matrix m_Matrix;
CPDF_Image* m_pImage;
bool m_pImageOwned;
};