| 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 #ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 5 #ifndef CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| 6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 6 #define CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| 7 | 7 |
| 8 #if defined(_SKIA_SUPPORT_) | 8 #if defined(_SKIA_SUPPORT_) |
| 9 | 9 |
| 10 #include "core/fxge/include/ifx_renderdevicedriver.h" |
| 11 |
| 10 class SkCanvas; | 12 class SkCanvas; |
| 11 class SkMatrix; | 13 class SkMatrix; |
| 12 class SkPaint; | 14 class SkPaint; |
| 13 class SkPath; | 15 class SkPath; |
| 14 class SkPictureRecorder; | 16 class SkPictureRecorder; |
| 15 struct SkIRect; | 17 struct SkIRect; |
| 16 | 18 |
| 17 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { | 19 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
| 18 public: | 20 public: |
| 19 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, | 21 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, |
| 20 FX_BOOL bRgbByteOrder, | 22 FX_BOOL bRgbByteOrder, |
| 21 CFX_DIBitmap* pOriDevice, | 23 CFX_DIBitmap* pOriDevice, |
| 22 FX_BOOL bGroupKnockout); | 24 FX_BOOL bGroupKnockout); |
| 23 explicit CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); | 25 explicit CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); |
| 24 CFX_SkiaDeviceDriver(int size_x, int size_y); | 26 CFX_SkiaDeviceDriver(int size_x, int size_y); |
| 25 ~CFX_SkiaDeviceDriver() override; | 27 ~CFX_SkiaDeviceDriver() override; |
| 26 | 28 |
| 27 /** Options */ | 29 /** Options */ |
| 28 int GetDeviceCaps(int caps_id) override; | 30 int GetDeviceCaps(int caps_id) const override; |
| 29 | 31 |
| 30 /** Save and restore all graphic states */ | 32 /** Save and restore all graphic states */ |
| 31 void SaveState() override; | 33 void SaveState() override; |
| 32 void RestoreState(bool bKeepSaved) override; | 34 void RestoreState(bool bKeepSaved) override; |
| 33 | 35 |
| 34 /** Set clipping path using filled region */ | 36 /** Set clipping path using filled region */ |
| 35 FX_BOOL SetClip_PathFill( | 37 FX_BOOL SetClip_PathFill( |
| 36 const CFX_PathData* pPathData, // path info | 38 const CFX_PathData* pPathData, // path info |
| 37 const CFX_Matrix* pObject2Device, // optional transformation | 39 const CFX_Matrix* pObject2Device, // optional transformation |
| 38 int fill_mode) override; // fill mode, WINDING or ALTERNATE | 40 int fill_mode) override; // fill mode, WINDING or ALTERNATE |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 CFX_DIBitmap* m_pBitmap; | 129 CFX_DIBitmap* m_pBitmap; |
| 128 CFX_DIBitmap* m_pOriDevice; | 130 CFX_DIBitmap* m_pOriDevice; |
| 129 SkCanvas* m_pCanvas; | 131 SkCanvas* m_pCanvas; |
| 130 SkPictureRecorder* const m_pRecorder; | 132 SkPictureRecorder* const m_pRecorder; |
| 131 FX_BOOL m_bRgbByteOrder; | 133 FX_BOOL m_bRgbByteOrder; |
| 132 FX_BOOL m_bGroupKnockout; | 134 FX_BOOL m_bGroupKnockout; |
| 133 }; | 135 }; |
| 134 #endif // defined(_SKIA_SUPPORT_) | 136 #endif // defined(_SKIA_SUPPORT_) |
| 135 | 137 |
| 136 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 138 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| OLD | NEW |