| 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 class SkCanvas; | 10 class SkCanvas; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 FX_BOOL bGroupKnockout); | 23 FX_BOOL bGroupKnockout); |
| 24 CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); | 24 CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); |
| 25 CFX_SkiaDeviceDriver(int size_x, int size_y); | 25 CFX_SkiaDeviceDriver(int size_x, int size_y); |
| 26 ~CFX_SkiaDeviceDriver() override; | 26 ~CFX_SkiaDeviceDriver() override; |
| 27 | 27 |
| 28 /** Options */ | 28 /** Options */ |
| 29 int GetDeviceCaps(int caps_id) override; | 29 int GetDeviceCaps(int caps_id) override; |
| 30 | 30 |
| 31 /** Save and restore all graphic states */ | 31 /** Save and restore all graphic states */ |
| 32 void SaveState() override; | 32 void SaveState() override; |
| 33 void RestoreState(FX_BOOL bKeepSaved) override; | 33 void RestoreState(bool bKeepSaved) override; |
| 34 | 34 |
| 35 /** Set clipping path using filled region */ | 35 /** Set clipping path using filled region */ |
| 36 FX_BOOL SetClip_PathFill( | 36 FX_BOOL SetClip_PathFill( |
| 37 const CFX_PathData* pPathData, // path info | 37 const CFX_PathData* pPathData, // path info |
| 38 const CFX_Matrix* pObject2Device, // optional transformation | 38 const CFX_Matrix* pObject2Device, // optional transformation |
| 39 int fill_mode) override; // fill mode, WINDING or ALTERNATE | 39 int fill_mode) override; // fill mode, WINDING or ALTERNATE |
| 40 | 40 |
| 41 /** Set clipping path using stroked region */ | 41 /** Set clipping path using stroked region */ |
| 42 FX_BOOL SetClip_PathStroke( | 42 FX_BOOL SetClip_PathStroke( |
| 43 const CFX_PathData* pPathData, // path info | 43 const CFX_PathData* pPathData, // path info |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 CFX_DIBitmap* m_pOriDevice; | 145 CFX_DIBitmap* m_pOriDevice; |
| 146 SkCanvas* m_pCanvas; | 146 SkCanvas* m_pCanvas; |
| 147 SkPictureRecorder* const m_pRecorder; | 147 SkPictureRecorder* const m_pRecorder; |
| 148 int m_ditherBits; | 148 int m_ditherBits; |
| 149 FX_BOOL m_bRgbByteOrder; | 149 FX_BOOL m_bRgbByteOrder; |
| 150 FX_BOOL m_bGroupKnockout; | 150 FX_BOOL m_bGroupKnockout; |
| 151 }; | 151 }; |
| 152 #endif // defined(_SKIA_SUPPORT_) | 152 #endif // defined(_SKIA_SUPPORT_) |
| 153 | 153 |
| 154 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 154 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| OLD | NEW |