OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ | |
8 #define FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ | |
9 | |
10 #include "core/fpdfapi/fpdf_render/include/cpdf_progressiverenderer.h" | |
11 #include "core/fxcrt/include/fx_basic.h" | |
12 #include "fpdfsdk/include/fsdk_define.h" | |
13 #include "public/fpdf_progressive.h" | |
14 | |
15 // Everything about rendering is put here: for OOM recovery | |
16 class CRenderContext : public CFX_Deletable { | |
17 public: | |
18 CRenderContext() { Clear(); } | |
19 ~CRenderContext() override; | |
20 | |
21 void Clear(); | |
22 | |
23 CFX_RenderDevice* m_pDevice; | |
24 CPDF_RenderContext* m_pContext; | |
25 CPDF_ProgressiveRenderer* m_pRenderer; | |
26 CPDF_AnnotList* m_pAnnots; | |
27 CPDF_RenderOptions* m_pOptions; | |
28 }; | |
29 | |
30 class IFSDK_PAUSE_Adapter : public IFX_Pause { | |
31 public: | |
32 explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause); | |
33 ~IFSDK_PAUSE_Adapter() override; | |
34 | |
35 FX_BOOL NeedToPauseNow() override; | |
36 | |
37 private: | |
38 IFSDK_PAUSE* m_IPause; | |
39 }; | |
40 | |
41 #endif // FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ | |
OLD | NEW |