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

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

Issue 1067893002: SkCanvas::resetForNextPicture() (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Return null when we're not recording. Should fix printing failures. 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') | include/core/SkPictureRecorder.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 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
1304 // needs gettotalclip() 1306 // needs gettotalclip()
1305 friend class SkCanvasStateUtils; 1307 friend class SkCanvasStateUtils;
1306 1308
1307 // call this each time we attach ourselves to a device 1309 // call this each time we attach ourselves to a device
1308 // - constructor 1310 // - constructor
1309 // - internalSaveLayer 1311 // - internalSaveLayer
1310 void setupDevice(SkBaseDevice*); 1312 void setupDevice(SkBaseDevice*);
1311 1313
1312 SkBaseDevice* init(SkBaseDevice*, InitFlags); 1314 SkBaseDevice* init(SkBaseDevice*, InitFlags);
1313 1315
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 1498
1497 class SkCanvasClipVisitor { 1499 class SkCanvasClipVisitor {
1498 public: 1500 public:
1499 virtual ~SkCanvasClipVisitor(); 1501 virtual ~SkCanvasClipVisitor();
1500 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1502 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1501 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1503 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1502 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1504 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1503 }; 1505 };
1504 1506
1505 #endif 1507 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmapDevice.h ('k') | include/core/SkPictureRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698