| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| 9 | 9 |
| 10 #include "../fxcrt/fx_system.h" | 10 #include "../fxcrt/fx_system.h" |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 FX_BOOL m_bColored; | 672 FX_BOOL m_bColored; |
| 673 | 673 |
| 674 CFX_FloatRect m_BBox; | 674 CFX_FloatRect m_BBox; |
| 675 | 675 |
| 676 FX_FLOAT m_XStep; | 676 FX_FLOAT m_XStep; |
| 677 | 677 |
| 678 FX_FLOAT m_YStep; | 678 FX_FLOAT m_YStep; |
| 679 | 679 |
| 680 CPDF_Form* m_pForm; | 680 CPDF_Form* m_pForm; |
| 681 }; | 681 }; |
| 682 |
| 683 typedef enum { |
| 684 kInvalidShading = 0, |
| 685 kFunctionBasedShading = 1, |
| 686 kAxialShading = 2, |
| 687 kRadialShading = 3, |
| 688 kFreeFormGouraudTriangleMeshShading = 4, |
| 689 kLatticeFormGouraudTriangleMeshShading = 5, |
| 690 kCoonsPatchMeshShading = 6, |
| 691 kTensorProductPatchMeshShading = 7 |
| 692 } ShadingType; |
| 693 |
| 682 class CPDF_ShadingPattern : public CPDF_Pattern { | 694 class CPDF_ShadingPattern : public CPDF_Pattern { |
| 683 public: | 695 public: |
| 684 CPDF_ShadingPattern(CPDF_Document* pDoc, | 696 CPDF_ShadingPattern(CPDF_Document* pDoc, |
| 685 CPDF_Object* pPatternObj, | 697 CPDF_Object* pPatternObj, |
| 686 FX_BOOL bShading, | 698 FX_BOOL bShading, |
| 687 const CFX_AffineMatrix* parentMatrix); | 699 const CFX_AffineMatrix* parentMatrix); |
| 688 | 700 |
| 689 ~CPDF_ShadingPattern() override; | 701 ~CPDF_ShadingPattern() override; |
| 690 | 702 |
| 691 CPDF_Object* m_pShadingObj; | 703 CPDF_Object* m_pShadingObj; |
| 692 | 704 |
| 693 FX_BOOL m_bShadingObj; | 705 FX_BOOL m_bShadingObj; |
| 694 | 706 |
| 695 FX_BOOL Load(); | 707 FX_BOOL Load(); |
| 696 | 708 |
| 697 FX_BOOL Reload(); | 709 FX_BOOL Reload(); |
| 698 | 710 |
| 699 int m_ShadingType; | 711 ShadingType m_ShadingType; |
| 700 | 712 |
| 701 CPDF_ColorSpace* m_pCS; // Still keep m_pCS as some CPDF_ColorSpace (name | 713 CPDF_ColorSpace* m_pCS; // Still keep m_pCS as some CPDF_ColorSpace (name |
| 702 // object) are not managed as counted objects. Refer | 714 // object) are not managed as counted objects. Refer |
| 703 // to CPDF_DocPageData::GetColorSpace. | 715 // to CPDF_DocPageData::GetColorSpace. |
| 704 | 716 |
| 705 CPDF_CountedColorSpace* m_pCountedCS; | 717 CPDF_CountedColorSpace* m_pCountedCS; |
| 706 | 718 |
| 707 CPDF_Function* m_pFunctions[4]; | 719 CPDF_Function* m_pFunctions[4]; |
| 708 | 720 |
| 709 int m_nFuncs; | 721 int m_nFuncs; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 846 |
| 835 FX_BOOL m_bInterpolate; | 847 FX_BOOL m_bInterpolate; |
| 836 | 848 |
| 837 CPDF_Document* m_pDocument; | 849 CPDF_Document* m_pDocument; |
| 838 | 850 |
| 839 CPDF_Dictionary* m_pOC; | 851 CPDF_Dictionary* m_pOC; |
| 840 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); | 852 CPDF_Dictionary* InitJPEG(uint8_t* pData, FX_DWORD size); |
| 841 }; | 853 }; |
| 842 | 854 |
| 843 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ | 855 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RESOURCE_H_ |
| OLD | NEW |