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

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

Issue 1062353002: Revert of SkCanvas::resetForNextPicture() (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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 | « include/core/SkBitmapDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('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 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 friend class SkNoSaveLayerCanvas; // InitFlags 1294 friend class SkNoSaveLayerCanvas; // InitFlags
1295 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp s*, InitFlags) 1295 friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProp s*, InitFlags)
1296 1296
1297 enum InitFlags { 1297 enum InitFlags {
1298 kDefault_InitFlags = 0, 1298 kDefault_InitFlags = 0,
1299 kConservativeRasterClip_InitFlag = 1 << 0, 1299 kConservativeRasterClip_InitFlag = 1 << 0,
1300 }; 1300 };
1301 SkCanvas(const SkIRect& bounds, InitFlags); 1301 SkCanvas(const SkIRect& bounds, InitFlags);
1302 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags); 1302 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags);
1303 1303
1304 void resetForNextPicture(const SkIRect& bounds);
1305
1306 // needs gettotalclip() 1304 // needs gettotalclip()
1307 friend class SkCanvasStateUtils; 1305 friend class SkCanvasStateUtils;
1308 1306
1309 // call this each time we attach ourselves to a device 1307 // call this each time we attach ourselves to a device
1310 // - constructor 1308 // - constructor
1311 // - internalSaveLayer 1309 // - internalSaveLayer
1312 void setupDevice(SkBaseDevice*); 1310 void setupDevice(SkBaseDevice*);
1313 1311
1314 SkBaseDevice* init(SkBaseDevice*, InitFlags); 1312 SkBaseDevice* init(SkBaseDevice*, InitFlags);
1315 1313
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 1496
1499 class SkCanvasClipVisitor { 1497 class SkCanvasClipVisitor {
1500 public: 1498 public:
1501 virtual ~SkCanvasClipVisitor(); 1499 virtual ~SkCanvasClipVisitor();
1502 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1500 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1503 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1501 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1504 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1502 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1505 }; 1503 };
1506 1504
1507 #endif 1505 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmapDevice.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698