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 _FPDF_RESOURCE_ | 7 #ifndef _FPDF_RESOURCE_ |
8 #define _FPDF_RESOURCE_ | 8 #define _FPDF_RESOURCE_ |
9 #ifndef _FPDF_PARSER_ | 9 #ifndef _FPDF_PARSER_ |
10 #include "fpdf_parser.h" | 10 #include "fpdf_parser.h" |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
723 FX_FLOAT* m_pBuffer; | 723 FX_FLOAT* m_pBuffer; |
724 protected: | 724 protected: |
725 void ReleaseBuffer(); | 725 void ReleaseBuffer(); |
726 void ReleaseColorSpace(); | 726 void ReleaseColorSpace(); |
727 }; | 727 }; |
728 #define PATTERN_TILING 1 | 728 #define PATTERN_TILING 1 |
729 #define PATTERN_SHADING 2 | 729 #define PATTERN_SHADING 2 |
730 class CPDF_Pattern : public CFX_Object | 730 class CPDF_Pattern : public CFX_Object |
731 { | 731 { |
732 public: | 732 public: |
733 | 733 |
Tom Sepez
2014/08/04 18:02:32
Too bad this doesn't have a constructor to set up
palmer
2014/08/04 18:17:11
We need to start making sure every class and struc
jun_fang
2014/08/04 18:37:11
This class is a interface class. It doesn't need t
| |
734 virtual ~CPDF_Pattern() {} | 734 virtual ~CPDF_Pattern(); |
735 void SaveColor(CPDF_Color* pColor) {m_pColor = pColor;} | |
735 | 736 |
736 CPDF_Object*» » » m_pPatternObj; | 737 CPDF_Object* m_pPatternObj; |
737 | 738 |
738 int»» » » » » m_PatternType; | 739 int m_PatternType; |
739 | 740 |
740 CFX_AffineMatrix» » m_Pattern2Form; | 741 CFX_AffineMatrix m_Pattern2Form; |
741 CFX_AffineMatrix» » m_ParentMatrix; | 742 CFX_AffineMatrix m_ParentMatrix; |
742 | 743 |
743 CPDF_Document*» » » m_pDocument; | 744 CPDF_Document* m_pDocument; |
745 CPDF_Color* m_pColor; | |
744 | 746 |
745 protected: | 747 protected: |
746 | 748 |
747 CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix) | 749 CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix) |
748 { | 750 { |
749 if (pParentMatrix) { | 751 if (pParentMatrix) { |
750 m_ParentMatrix = *pParentMatrix; | 752 m_ParentMatrix = *pParentMatrix; |
751 } | 753 } |
752 } | 754 } |
753 }; | 755 }; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
951 FX_BOOL m_bIsMask; | 953 FX_BOOL m_bIsMask; |
952 | 954 |
953 FX_BOOL m_bInterpolate; | 955 FX_BOOL m_bInterpolate; |
954 | 956 |
955 CPDF_Document* m_pDocument; | 957 CPDF_Document* m_pDocument; |
956 | 958 |
957 CPDF_Dictionary* m_pOC; | 959 CPDF_Dictionary* m_pOC; |
958 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); | 960 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); |
959 }; | 961 }; |
960 #endif | 962 #endif |
OLD | NEW |