Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: core/include/fpdfapi/fpdf_resource.h

Issue 572853006: When forcing clear page data, no need to release colorspace when releasing pattern (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
723 void ReleaseColorSpace(); 723 void ReleaseColorSpace();
724 FX_FLOAT* m_pBuffer; 724 FX_FLOAT* m_pBuffer;
725 }; 725 };
726 #define PATTERN_TILING 1 726 #define PATTERN_TILING 1
727 #define PATTERN_SHADING 2 727 #define PATTERN_SHADING 2
728 class CPDF_Pattern : public CFX_Object 728 class CPDF_Pattern : public CFX_Object
729 { 729 {
730 public: 730 public:
731 731
732 virtual ~CPDF_Pattern(); 732 virtual ~CPDF_Pattern();
733 void SetForceClear(FX_BOOL bForceClear) { m_bForceClear = bForceClear; }
733 734
734 CPDF_Object* m_pPatternObj; 735 CPDF_Object* m_pPatternObj;
735 736
736 int m_PatternType; 737 int m_PatternType;
737 738
738 CFX_AffineMatrix m_Pattern2Form; 739 CFX_AffineMatrix m_Pattern2Form;
739 CFX_AffineMatrix m_ParentMatrix; 740 CFX_AffineMatrix m_ParentMatrix;
740 741
741 CPDF_Document* m_pDocument; 742 CPDF_Document* m_pDocument;
742 743
743 protected: 744 protected:
744
745 CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix); 745 CPDF_Pattern(const CFX_AffineMatrix* pParentMatrix);
746 FX_BOOL m_bForceClear;
746 }; 747 };
747 748
748 class CPDF_TilingPattern : public CPDF_Pattern 749 class CPDF_TilingPattern : public CPDF_Pattern
749 { 750 {
750 public: 751 public:
751 752
752 CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatternObj, const CFX_ AffineMatrix* parentMatrix); 753 CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatternObj, const CFX_ AffineMatrix* parentMatrix);
753 754
754 virtual ~CPDF_TilingPattern(); 755 virtual ~CPDF_TilingPattern();
755 756
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 FX_BOOL m_bIsMask; 946 FX_BOOL m_bIsMask;
946 947
947 FX_BOOL m_bInterpolate; 948 FX_BOOL m_bInterpolate;
948 949
949 CPDF_Document* m_pDocument; 950 CPDF_Document* m_pDocument;
950 951
951 CPDF_Dictionary* m_pOC; 952 CPDF_Dictionary* m_pOC;
952 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size); 953 CPDF_Dictionary* InitJPEG(FX_LPBYTE pData, FX_DWORD size);
953 }; 954 };
954 #endif 955 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_doc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698