| 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/cfx_pathdata.h" | 10 #include "core/fxge/include/cfx_pathdata.h" |
| 11 #include "core/fxge/include/ifx_renderdevicedriver.h" | 11 #include "core/fxge/include/ifx_renderdevicedriver.h" |
| 12 | 12 |
| 13 class SkCanvas; | 13 class SkCanvas; |
| 14 class SkMatrix; | 14 class SkMatrix; |
| 15 class SkPaint; | 15 class SkPaint; |
| 16 class SkPath; | 16 class SkPath; |
| 17 class SkPictureRecorder; | 17 class SkPictureRecorder; |
| 18 class SkiaState; | 18 class SkiaState; |
| 19 struct FXTEXT_CHARPOS; |
| 19 struct SkIRect; | 20 struct SkIRect; |
| 20 | 21 |
| 21 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { | 22 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { |
| 22 public: | 23 public: |
| 23 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, | 24 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, |
| 24 FX_BOOL bRgbByteOrder, | 25 FX_BOOL bRgbByteOrder, |
| 25 CFX_DIBitmap* pOriDevice, | 26 CFX_DIBitmap* pOriDevice, |
| 26 FX_BOOL bGroupKnockout); | 27 FX_BOOL bGroupKnockout); |
| 27 explicit CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); | 28 explicit CFX_SkiaDeviceDriver(SkPictureRecorder* recorder); |
| 28 CFX_SkiaDeviceDriver(int size_x, int size_y); | 29 CFX_SkiaDeviceDriver(int size_x, int size_y); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 CFX_DIBitmap* m_pBitmap; | 138 CFX_DIBitmap* m_pBitmap; |
| 138 CFX_DIBitmap* m_pOriDevice; | 139 CFX_DIBitmap* m_pOriDevice; |
| 139 SkCanvas* m_pCanvas; | 140 SkCanvas* m_pCanvas; |
| 140 SkPictureRecorder* const m_pRecorder; | 141 SkPictureRecorder* const m_pRecorder; |
| 141 std::unique_ptr<SkiaState> m_pCache; | 142 std::unique_ptr<SkiaState> m_pCache; |
| 142 FX_BOOL m_bGroupKnockout; | 143 FX_BOOL m_bGroupKnockout; |
| 143 }; | 144 }; |
| 144 #endif // defined(_SKIA_SUPPORT_) | 145 #endif // defined(_SKIA_SUPPORT_) |
| 145 | 146 |
| 146 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 147 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| OLD | NEW |