OLD | NEW |
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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h" |
13 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" |
14 #include "core/fpdfapi/fpdf_page/include/cpdf_colorspace.h" | |
15 #include "core/fxcrt/include/cfx_weak_ptr.h" | |
16 #include "core/fxcrt/include/fx_system.h" | 15 #include "core/fxcrt/include/fx_system.h" |
17 | 16 |
18 enum ShadingType { | 17 enum ShadingType { |
19 kInvalidShading = 0, | 18 kInvalidShading = 0, |
20 kFunctionBasedShading = 1, | 19 kFunctionBasedShading = 1, |
21 kAxialShading = 2, | 20 kAxialShading = 2, |
22 kRadialShading = 3, | 21 kRadialShading = 3, |
23 kFreeFormGouraudTriangleMeshShading = 4, | 22 kFreeFormGouraudTriangleMeshShading = 4, |
24 kLatticeFormGouraudTriangleMeshShading = 5, | 23 kLatticeFormGouraudTriangleMeshShading = 5, |
25 kCoonsPatchMeshShading = 6, | 24 kCoonsPatchMeshShading = 6, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 66 |
68 // 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 |
69 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace. | 68 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace. |
70 CPDF_ColorSpace* m_pCS; | 69 CPDF_ColorSpace* m_pCS; |
71 | 70 |
72 CPDF_CountedColorSpace* m_pCountedCS; | 71 CPDF_CountedColorSpace* m_pCountedCS; |
73 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions; | 72 std::vector<std::unique_ptr<CPDF_Function>> m_pFunctions; |
74 }; | 73 }; |
75 | 74 |
76 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ | 75 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ |
OLD | NEW |