| 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_SRC_FDP_INCLUDE_FDE_RDR_H_ | 7 #ifndef XFA_SRC_FDP_INCLUDE_FDE_RDR_H_ |
| 8 #define XFA_SRC_FDP_INCLUDE_FDE_RDR_H_ | 8 #define XFA_SRC_FDP_INCLUDE_FDE_RDR_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_coordinates.h" |
| 11 #include "xfa/src/fdp/include/fde_psr.h" |
| 12 |
| 10 class IFDE_Page; | 13 class IFDE_Page; |
| 11 class IFDE_RenderDevice; | 14 class IFDE_RenderDevice; |
| 12 | 15 |
| 13 void FDE_GetPageMatrix(CFX_Matrix& pageMatrix, | 16 void FDE_GetPageMatrix(CFX_Matrix& pageMatrix, |
| 14 const CFX_RectF& docPageRect, | 17 const CFX_RectF& docPageRect, |
| 15 const CFX_Rect& devicePageRect, | 18 const CFX_Rect& devicePageRect, |
| 16 int32_t iRotate, | 19 int32_t iRotate, |
| 17 FX_DWORD dwCoordinatesType = 0); | 20 FX_DWORD dwCoordinatesType = 0); |
| 18 enum FDE_RENDERSTATUS { | 21 enum FDE_RENDERSTATUS { |
| 19 FDE_RENDERSTATUS_Reset = 0, | 22 FDE_RENDERSTATUS_Reset = 0, |
| 20 FDE_RENDERSTATUS_Paused, | 23 FDE_RENDERSTATUS_Paused, |
| 21 FDE_RENDERSTATUS_Done, | 24 FDE_RENDERSTATUS_Done, |
| 22 FDE_RENDERSTATUS_Failed, | 25 FDE_RENDERSTATUS_Failed, |
| 23 }; | 26 }; |
| 24 | 27 |
| 25 class IFDE_RenderContext { | 28 class IFDE_RenderContext { |
| 26 public: | 29 public: |
| 27 static IFDE_RenderContext* Create(); | 30 static IFDE_RenderContext* Create(); |
| 28 virtual ~IFDE_RenderContext() {} | 31 virtual ~IFDE_RenderContext() {} |
| 29 virtual void Release() = 0; | 32 virtual void Release() = 0; |
| 30 virtual FX_BOOL StartRender(IFDE_RenderDevice* pRenderDevice, | 33 virtual FX_BOOL StartRender(IFDE_RenderDevice* pRenderDevice, |
| 31 IFDE_CanvasSet* pCanvasSet, | 34 IFDE_CanvasSet* pCanvasSet, |
| 32 const CFX_Matrix& tmDoc2Device) = 0; | 35 const CFX_Matrix& tmDoc2Device) = 0; |
| 33 virtual FDE_RENDERSTATUS GetStatus() const = 0; | 36 virtual FDE_RENDERSTATUS GetStatus() const = 0; |
| 34 virtual FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = NULL) = 0; | 37 virtual FDE_RENDERSTATUS DoRender(IFX_Pause* pPause = NULL) = 0; |
| 35 virtual void StopRender() = 0; | 38 virtual void StopRender() = 0; |
| 36 }; | 39 }; |
| 37 | 40 |
| 38 #endif // XFA_SRC_FDP_INCLUDE_FDE_RDR_H_ | 41 #endif // XFA_SRC_FDP_INCLUDE_FDE_RDR_H_ |
| OLD | NEW |