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

Side by Side Diff: fpdfsdk/include/fsdk_rendercontext.h

Issue 2008553008: Remove CFX_PrivateData from CPDF_Page (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fix non-XFA build. Created 4 years, 7 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 | « fpdfsdk/include/fsdk_mgr.h ('k') | no next file » | 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 FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_
8 #define FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ 8 #define FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_
9 9
10 #include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h" 10 #include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h"
11 #include "core/fxcrt/include/fx_basic.h"
11 #include "fpdfsdk/include/fsdk_define.h" 12 #include "fpdfsdk/include/fsdk_define.h"
12 #include "public/fpdf_progressive.h" 13 #include "public/fpdf_progressive.h"
13 14
14 // Everything about rendering is put here: for OOM recovery 15 // Everything about rendering is put here: for OOM recovery
15 class CRenderContext { 16 class CRenderContext : public CFX_Deletable {
16 public: 17 public:
17 CRenderContext() { Clear(); } 18 CRenderContext() { Clear(); }
18 ~CRenderContext(); 19 ~CRenderContext() override;
19 20
20 void Clear(); 21 void Clear();
21 22
22 CFX_RenderDevice* m_pDevice; 23 CFX_RenderDevice* m_pDevice;
23 CPDF_RenderContext* m_pContext; 24 CPDF_RenderContext* m_pContext;
24 CPDF_ProgressiveRenderer* m_pRenderer; 25 CPDF_ProgressiveRenderer* m_pRenderer;
25 CPDF_AnnotList* m_pAnnots; 26 CPDF_AnnotList* m_pAnnots;
26 CPDF_RenderOptions* m_pOptions; 27 CPDF_RenderOptions* m_pOptions;
27 #ifdef _WIN32_WCE 28 #ifdef _WIN32_WCE
28 CFX_DIBitmap* m_pBitmap; 29 CFX_DIBitmap* m_pBitmap;
29 HBITMAP m_hBitmap; 30 HBITMAP m_hBitmap;
30 #endif 31 #endif
31 }; 32 };
32 33
33 class IFSDK_PAUSE_Adapter : public IFX_Pause { 34 class IFSDK_PAUSE_Adapter : public IFX_Pause {
34 public: 35 public:
35 explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause); 36 explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause);
36 ~IFSDK_PAUSE_Adapter() override; 37 ~IFSDK_PAUSE_Adapter() override;
37 38
38 FX_BOOL NeedToPauseNow() override; 39 FX_BOOL NeedToPauseNow() override;
39 40
40 private: 41 private:
41 IFSDK_PAUSE* m_IPause; 42 IFSDK_PAUSE* m_IPause;
42 }; 43 };
43 44
44 #endif // FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ 45 #endif // FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698