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

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

Issue 1296043002: Merge to XFA: Use override in more classes in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_ 5 #ifndef CORE_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_
6 #define CORE_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_ 6 #define CORE_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_
7 7
8 #if defined(_SKIA_SUPPORT_) 8 #if defined(_SKIA_SUPPORT_)
9 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { 9 class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver {
10 public: 10 public:
11 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap, 11 CFX_SkiaDeviceDriver(CFX_DIBitmap* pBitmap,
12 int dither_bits, 12 int dither_bits,
13 FX_BOOL bRgbByteOrder, 13 FX_BOOL bRgbByteOrder,
14 CFX_DIBitmap* pOriDevice, 14 CFX_DIBitmap* pOriDevice,
15 FX_BOOL bGroupKnockout); 15 FX_BOOL bGroupKnockout);
16 virtual ~CFX_SkiaDeviceDriver(); 16 ~CFX_SkiaDeviceDriver() override;
17 17
18 /** Options */ 18 /** Options */
19 virtual int GetDeviceCaps(int caps_id); 19 virtual int GetDeviceCaps(int caps_id);
20 20
21 /** Save and restore all graphic states */ 21 /** Save and restore all graphic states */
22 virtual void SaveState(); 22 virtual void SaveState();
23 virtual void RestoreState(FX_BOOL bKeepSaved); 23 virtual void RestoreState(FX_BOOL bKeepSaved);
24 24
25 /** Set clipping path using filled region */ 25 /** Set clipping path using filled region */
26 virtual FX_BOOL SetClip_PathFill( 26 virtual FX_BOOL SetClip_PathFill(
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 FX_BOOL bFill = TRUE); 138 FX_BOOL bFill = TRUE);
139 void SetClipMask(rasterizer_scanline_aa& rasterizer); 139 void SetClipMask(rasterizer_scanline_aa& rasterizer);
140 void SetClipMask(SkPath& skPath, SkPaint* spaint); 140 void SetClipMask(SkPath& skPath, SkPaint* spaint);
141 virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); } 141 virtual uint8_t* GetBuffer() const { return m_pAggDriver->GetBuffer(); }
142 142
143 CFX_AggDeviceDriver* m_pAggDriver; 143 CFX_AggDeviceDriver* m_pAggDriver;
144 }; 144 };
145 #endif // defined(_SKIA_SUPPORT_) 145 #endif // defined(_SKIA_SUPPORT_)
146 146
147 #endif // CORE_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_ 147 #endif // CORE_SRC_FXGE_SKIA_FX_SKIA_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698