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