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 <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fxge/include/ifx_renderdevicedriver.h" | 13 #include "core/fxge/include/ifx_renderdevicedriver.h" |
14 #include "third_party/agg23/agg_clip_liang_barsky.h" | 14 #include "third_party/agg23/agg_clip_liang_barsky.h" |
15 #include "third_party/agg23/agg_path_storage.h" | 15 #include "third_party/agg23/agg_path_storage.h" |
16 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" | 16 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" |
17 | 17 |
18 class CFX_ClipRgn; | 18 class CFX_ClipRgn; |
| 19 class CFX_FontCache; |
19 class CFX_GraphStateData; | 20 class CFX_GraphStateData; |
20 class CFX_Matrix; | 21 class CFX_Matrix; |
21 class CFX_PathData; | 22 class CFX_PathData; |
22 | 23 |
23 class CAgg_PathData { | 24 class CAgg_PathData { |
24 public: | 25 public: |
25 CAgg_PathData() {} | 26 CAgg_PathData() {} |
26 ~CAgg_PathData() {} | 27 ~CAgg_PathData() {} |
27 void BuildPath(const CFX_PathData* pPathData, | 28 void BuildPath(const CFX_PathData* pPathData, |
28 const CFX_Matrix* pObject2Device); | 29 const CFX_Matrix* pObject2Device); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 uint32_t color, | 86 uint32_t color, |
86 const CFX_Matrix* pMatrix, | 87 const CFX_Matrix* pMatrix, |
87 uint32_t flags, | 88 uint32_t flags, |
88 void*& handle, | 89 void*& handle, |
89 int blend_type) override; | 90 int blend_type) override; |
90 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause) override; | 91 FX_BOOL ContinueDIBits(void* handle, IFX_Pause* pPause) override; |
91 void CancelDIBits(void* handle) override; | 92 void CancelDIBits(void* handle) override; |
92 FX_BOOL DrawDeviceText(int nChars, | 93 FX_BOOL DrawDeviceText(int nChars, |
93 const FXTEXT_CHARPOS* pCharPos, | 94 const FXTEXT_CHARPOS* pCharPos, |
94 CFX_Font* pFont, | 95 CFX_Font* pFont, |
| 96 CFX_FontCache* pCache, |
95 const CFX_Matrix* pObject2Device, | 97 const CFX_Matrix* pObject2Device, |
96 FX_FLOAT font_size, | 98 FX_FLOAT font_size, |
97 uint32_t color) override; | 99 uint32_t color) override; |
98 int GetDriverType() const override; | 100 int GetDriverType() const override; |
99 | 101 |
100 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, | 102 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, |
101 uint32_t color, | 103 uint32_t color, |
102 FX_BOOL bFullCover, | 104 FX_BOOL bFullCover, |
103 FX_BOOL bGroupKnockout, | 105 FX_BOOL bGroupKnockout, |
104 int alpha_flag, | 106 int alpha_flag, |
(...skipping 11 matching lines...) Expand all Loading... |
116 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 118 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
117 void* m_pPlatformGraphics; | 119 void* m_pPlatformGraphics; |
118 #endif | 120 #endif |
119 int m_FillFlags; | 121 int m_FillFlags; |
120 FX_BOOL m_bRgbByteOrder; | 122 FX_BOOL m_bRgbByteOrder; |
121 CFX_DIBitmap* m_pOriDevice; | 123 CFX_DIBitmap* m_pOriDevice; |
122 FX_BOOL m_bGroupKnockout; | 124 FX_BOOL m_bGroupKnockout; |
123 }; | 125 }; |
124 | 126 |
125 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 127 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
OLD | NEW |