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

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

Issue 1547833002: Switch from nonstd::unique_ptr to std::unique_ptr. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 12 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_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 <map> 10 #include <map>
11 #include <memory>
11 12
12 #include "core/include/fpdfapi/fpdf_page.h" 13 #include "core/include/fpdfapi/fpdf_page.h"
13 #include "core/include/fxge/fx_ge.h" 14 #include "core/include/fxge/fx_ge.h"
14 #include "third_party/base/nonstd_unique_ptr.h"
15 15
16 class CFX_GraphStateData; 16 class CFX_GraphStateData;
17 class CFX_PathData; 17 class CFX_PathData;
18 class CFX_RenderDevice; 18 class CFX_RenderDevice;
19 class CPDF_FormObject; 19 class CPDF_FormObject;
20 class CPDF_ImageCacheEntry; 20 class CPDF_ImageCacheEntry;
21 class CPDF_ImageObject; 21 class CPDF_ImageObject;
22 class CPDF_PathObject; 22 class CPDF_PathObject;
23 class CPDF_RenderContext; 23 class CPDF_RenderContext;
24 class CPDF_RenderOptions; 24 class CPDF_RenderOptions;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void Continue(IFX_Pause* pPause); 144 void Continue(IFX_Pause* pPause);
145 int EstimateProgress(); 145 int EstimateProgress();
146 146
147 private: 147 private:
148 void RenderStep(); 148 void RenderStep();
149 149
150 Status m_Status; 150 Status m_Status;
151 CPDF_RenderContext* const m_pContext; 151 CPDF_RenderContext* const m_pContext;
152 CFX_RenderDevice* const m_pDevice; 152 CFX_RenderDevice* const m_pDevice;
153 const CPDF_RenderOptions* const m_pOptions; 153 const CPDF_RenderOptions* const m_pOptions;
154 nonstd::unique_ptr<CPDF_RenderStatus> m_pRenderStatus; 154 std::unique_ptr<CPDF_RenderStatus> m_pRenderStatus;
155 CFX_FloatRect m_ClipRect; 155 CFX_FloatRect m_ClipRect;
156 FX_DWORD m_LayerIndex; 156 FX_DWORD m_LayerIndex;
157 FX_DWORD m_ObjectIndex; 157 FX_DWORD m_ObjectIndex;
158 FX_POSITION m_ObjectPos; 158 FX_POSITION m_ObjectPos;
159 FX_POSITION m_PrevLastPos; 159 FX_POSITION m_PrevLastPos;
160 }; 160 };
161 161
162 class CPDF_TextRenderer { 162 class CPDF_TextRenderer {
163 public: 163 public:
164 static void DrawTextString(CFX_RenderDevice* pDevice, 164 static void DrawTextString(CFX_RenderDevice* pDevice,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 public: 271 public:
272 CPDF_RenderConfig(); 272 CPDF_RenderConfig();
273 ~CPDF_RenderConfig(); 273 ~CPDF_RenderConfig();
274 int m_HalftoneLimit; 274 int m_HalftoneLimit;
275 int m_RenderStepLimit; 275 int m_RenderStepLimit;
276 }; 276 };
277 277
278 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix); 278 FX_BOOL IsAvailableMatrix(const CFX_Matrix& matrix);
279 279
280 #endif // CORE_INCLUDE_FPDFAPI_FPDF_RENDER_H_ 280 #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