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

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

Issue 1701073002: Split CPDF_PageObjectHolder off from CPDF_PageObjectList (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: m_pPage can never be null, remove checks. Created 4 years, 10 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 | « core/include/fpdfapi/fpdf_page.h ('k') | core/include/fpdftext/fpdf_text.h » ('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_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 FX_DWORD m_AddFlags; 67 FX_DWORD m_AddFlags;
68 IPDF_OCContext* m_pOCContext; 68 IPDF_OCContext* m_pOCContext;
69 FX_DWORD m_dwLimitCacheSize; 69 FX_DWORD m_dwLimitCacheSize;
70 int m_HalftoneLimit; 70 int m_HalftoneLimit;
71 }; 71 };
72 72
73 class CPDF_RenderContext { 73 class CPDF_RenderContext {
74 public: 74 public:
75 class Layer { 75 class Layer {
76 public: 76 public:
77 CPDF_PageObjectList* m_pObjectList; 77 CPDF_PageObjectHolder* m_pObjectHolder;
78 CFX_Matrix m_Matrix; 78 CFX_Matrix m_Matrix;
79 }; 79 };
80 80
81 explicit CPDF_RenderContext(CPDF_Page* pPage); 81 explicit CPDF_RenderContext(CPDF_Page* pPage);
82 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache); 82 CPDF_RenderContext(CPDF_Document* pDoc, CPDF_PageRenderCache* pPageCache);
83 ~CPDF_RenderContext(); 83 ~CPDF_RenderContext();
84 84
85 void AppendLayer(CPDF_PageObjectList* pObjectList, 85 void AppendLayer(CPDF_PageObjectHolder* pObjectHolder,
86 const CFX_Matrix* pObject2Device); 86 const CFX_Matrix* pObject2Device);
87 87
88 void Render(CFX_RenderDevice* pDevice, 88 void Render(CFX_RenderDevice* pDevice,
89 const CPDF_RenderOptions* pOptions, 89 const CPDF_RenderOptions* pOptions,
90 const CFX_Matrix* pFinalMatrix); 90 const CFX_Matrix* pFinalMatrix);
91 91
92 void Render(CFX_RenderDevice* pDevice, 92 void Render(CFX_RenderDevice* pDevice,
93 const CPDF_PageObject* pStopObj, 93 const CPDF_PageObject* pStopObj,
94 const CPDF_RenderOptions* pOptions, 94 const CPDF_RenderOptions* pOptions,
95 const CFX_Matrix* pFinalMatrix); 95 const CFX_Matrix* pFinalMatrix);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 CPDF_ImageCacheEntry* m_pCurImageCacheEntry; 259 CPDF_ImageCacheEntry* m_pCurImageCacheEntry;
260 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache; 260 std::map<CPDF_Stream*, CPDF_ImageCacheEntry*> m_ImageCache;
261 FX_DWORD m_nTimeCount; 261 FX_DWORD m_nTimeCount;
262 FX_DWORD m_nCacheSize; 262 FX_DWORD m_nCacheSize;
263 FX_BOOL m_bCurFindCache; 263 FX_BOOL m_bCurFindCache;
264 }; 264 };
265 265
266 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); 266 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix);
267 267
268 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 268 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_page.h ('k') | core/include/fpdftext/fpdf_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698