OLD | NEW |
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 "fpdfsdk/include/fsdk_define.h" | 11 #include "fpdfsdk/include/fsdk_define.h" |
11 #include "public/fpdf_progressive.h" | 12 #include "public/fpdf_progressive.h" |
12 | 13 |
13 // Everything about rendering is put here: for OOM recovery | 14 // Everything about rendering is put here: for OOM recovery |
14 class CRenderContext { | 15 class CRenderContext { |
15 public: | 16 public: |
16 CRenderContext() { Clear(); } | 17 CRenderContext() { Clear(); } |
17 ~CRenderContext(); | 18 ~CRenderContext(); |
18 | 19 |
19 void Clear(); | 20 void Clear(); |
(...skipping 14 matching lines...) Expand all Loading... |
34 explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause); | 35 explicit IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause); |
35 ~IFSDK_PAUSE_Adapter() override; | 36 ~IFSDK_PAUSE_Adapter() override; |
36 | 37 |
37 FX_BOOL NeedToPauseNow() override; | 38 FX_BOOL NeedToPauseNow() override; |
38 | 39 |
39 private: | 40 private: |
40 IFSDK_PAUSE* m_IPause; | 41 IFSDK_PAUSE* m_IPause; |
41 }; | 42 }; |
42 | 43 |
43 #endif // FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ | 44 #endif // FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_ |
OLD | NEW |