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

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

Issue 1409153007: Merge to XFA: Make checkdeps --resolve-dotdot succeed. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 1 month 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 | « DEPS ('k') | core/include/fxcodec/DEPS » ('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 "../../../third_party/base/nonstd_unique_ptr.h" 10 #include "../../../third_party/base/nonstd_unique_ptr.h"
11 #include "../../../public/fpdf_progressive.h"
12 #include "../fxge/fx_ge.h" 11 #include "../fxge/fx_ge.h"
13 #include "fpdf_page.h" 12 #include "fpdf_page.h"
14 13
15 class CFX_GraphStateData; 14 class CFX_GraphStateData;
16 class CFX_PathData; 15 class CFX_PathData;
17 class CFX_RenderDevice; 16 class CFX_RenderDevice;
18 class CPDF_FormObject; 17 class CPDF_FormObject;
19 class CPDF_ImageCache; 18 class CPDF_ImageCache;
20 class CPDF_ImageObject; 19 class CPDF_ImageObject;
21 class CPDF_PathObject; 20 class CPDF_PathObject;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void Render(CFX_RenderDevice* pDevice, 126 void Render(CFX_RenderDevice* pDevice,
128 const CPDF_PageObject* pStopObj, 127 const CPDF_PageObject* pStopObj,
129 const CPDF_RenderOptions* pOptions, 128 const CPDF_RenderOptions* pOptions,
130 const CFX_AffineMatrix* pFinalMatrix); 129 const CFX_AffineMatrix* pFinalMatrix);
131 friend class CPDF_RenderStatus; 130 friend class CPDF_RenderStatus;
132 friend class CPDF_ProgressiveRenderer; 131 friend class CPDF_ProgressiveRenderer;
133 }; 132 };
134 133
135 class CPDF_ProgressiveRenderer { 134 class CPDF_ProgressiveRenderer {
136 public: 135 public:
137 // Must match FDF_RENDER_* definitions in fpdf_progressive.h. 136 // Must match FDF_RENDER_* definitions in public/fpdf_progressive.h, but
137 // cannot #include that header. fpdfsdk/src/fpdf_progressive.cpp has
138 // static_asserts to make sure the two sets of values match.
138 enum Status { 139 enum Status {
139 Ready = FPDF_RENDER_READER, 140 Ready, // FPDF_RENDER_READER,
140 ToBeContinued = FPDF_RENDER_TOBECOUNTINUED, 141 ToBeContinued, // FPDF_RENDER_TOBECOUNTINUED,
141 Done = FPDF_RENDER_DONE, 142 Done, // FPDF_RENDER_DONE,
142 Failed = FPDF_RENDER_FAILED 143 Failed, // FPDF_RENDER_FAILED
143 }; 144 };
144 static int ToFPDFStatus(Status status) { return static_cast<int>(status); } 145 static int ToFPDFStatus(Status status) { return static_cast<int>(status); }
145 146
146 CPDF_ProgressiveRenderer(CPDF_RenderContext* pContext, 147 CPDF_ProgressiveRenderer(CPDF_RenderContext* pContext,
147 CFX_RenderDevice* pDevice, 148 CFX_RenderDevice* pDevice,
148 const CPDF_RenderOptions* pOptions); 149 const CPDF_RenderOptions* pOptions);
149 ~CPDF_ProgressiveRenderer(); 150 ~CPDF_ProgressiveRenderer();
150 151
151 Status GetStatus() const { return m_Status; } 152 Status GetStatus() const { return m_Status; }
152 void Start(IFX_Pause* pPause); 153 void Start(IFX_Pause* pPause);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 public: 285 public:
285 CPDF_RenderConfig(); 286 CPDF_RenderConfig();
286 ~CPDF_RenderConfig(); 287 ~CPDF_RenderConfig();
287 int m_HalftoneLimit; 288 int m_HalftoneLimit;
288 int m_RenderStepLimit; 289 int m_RenderStepLimit;
289 }; 290 };
290 291
291 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix); 292 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix);
292 293
293 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 294 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | core/include/fxcodec/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698