| 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 CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 7 #ifndef CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
| 8 #define CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 8 #define CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
| 9 | 9 |
| 10 #include "core/fxge/include/fx_ge.h" | 10 #include "core/fxge/include/fx_ge.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ~CAgg_PathData() {} | 21 ~CAgg_PathData() {} |
| 22 void BuildPath(const CFX_PathData* pPathData, | 22 void BuildPath(const CFX_PathData* pPathData, |
| 23 const CFX_Matrix* pObject2Device); | 23 const CFX_Matrix* pObject2Device); |
| 24 | 24 |
| 25 agg::path_storage m_PathData; | 25 agg::path_storage m_PathData; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 class CFX_AggDeviceDriver : public IFX_RenderDeviceDriver { | 28 class CFX_AggDeviceDriver : public IFX_RenderDeviceDriver { |
| 29 public: | 29 public: |
| 30 CFX_AggDeviceDriver(CFX_DIBitmap* pBitmap, | 30 CFX_AggDeviceDriver(CFX_DIBitmap* pBitmap, |
| 31 int dither_bits, | |
| 32 FX_BOOL bRgbByteOrder, | 31 FX_BOOL bRgbByteOrder, |
| 33 CFX_DIBitmap* pOriDevice, | 32 CFX_DIBitmap* pOriDevice, |
| 34 FX_BOOL bGroupKnockout); | 33 FX_BOOL bGroupKnockout); |
| 35 ~CFX_AggDeviceDriver() override; | 34 ~CFX_AggDeviceDriver() override; |
| 36 | 35 |
| 37 void InitPlatform(); | 36 void InitPlatform(); |
| 38 void DestroyPlatform(); | 37 void DestroyPlatform(); |
| 39 | 38 |
| 40 // IFX_RenderDeviceDriver | 39 // IFX_RenderDeviceDriver |
| 41 int GetDeviceCaps(int caps_id) override; | 40 int GetDeviceCaps(int caps_id) override; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } | 136 const CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } |
| 138 | 137 |
| 139 private: | 138 private: |
| 140 CFX_DIBitmap* m_pBitmap; | 139 CFX_DIBitmap* m_pBitmap; |
| 141 CFX_ClipRgn* m_pClipRgn; | 140 CFX_ClipRgn* m_pClipRgn; |
| 142 CFX_ArrayTemplate<CFX_ClipRgn*> m_StateStack; | 141 CFX_ArrayTemplate<CFX_ClipRgn*> m_StateStack; |
| 143 void* m_pPlatformGraphics; | 142 void* m_pPlatformGraphics; |
| 144 void* m_pPlatformBitmap; | 143 void* m_pPlatformBitmap; |
| 145 void* m_pDwRenderTartget; | 144 void* m_pDwRenderTartget; |
| 146 int m_FillFlags; | 145 int m_FillFlags; |
| 147 int m_DitherBits; | |
| 148 FX_BOOL m_bRgbByteOrder; | 146 FX_BOOL m_bRgbByteOrder; |
| 149 CFX_DIBitmap* m_pOriDevice; | 147 CFX_DIBitmap* m_pOriDevice; |
| 150 FX_BOOL m_bGroupKnockout; | 148 FX_BOOL m_bGroupKnockout; |
| 151 }; | 149 }; |
| 152 | 150 |
| 153 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 151 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
| OLD | NEW |