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

Side by Side Diff: core/src/fpdfapi/fpdf_render/render_int.h

Issue 1513103002: Merge to XFA: Get rid of most uses of CFX_PtrArray. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years 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 | « core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp ('k') | core/src/fpdfdoc/doc_form.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 CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 FX_ARGB fill_color = 0, 130 FX_ARGB fill_color = 0,
131 FX_DWORD GroupFamily = 0, 131 FX_DWORD GroupFamily = 0,
132 FX_BOOL bLoadMask = FALSE); 132 FX_BOOL bLoadMask = FALSE);
133 void RenderObjectList(const CPDF_PageObjects* pObjs, 133 void RenderObjectList(const CPDF_PageObjects* pObjs,
134 const CFX_AffineMatrix* pObj2Device); 134 const CFX_AffineMatrix* pObj2Device);
135 void RenderSingleObject(const CPDF_PageObject* pObj, 135 void RenderSingleObject(const CPDF_PageObject* pObj,
136 const CFX_AffineMatrix* pObj2Device); 136 const CFX_AffineMatrix* pObj2Device);
137 FX_BOOL ContinueSingleObject(const CPDF_PageObject* pObj, 137 FX_BOOL ContinueSingleObject(const CPDF_PageObject* pObj,
138 const CFX_AffineMatrix* pObj2Device, 138 const CFX_AffineMatrix* pObj2Device,
139 IFX_Pause* pPause); 139 IFX_Pause* pPause);
140 CPDF_RenderContext* GetContext() { return m_pContext; }
141
140 CPDF_RenderOptions m_Options; 142 CPDF_RenderOptions m_Options;
141 CPDF_Dictionary* m_pFormResource; 143 CPDF_Dictionary* m_pFormResource;
142 CPDF_Dictionary* m_pPageResource; 144 CPDF_Dictionary* m_pPageResource;
143 CFX_PtrArray m_Type3FontCache; 145 CFX_ArrayTemplate<CPDF_Type3Font*> m_Type3FontCache;
144 CPDF_RenderContext* GetContext() { return m_pContext; }
145 146
146 protected: 147 protected:
147 friend class CPDF_ImageRenderer; 148 friend class CPDF_ImageRenderer;
148 friend class CPDF_RenderContext; 149 friend class CPDF_RenderContext;
149 void ProcessClipPath(CPDF_ClipPath ClipPath, 150 void ProcessClipPath(CPDF_ClipPath ClipPath,
150 const CFX_AffineMatrix* pObj2Device); 151 const CFX_AffineMatrix* pObj2Device);
151 void DrawClipPath(CPDF_ClipPath ClipPath, 152 void DrawClipPath(CPDF_ClipPath ClipPath,
152 const CFX_AffineMatrix* pObj2Device); 153 const CFX_AffineMatrix* pObj2Device);
153 FX_BOOL ProcessTransparency(const CPDF_PageObject* PageObj, 154 FX_BOOL ProcessTransparency(const CPDF_PageObject* PageObj,
154 const CFX_AffineMatrix* pObj2Device); 155 const CFX_AffineMatrix* pObj2Device);
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 const uint8_t* m_RampB; 645 const uint8_t* m_RampB;
645 }; 646 };
646 647
647 struct _CPDF_UniqueKeyGen { 648 struct _CPDF_UniqueKeyGen {
648 void Generate(int count, ...); 649 void Generate(int count, ...);
649 FX_CHAR m_Key[128]; 650 FX_CHAR m_Key[128];
650 int m_KeyLen; 651 int m_KeyLen;
651 }; 652 };
652 653
653 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_ 654 #endif // CORE_SRC_FPDFAPI_FPDF_RENDER_RENDER_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp ('k') | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698