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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_shadingpattern.h

Issue 2017463002: get skia building (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months 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 | « no previous file | core/fxge/skia/fx_skia_device.cpp » ('j') | core/fxge/skia/fx_skia_device.cpp » ('J')
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_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_ShadingType == kLatticeFormGouraudTriangleMeshShading || 48 m_ShadingType == kLatticeFormGouraudTriangleMeshShading ||
49 m_ShadingType == kCoonsPatchMeshShading || 49 m_ShadingType == kCoonsPatchMeshShading ||
50 m_ShadingType == kTensorProductPatchMeshShading; 50 m_ShadingType == kTensorProductPatchMeshShading;
51 } 51 }
52 bool Load(); 52 bool Load();
53 53
54 ShadingType GetShadingType() const { return m_ShadingType; } 54 ShadingType GetShadingType() const { return m_ShadingType; }
55 FX_BOOL IsShadingObject() const { return m_bShadingObj; } 55 FX_BOOL IsShadingObject() const { return m_bShadingObj; }
56 CPDF_Object* GetShadingObject() const { return m_pShadingObj; } 56 CPDF_Object* GetShadingObject() const { return m_pShadingObj; }
57 CPDF_ColorSpace* GetCS() const { return m_pCS; } 57 CPDF_ColorSpace* GetCS() const { return m_pCS; }
58 const std::vector<std::unique_ptr<CPDF_Function>>& GetFuncs() { 58 const std::vector<std::unique_ptr<CPDF_Function>>& GetFuncs() const {
59 return m_pFunctions; 59 return m_pFunctions;
60 } 60 }
61 61
62 private: 62 private:
63 ShadingType m_ShadingType; 63 ShadingType m_ShadingType;
64 FX_BOOL m_bShadingObj; 64 FX_BOOL m_bShadingObj;
65 CPDF_Object* m_pShadingObj; 65 CPDF_Object* m_pShadingObj;
66 66
67 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed 67 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed
68 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace. 68 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace.
69 CPDF_ColorSpace* m_pCS; 69 CPDF_ColorSpace* m_pCS;
70 70
71 CPDF_CountedColorSpace* m_pCountedCS; 71 CPDF_CountedColorSpace* m_pCountedCS;
72 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions; 72 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions;
73 }; 73 };
74 74
75 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 75 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
OLDNEW
« no previous file with comments | « no previous file | core/fxge/skia/fx_skia_device.cpp » ('j') | core/fxge/skia/fx_skia_device.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698