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

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

Issue 1925693002: remove 'deprecated' region from SkDraw (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update dox Created 4 years, 7 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 | « bench/CoverageBench.cpp ('k') | include/core/SkDraw.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 14 matching lines...) Expand all
25 class SkClipStack; 25 class SkClipStack;
26 class SkData; 26 class SkData;
27 class SkDraw; 27 class SkDraw;
28 class SkDrawable; 28 class SkDrawable;
29 class SkDrawFilter; 29 class SkDrawFilter;
30 class SkImageFilter; 30 class SkImageFilter;
31 class SkMetaData; 31 class SkMetaData;
32 class SkPath; 32 class SkPath;
33 class SkPicture; 33 class SkPicture;
34 class SkPixmap; 34 class SkPixmap;
35 class SkRasterClip;
35 class SkRRect; 36 class SkRRect;
36 struct SkRSXform; 37 struct SkRSXform;
37 class SkSurface; 38 class SkSurface;
38 class SkSurface_Base; 39 class SkSurface_Base;
39 class SkTextBlob; 40 class SkTextBlob;
40 41
41 /** \class SkCanvas 42 /** \class SkCanvas
42 43
43 A Canvas encapsulates all of the state about drawing into a device (bitmap). 44 A Canvas encapsulates all of the state about drawing into a device (bitmap).
44 This includes a reference to the device itself, and a stack of matrix/clip 45 This includes a reference to the device itself, and a stack of matrix/clip
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 1253
1253 /** Return true if the iterator is done */ 1254 /** Return true if the iterator is done */
1254 bool done() const { return fDone; } 1255 bool done() const { return fDone; }
1255 /** Cycle to the next device */ 1256 /** Cycle to the next device */
1256 void next(); 1257 void next();
1257 1258
1258 // These reflect the current device in the iterator 1259 // These reflect the current device in the iterator
1259 1260
1260 SkBaseDevice* device() const; 1261 SkBaseDevice* device() const;
1261 const SkMatrix& matrix() const; 1262 const SkMatrix& matrix() const;
1262 const SkRegion& clip() const; 1263 const SkRasterClip& clip() const;
1263 const SkPaint& paint() const; 1264 const SkPaint& paint() const;
1264 int x() const; 1265 int x() const;
1265 int y() const; 1266 int y() const;
1266 1267
1267 private: 1268 private:
1268 // used to embed the SkDrawIter object directly in our instance, w/o 1269 // used to embed the SkDrawIter object directly in our instance, w/o
1269 // having to expose that class def to the public. There is an assert 1270 // having to expose that class def to the public. There is an assert
1270 // in our constructor to ensure that fStorage is large enough 1271 // in our constructor to ensure that fStorage is large enough
1271 // (though needs to be a compile-time-assert!). We use intptr_t to work 1272 // (though needs to be a compile-time-assert!). We use intptr_t to work
1272 // safely with 32 and 64 bit machines (to ensure the storage is enough) 1273 // safely with 32 and 64 bit machines (to ensure the storage is enough)
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 1579
1579 class SkCanvasClipVisitor { 1580 class SkCanvasClipVisitor {
1580 public: 1581 public:
1581 virtual ~SkCanvasClipVisitor(); 1582 virtual ~SkCanvasClipVisitor();
1582 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1583 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1583 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1584 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1584 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1585 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1585 }; 1586 };
1586 1587
1587 #endif 1588 #endif
OLDNEW
« no previous file with comments | « bench/CoverageBench.cpp ('k') | include/core/SkDraw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698