Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: core/fxge/skia/fx_skia_device.h

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698