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_INCLUDE_CFX_RENDERDEVICE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 const CFX_Matrix* pText2User, | 246 const CFX_Matrix* pText2User, |
247 const CFX_Matrix* pUser2Device, | 247 const CFX_Matrix* pUser2Device, |
248 const CFX_GraphStateData* pGraphState, | 248 const CFX_GraphStateData* pGraphState, |
249 uint32_t fill_color, | 249 uint32_t fill_color, |
250 uint32_t stroke_color, | 250 uint32_t stroke_color, |
251 CFX_PathData* pClippingPath, | 251 CFX_PathData* pClippingPath, |
252 int nFlag); | 252 int nFlag); |
253 | 253 |
254 #ifdef _SKIA_SUPPORT_ | 254 #ifdef _SKIA_SUPPORT_ |
255 virtual void DebugVerifyBitmapIsPreMultiplied() const; | 255 virtual void DebugVerifyBitmapIsPreMultiplied() const; |
| 256 virtual bool SetBitsWithMask(const CFX_DIBSource* pBitmap, |
| 257 const CFX_DIBSource* pMask, |
| 258 int left, |
| 259 int top, |
| 260 int bitmap_alpha, |
| 261 int blend_type); |
256 void Flush(); | 262 void Flush(); |
257 #endif | 263 #endif |
258 | 264 |
259 private: | 265 private: |
260 void InitDeviceInfo(); | 266 void InitDeviceInfo(); |
261 void UpdateClipBox(); | 267 void UpdateClipBox(); |
262 FX_BOOL DrawFillStrokePath(const CFX_PathData* pPathData, | 268 FX_BOOL DrawFillStrokePath(const CFX_PathData* pPathData, |
263 const CFX_Matrix* pObject2Device, | 269 const CFX_Matrix* pObject2Device, |
264 const CFX_GraphStateData* pGraphState, | 270 const CFX_GraphStateData* pGraphState, |
265 uint32_t fill_color, | 271 uint32_t fill_color, |
266 uint32_t stroke_color, | 272 uint32_t stroke_color, |
267 int fill_mode, | 273 int fill_mode, |
268 int blend_type); | 274 int blend_type); |
269 | 275 |
270 CFX_DIBitmap* m_pBitmap; | 276 CFX_DIBitmap* m_pBitmap; |
271 int m_Width; | 277 int m_Width; |
272 int m_Height; | 278 int m_Height; |
273 int m_bpp; | 279 int m_bpp; |
274 int m_RenderCaps; | 280 int m_RenderCaps; |
275 int m_DeviceClass; | 281 int m_DeviceClass; |
276 FX_RECT m_ClipBox; | 282 FX_RECT m_ClipBox; |
277 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; | 283 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; |
278 }; | 284 }; |
279 | 285 |
280 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 286 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
OLD | NEW |