blob: 51c37b36246372093761e297ce178d2d631a24e1 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// 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 _RENDERCONTENT_H_
8#define _RENDERCONTENT_H_
9#include "../include/fsdk_define.h"
10#include "../include/fpdf_progressive.h"
11
12// Everything about rendering is put here: for OOM recovery
13class CRenderContext : public CFX_Object
14{
15public:
16 CRenderContext() { Clear(); }
17 ~CRenderContext();
18
19 void Clear();
20
21 CFX_RenderDevice* m_pDevice;
22 CPDF_RenderContext* m_pContext;
23 CPDF_ProgressiveRenderer* m_pRenderer;
24 CPDF_AnnotList* m_pAnnots;
25 CPDF_RenderOptions* m_pOptions;
26#ifdef _WIN32_WCE
27 CFX_DIBitmap* m_pBitmap;
28 HBITMAP m_hBitmap;
29#endif
30};
31
32class IFSDK_PAUSE_Adapter : public IFX_Pause
33{
34public:
35 IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause );
36 FX_BOOL NeedToPauseNow();
37
38private:
39 IFSDK_PAUSE* m_IPause;
40};
41#endif