Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: core/fpdfapi/page/cpdf_imageobject.h

Issue 2514263003: Make CPDF_ImageObject::m_Matrix private. (Closed)
Patch Set: nit Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfapi/font/cpdf_type3char.cpp ('k') | core/fpdfapi/page/cpdf_streamcontentparser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_ 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_
8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 void Transform(const CFX_Matrix& matrix) override; 25 void Transform(const CFX_Matrix& matrix) override;
26 bool IsImage() const override; 26 bool IsImage() const override;
27 CPDF_ImageObject* AsImage() override; 27 CPDF_ImageObject* AsImage() override;
28 const CPDF_ImageObject* AsImage() const override; 28 const CPDF_ImageObject* AsImage() const override;
29 29
30 void CalcBoundingBox(); 30 void CalcBoundingBox();
31 CPDF_Image* GetImage() const { return m_pImage; } 31 CPDF_Image* GetImage() const { return m_pImage; }
32 void SetOwnedImage(std::unique_ptr<CPDF_Image> pImage); 32 void SetOwnedImage(std::unique_ptr<CPDF_Image> pImage);
33 void SetUnownedImage(CPDF_Image* pImage); 33 void SetUnownedImage(CPDF_Image* pImage);
34 34
35 CFX_Matrix m_Matrix; 35 void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
36 const CFX_Matrix& matrix() const { return m_Matrix; }
36 37
37 private: 38 private:
38 void Release(); 39 void Release();
39 40
41 CFX_Matrix m_Matrix;
40 CPDF_Image* m_pImage; 42 CPDF_Image* m_pImage;
41 bool m_pImageOwned; 43 bool m_pImageOwned;
42 }; 44 };
43 45
44 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_ 46 #endif // CORE_FPDFAPI_PAGE_CPDF_IMAGEOBJECT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/font/cpdf_type3char.cpp ('k') | core/fpdfapi/page/cpdf_streamcontentparser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698