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

Side by Side Diff: core/fpdfapi/fpdf_page/cpdf_shadingpattern.h

Issue 1867183002: Use std::vector as internal storage for CPDF_Array (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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 "core/fpdfapi/fpdf_page/cpdf_countedobject.h" 10 #include "core/fpdfapi/fpdf_page/cpdf_countedobject.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ShadingType m_ShadingType; 49 ShadingType m_ShadingType;
50 FX_BOOL m_bShadingObj; 50 FX_BOOL m_bShadingObj;
51 CPDF_Object* m_pShadingObj; 51 CPDF_Object* m_pShadingObj;
52 52
53 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed 53 // Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed
54 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace. 54 // as counted objects. Refer to CPDF_DocPageData::GetColorSpace.
55 CPDF_ColorSpace* m_pCS; 55 CPDF_ColorSpace* m_pCS;
56 56
57 CPDF_CountedColorSpace* m_pCountedCS; 57 CPDF_CountedColorSpace* m_pCountedCS;
58 CPDF_Function* m_pFunctions[4]; 58 CPDF_Function* m_pFunctions[4];
59 int m_nFuncs; 59 size_t m_nFuncs;
60 }; 60 };
61 61
62 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_ 62 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_SHADINGPATTERN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698