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_countedobject.h" |
14 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" | 14 #include "core/fpdfapi/fpdf_page/cpdf_pattern.h" |
15 #include "core/fxcrt/include/fx_system.h" | 15 #include "core/fxcrt/fx_system.h" |
16 | 16 |
17 enum ShadingType { | 17 enum ShadingType { |
18 kInvalidShading = 0, | 18 kInvalidShading = 0, |
19 kFunctionBasedShading = 1, | 19 kFunctionBasedShading = 1, |
20 kAxialShading = 2, | 20 kAxialShading = 2, |
21 kRadialShading = 3, | 21 kRadialShading = 3, |
22 kFreeFormGouraudTriangleMeshShading = 4, | 22 kFreeFormGouraudTriangleMeshShading = 4, |
23 kLatticeFormGouraudTriangleMeshShading = 5, | 23 kLatticeFormGouraudTriangleMeshShading = 5, |
24 kCoonsPatchMeshShading = 6, | 24 kCoonsPatchMeshShading = 6, |
25 kTensorProductPatchMeshShading = 7, | 25 kTensorProductPatchMeshShading = 7, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |