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> |
| 11 #include <vector> |
| 12 |
10 #include "core/fxge/include/ifx_renderdevicedriver.h" | 13 #include "core/fxge/include/ifx_renderdevicedriver.h" |
11 #include "third_party/agg23/agg_clip_liang_barsky.h" | 14 #include "third_party/agg23/agg_clip_liang_barsky.h" |
12 #include "third_party/agg23/agg_path_storage.h" | 15 #include "third_party/agg23/agg_path_storage.h" |
13 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" | 16 #include "third_party/agg23/agg_rasterizer_scanline_aa.h" |
14 | 17 |
15 class CFX_ClipRgn; | 18 class CFX_ClipRgn; |
16 class CFX_Matrix; | 19 class CFX_Matrix; |
17 class CFX_PathData; | 20 class CFX_PathData; |
18 | 21 |
19 class CAgg_PathData { | 22 class CAgg_PathData { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 int alpha_flag, | 104 int alpha_flag, |
102 void* pIccTransform); | 105 void* pIccTransform); |
103 | 106 |
104 void SetClipMask(agg::rasterizer_scanline_aa& rasterizer); | 107 void SetClipMask(agg::rasterizer_scanline_aa& rasterizer); |
105 | 108 |
106 virtual uint8_t* GetBuffer() const; | 109 virtual uint8_t* GetBuffer() const; |
107 const CFX_DIBitmap* GetBitmap() const; | 110 const CFX_DIBitmap* GetBitmap() const; |
108 | 111 |
109 private: | 112 private: |
110 CFX_DIBitmap* m_pBitmap; | 113 CFX_DIBitmap* m_pBitmap; |
111 CFX_ClipRgn* m_pClipRgn; | 114 std::unique_ptr<CFX_ClipRgn> m_pClipRgn; |
112 CFX_ArrayTemplate<CFX_ClipRgn*> m_StateStack; | 115 std::vector<std::unique_ptr<CFX_ClipRgn>> m_StateStack; |
| 116 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
113 void* m_pPlatformGraphics; | 117 void* m_pPlatformGraphics; |
114 void* m_pPlatformBitmap; | 118 #endif |
115 void* m_pDwRenderTartget; | |
116 int m_FillFlags; | 119 int m_FillFlags; |
117 FX_BOOL m_bRgbByteOrder; | 120 FX_BOOL m_bRgbByteOrder; |
118 CFX_DIBitmap* m_pOriDevice; | 121 CFX_DIBitmap* m_pOriDevice; |
119 FX_BOOL m_bGroupKnockout; | 122 FX_BOOL m_bGroupKnockout; |
120 }; | 123 }; |
121 | 124 |
122 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 125 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
OLD | NEW |