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

Side by Side Diff: core/include/fpdfapi/fpdf_render.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/include/fpdfapi/fpdf_parser.h ('k') | core/include/fpdfdoc/fpdf_doc.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 "core/include/fxge/fx_ge.h" 10 #include "core/include/fxge/fx_ge.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 FX_ARGB fill_argb); 226 FX_ARGB fill_argb);
227 }; 227 };
228 class CPDF_PageRenderCache { 228 class CPDF_PageRenderCache {
229 public: 229 public:
230 CPDF_PageRenderCache(CPDF_Page* pPage) { 230 CPDF_PageRenderCache(CPDF_Page* pPage) {
231 m_pPage = pPage; 231 m_pPage = pPage;
232 m_nTimeCount = 0; 232 m_nTimeCount = 0;
233 m_nCacheSize = 0; 233 m_nCacheSize = 0;
234 m_pCurImageCache = NULL; 234 m_pCurImageCache = NULL;
235 m_bCurFindCache = FALSE; 235 m_bCurFindCache = FALSE;
236 m_pCurImageCaches = NULL;
237 } 236 }
238 ~CPDF_PageRenderCache() { ClearAll(); } 237 ~CPDF_PageRenderCache() { ClearAll(); }
239 void ClearAll(); 238 void ClearAll();
240 void ClearImageData(); 239 void ClearImageData();
241 240
242 FX_DWORD EstimateSize(); 241 FX_DWORD EstimateSize();
243 void CacheOptimization(int32_t dwLimitCacheSize); 242 void CacheOptimization(int32_t dwLimitCacheSize);
244 FX_DWORD GetCachedSize(CPDF_Stream* pStream) const; 243 FX_DWORD GetCachedSize(CPDF_Stream* pStream) const;
245 FX_DWORD GetTimeCount() const { return m_nTimeCount; } 244 FX_DWORD GetTimeCount() const { return m_nTimeCount; }
246 void SetTimeCount(FX_DWORD dwTimeCount) { m_nTimeCount = dwTimeCount; } 245 void SetTimeCount(FX_DWORD dwTimeCount) { m_nTimeCount = dwTimeCount; }
(...skipping 18 matching lines...) Expand all
265 FX_BOOL StartGetCachedBitmap(CPDF_Stream* pStream, 264 FX_BOOL StartGetCachedBitmap(CPDF_Stream* pStream,
266 FX_BOOL bStdCS = FALSE, 265 FX_BOOL bStdCS = FALSE,
267 FX_DWORD GroupFamily = 0, 266 FX_DWORD GroupFamily = 0,
268 FX_BOOL bLoadMask = FALSE, 267 FX_BOOL bLoadMask = FALSE,
269 CPDF_RenderStatus* pRenderStatus = NULL, 268 CPDF_RenderStatus* pRenderStatus = NULL,
270 int32_t downsampleWidth = 0, 269 int32_t downsampleWidth = 0,
271 int32_t downsampleHeight = 0); 270 int32_t downsampleHeight = 0);
272 271
273 FX_BOOL Continue(IFX_Pause* pPause); 272 FX_BOOL Continue(IFX_Pause* pPause);
274 CPDF_ImageCache* m_pCurImageCache; 273 CPDF_ImageCache* m_pCurImageCache;
275 CFX_PtrArray* m_pCurImageCaches;
276 274
277 protected: 275 protected:
278 friend class CPDF_Page; 276 friend class CPDF_Page;
279 CPDF_Page* m_pPage; 277 CPDF_Page* m_pPage;
280 278
281 FX_DWORD m_nTimeCount; 279 FX_DWORD m_nTimeCount;
282 FX_DWORD m_nCacheSize; 280 FX_DWORD m_nCacheSize;
283 FX_BOOL m_bCurFindCache; 281 FX_BOOL m_bCurFindCache;
284 }; 282 };
285 class CPDF_RenderConfig { 283 class CPDF_RenderConfig {
286 public: 284 public:
287 CPDF_RenderConfig(); 285 CPDF_RenderConfig();
288 ~CPDF_RenderConfig(); 286 ~CPDF_RenderConfig();
289 int m_HalftoneLimit; 287 int m_HalftoneLimit;
290 int m_RenderStepLimit; 288 int m_RenderStepLimit;
291 }; 289 };
292 290
293 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix); 291 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix);
294 292
295 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 293 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/include/fpdfdoc/fpdf_doc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698