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_CFX_RENDERDEVICE_H_ | 7 #ifndef CORE_FXGE_CFX_RENDERDEVICE_H_ |
8 #define CORE_FXGE_CFX_RENDERDEVICE_H_ | 8 #define CORE_FXGE_CFX_RENDERDEVICE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 virtual void DebugVerifyBitmapIsPreMultiplied() const; | 223 virtual void DebugVerifyBitmapIsPreMultiplied() const; |
224 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, | 224 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, |
225 const CFX_DIBSource* pMask, | 225 const CFX_DIBSource* pMask, |
226 int left, | 226 int left, |
227 int top, | 227 int top, |
228 int bitmap_alpha, | 228 int bitmap_alpha, |
229 int blend_type); | 229 int blend_type); |
230 void Flush(); | 230 void Flush(); |
231 #endif | 231 #endif |
232 | 232 |
| 233 #ifdef _SKIA_SUPPORT_PATHS_ |
| 234 virtual void UnPreMultiplyDevice(); |
| 235 #endif |
| 236 |
233 private: | 237 private: |
234 void InitDeviceInfo(); | 238 void InitDeviceInfo(); |
235 void UpdateClipBox(); | 239 void UpdateClipBox(); |
236 bool DrawFillStrokePath(const CFX_PathData* pPathData, | 240 bool DrawFillStrokePath(const CFX_PathData* pPathData, |
237 const CFX_Matrix* pObject2Device, | 241 const CFX_Matrix* pObject2Device, |
238 const CFX_GraphStateData* pGraphState, | 242 const CFX_GraphStateData* pGraphState, |
239 uint32_t fill_color, | 243 uint32_t fill_color, |
240 uint32_t stroke_color, | 244 uint32_t stroke_color, |
241 int fill_mode, | 245 int fill_mode, |
242 int blend_type); | 246 int blend_type); |
243 | 247 |
244 CFX_DIBitmap* m_pBitmap; | 248 CFX_DIBitmap* m_pBitmap; |
245 int m_Width; | 249 int m_Width; |
246 int m_Height; | 250 int m_Height; |
247 int m_bpp; | 251 int m_bpp; |
248 int m_RenderCaps; | 252 int m_RenderCaps; |
249 int m_DeviceClass; | 253 int m_DeviceClass; |
250 FX_RECT m_ClipBox; | 254 FX_RECT m_ClipBox; |
251 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; | 255 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; |
252 }; | 256 }; |
253 | 257 |
254 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_ | 258 #endif // CORE_FXGE_CFX_RENDERDEVICE_H_ |
OLD | NEW |