| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ | 7 #ifndef CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ |
| 8 #define CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ | 8 #define CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
| 11 | 11 |
| 12 class CFX_DIBitmap; | 12 class CFX_DIBitmap; |
| 13 class CFX_DIBSource; | 13 class CFX_DIBSource; |
| 14 class CFX_Font; | 14 class CFX_Font; |
| 15 class CFX_FontCache; |
| 15 class CFX_GraphStateData; | 16 class CFX_GraphStateData; |
| 16 class CFX_Matrix; | 17 class CFX_Matrix; |
| 17 class CFX_PathData; | 18 class CFX_PathData; |
| 18 class CPDF_ShadingPattern; | 19 class CPDF_ShadingPattern; |
| 19 class IFX_Pause; | 20 class IFX_Pause; |
| 20 struct FXTEXT_CHARPOS; | 21 struct FXTEXT_CHARPOS; |
| 21 struct FX_RECT; | 22 struct FX_RECT; |
| 22 | 23 |
| 23 class IFX_RenderDeviceDriver { | 24 class IFX_RenderDeviceDriver { |
| 24 public: | 25 public: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 uint32_t color, | 80 uint32_t color, |
| 80 const CFX_Matrix* pMatrix, | 81 const CFX_Matrix* pMatrix, |
| 81 uint32_t flags, | 82 uint32_t flags, |
| 82 void*& handle, | 83 void*& handle, |
| 83 int blend_type) = 0; | 84 int blend_type) = 0; |
| 84 virtual FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); | 85 virtual FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause); |
| 85 virtual void CancelDIBits(void* handle); | 86 virtual void CancelDIBits(void* handle); |
| 86 virtual FX_BOOL DrawDeviceText(int nChars, | 87 virtual FX_BOOL DrawDeviceText(int nChars, |
| 87 const FXTEXT_CHARPOS* pCharPos, | 88 const FXTEXT_CHARPOS* pCharPos, |
| 88 CFX_Font* pFont, | 89 CFX_Font* pFont, |
| 90 CFX_FontCache* pCache, |
| 89 const CFX_Matrix* pObject2Device, | 91 const CFX_Matrix* pObject2Device, |
| 90 FX_FLOAT font_size, | 92 FX_FLOAT font_size, |
| 91 uint32_t color); | 93 uint32_t color); |
| 92 virtual void* GetPlatformSurface() const; | 94 virtual void* GetPlatformSurface() const; |
| 93 virtual int GetDriverType() const; | 95 virtual int GetDriverType() const; |
| 94 virtual void ClearDriver(); | 96 virtual void ClearDriver(); |
| 95 virtual FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, | 97 virtual FX_BOOL DrawShading(const CPDF_ShadingPattern* pPattern, |
| 96 const CFX_Matrix* pMatrix, | 98 const CFX_Matrix* pMatrix, |
| 97 const FX_RECT& clip_rect, | 99 const FX_RECT& clip_rect, |
| 98 int alpha, | 100 int alpha, |
| 99 FX_BOOL bAlphaMode); | 101 FX_BOOL bAlphaMode); |
| 100 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, | 102 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, |
| 101 const CFX_DIBSource* pMask, | 103 const CFX_DIBSource* pMask, |
| 102 int left, | 104 int left, |
| 103 int top, | 105 int top, |
| 104 int bitmap_alpha, | 106 int bitmap_alpha, |
| 105 int blend_type); | 107 int blend_type); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 #endif // CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ | 110 #endif // CORE_FXGE_INCLUDE_IFX_RENDERDEVICEDRIVER_H_ |
| OLD | NEW |