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