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

Side by Side Diff: include/core/SkCanvas.h

Issue 1201983006: Clean up usage of SkSurfaceProps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 friend class SkSurface_Raster; // needs getDevice() 1283 friend class SkSurface_Raster; // needs getDevice()
1284 friend class SkRecorder; // InitFlags 1284 friend class SkRecorder; // InitFlags
1285 friend class SkNoSaveLayerCanvas; // InitFlags 1285 friend class SkNoSaveLayerCanvas; // InitFlags
1286 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp s*, InitFlags) 1286 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp s*, InitFlags)
1287 1287
1288 enum InitFlags { 1288 enum InitFlags {
1289 kDefault_InitFlags = 0, 1289 kDefault_InitFlags = 0,
1290 kConservativeRasterClip_InitFlag = 1 << 0, 1290 kConservativeRasterClip_InitFlag = 1 << 0,
1291 }; 1291 };
1292 SkCanvas(const SkIRect& bounds, InitFlags); 1292 SkCanvas(const SkIRect& bounds, InitFlags);
1293 // TODO: remove this ctor - the basedevice should already have surface props
1294 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags);
1295 SkCanvas(SkBaseDevice* device, InitFlags); 1293 SkCanvas(SkBaseDevice* device, InitFlags);
1296 1294
1297 void resetForNextPicture(const SkIRect& bounds); 1295 void resetForNextPicture(const SkIRect& bounds);
1298 1296
1299 // needs gettotalclip() 1297 // needs gettotalclip()
1300 friend class SkCanvasStateUtils; 1298 friend class SkCanvasStateUtils;
1301 1299
1302 // call this each time we attach ourselves to a device 1300 // call this each time we attach ourselves to a device
1303 // - constructor 1301 // - constructor
1304 // - internalSaveLayer 1302 // - internalSaveLayer
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 1467
1470 class SkCanvasClipVisitor { 1468 class SkCanvasClipVisitor {
1471 public: 1469 public:
1472 virtual ~SkCanvasClipVisitor(); 1470 virtual ~SkCanvasClipVisitor();
1473 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1471 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1474 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1472 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1475 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1473 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1476 }; 1474 };
1477 1475
1478 #endif 1476 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698