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 XFA_INCLUDE_FXFA_XFA_RENDERCONTEXT_H_ | 7 #ifndef XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ |
8 #define XFA_INCLUDE_FXFA_XFA_RENDERCONTEXT_H_ | 8 #define XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ |
9 | 9 |
10 #include "xfa/include/fxfa/fxfa.h" | 10 #include "xfa/fxfa/include/fxfa.h" |
11 | 11 |
12 class CXFA_RenderContext { | 12 class CXFA_RenderContext { |
13 public: | 13 public: |
14 CXFA_RenderContext(); | 14 CXFA_RenderContext(); |
15 ~CXFA_RenderContext(); | 15 ~CXFA_RenderContext(); |
16 | 16 |
17 void Release() { delete this; } | 17 void Release() { delete this; } |
18 int32_t StartRender(CXFA_FFPageView* pPageView, | 18 int32_t StartRender(CXFA_FFPageView* pPageView, |
19 CFX_Graphics* pGS, | 19 CFX_Graphics* pGS, |
20 const CFX_Matrix& matrix, | 20 const CFX_Matrix& matrix, |
21 const CXFA_RenderOptions& options); | 21 const CXFA_RenderOptions& options); |
22 int32_t DoRender(IFX_Pause* pPause = NULL); | 22 int32_t DoRender(IFX_Pause* pPause = NULL); |
23 void StopRender(); | 23 void StopRender(); |
24 | 24 |
25 protected: | 25 protected: |
26 IXFA_WidgetIterator* m_pWidgetIterator; | 26 IXFA_WidgetIterator* m_pWidgetIterator; |
27 CXFA_FFWidget* m_pWidget; | 27 CXFA_FFWidget* m_pWidget; |
28 CXFA_FFPageView* m_pPageView; | 28 CXFA_FFPageView* m_pPageView; |
29 CFX_Graphics* m_pGS; | 29 CFX_Graphics* m_pGS; |
30 CFX_Matrix m_matrix; | 30 CFX_Matrix m_matrix; |
31 CXFA_RenderOptions m_options; | 31 CXFA_RenderOptions m_options; |
32 uint32_t m_dwStatus; | 32 uint32_t m_dwStatus; |
33 CFX_RectF m_rtClipRect; | 33 CFX_RectF m_rtClipRect; |
34 }; | 34 }; |
35 | 35 |
36 #endif // XFA_INCLUDE_FXFA_XFA_RENDERCONTEXT_H_ | 36 #endif // XFA_FXFA_INCLUDE_XFA_RENDERCONTEXT_H_ |
OLD | NEW |