| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const FXTEXT_CHARPOS* pCharPos, | 122 const FXTEXT_CHARPOS* pCharPos, |
| 123 CFX_Font* pFont, | 123 CFX_Font* pFont, |
| 124 CFX_FontCache* pCache, | 124 CFX_FontCache* pCache, |
| 125 const CFX_Matrix* pObject2Device, | 125 const CFX_Matrix* pObject2Device, |
| 126 FX_FLOAT font_size, | 126 FX_FLOAT font_size, |
| 127 FX_DWORD color, | 127 FX_DWORD color, |
| 128 int alpha_flag = 0, | 128 int alpha_flag = 0, |
| 129 void* pIccTransform = NULL) override; | 129 void* pIccTransform = NULL) override; |
| 130 | 130 |
| 131 virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); } | 131 virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); } |
| 132 void PaintStroke(SkPaint* spaint, const CFX_GraphStateData* pGraphState, const
SkMatrix& matrix); | 132 void PaintStroke(SkPaint* spaint, |
| 133 const CFX_GraphStateData* pGraphState, |
| 134 const SkMatrix& matrix); |
| 133 SkPictureRecorder* GetRecorder() const { return m_pRecorder; } | 135 SkPictureRecorder* GetRecorder() const { return m_pRecorder; } |
| 134 | 136 |
| 135 private: | 137 private: |
| 136 CFX_AggDeviceDriver* m_pAggDriver; | 138 CFX_AggDeviceDriver* m_pAggDriver; |
| 137 SkCanvas* m_pCanvas; | 139 SkCanvas* m_pCanvas; |
| 138 SkPictureRecorder* const m_pRecorder; | 140 SkPictureRecorder* const m_pRecorder; |
| 139 int m_ditherBits; | 141 int m_ditherBits; |
| 140 }; | 142 }; |
| 141 #endif // defined(_SKIA_SUPPORT_) | 143 #endif // defined(_SKIA_SUPPORT_) |
| 142 | 144 |
| 143 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ | 145 #endif // CORE_FXGE_SKIA_FX_SKIA_DEVICE_H_ |
| OLD | NEW |