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/include/fxge/fx_ge.h" | 10 #include "core/include/fxge/fx_ge.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void CancelDIBits(void* handle) override; | 115 void CancelDIBits(void* handle) override; |
116 FX_BOOL DrawDeviceText(int nChars, | 116 FX_BOOL DrawDeviceText(int nChars, |
117 const FXTEXT_CHARPOS* pCharPos, | 117 const FXTEXT_CHARPOS* pCharPos, |
118 CFX_Font* pFont, | 118 CFX_Font* pFont, |
119 CFX_FontCache* pCache, | 119 CFX_FontCache* pCache, |
120 const CFX_Matrix* pObject2Device, | 120 const CFX_Matrix* pObject2Device, |
121 FX_FLOAT font_size, | 121 FX_FLOAT font_size, |
122 FX_DWORD color, | 122 FX_DWORD color, |
123 int alpha_flag, | 123 int alpha_flag, |
124 void* pIccTransform) override; | 124 void* pIccTransform) override; |
125 int GetDriverType() override { return 1; } | 125 int GetDriverType() const override { return 1; } |
126 | 126 |
127 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, | 127 FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, |
128 FX_DWORD color, | 128 FX_DWORD color, |
129 FX_BOOL bFullCover, | 129 FX_BOOL bFullCover, |
130 FX_BOOL bGroupKnockout, | 130 FX_BOOL bGroupKnockout, |
131 int alpha_flag, | 131 int alpha_flag, |
132 void* pIccTransform); | 132 void* pIccTransform); |
133 | 133 |
134 void SetClipMask(agg::rasterizer_scanline_aa& rasterizer); | 134 void SetClipMask(agg::rasterizer_scanline_aa& rasterizer); |
135 | 135 |
136 virtual uint8_t* GetBuffer() const; | 136 virtual uint8_t* GetBuffer() const; |
137 const CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } | 137 const CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } |
138 | 138 |
139 private: | 139 private: |
140 CFX_DIBitmap* m_pBitmap; | 140 CFX_DIBitmap* m_pBitmap; |
141 CFX_ClipRgn* m_pClipRgn; | 141 CFX_ClipRgn* m_pClipRgn; |
142 CFX_ArrayTemplate<CFX_ClipRgn*> m_StateStack; | 142 CFX_ArrayTemplate<CFX_ClipRgn*> m_StateStack; |
143 void* m_pPlatformGraphics; | 143 void* m_pPlatformGraphics; |
144 void* m_pPlatformBitmap; | 144 void* m_pPlatformBitmap; |
145 void* m_pDwRenderTartget; | 145 void* m_pDwRenderTartget; |
146 int m_FillFlags; | 146 int m_FillFlags; |
147 int m_DitherBits; | 147 int m_DitherBits; |
148 FX_BOOL m_bRgbByteOrder; | 148 FX_BOOL m_bRgbByteOrder; |
149 CFX_DIBitmap* m_pOriDevice; | 149 CFX_DIBitmap* m_pOriDevice; |
150 FX_BOOL m_bGroupKnockout; | 150 FX_BOOL m_bGroupKnockout; |
151 }; | 151 }; |
152 | 152 |
153 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ | 153 #endif // CORE_FXGE_AGG_FX_AGG_DRIVER_H_ |
OLD | NEW |