OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
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 SkRasterClip_DEFINED | 8 #ifndef SkRasterClip_DEFINED |
9 #define SkRasterClip_DEFINED | 9 #define SkRasterClip_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 bool isComplex() const; | 36 bool isComplex() const; |
37 const SkIRect& getBounds() const; | 37 const SkIRect& getBounds() const; |
38 | 38 |
39 bool setEmpty(); | 39 bool setEmpty(); |
40 bool setRect(const SkIRect&); | 40 bool setRect(const SkIRect&); |
41 | 41 |
42 bool setPath(const SkPath& path, const SkRegion& clip, bool doAA); | 42 bool setPath(const SkPath& path, const SkRegion& clip, bool doAA); |
43 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA); | 43 bool setPath(const SkPath& path, const SkIRect& clip, bool doAA); |
44 bool setPath(const SkPath& path, const SkRasterClip&, bool doAA); | |
45 | 44 |
46 bool op(const SkIRect&, SkRegion::Op); | 45 bool op(const SkIRect&, SkRegion::Op); |
47 bool op(const SkRegion&, SkRegion::Op); | 46 bool op(const SkRegion&, SkRegion::Op); |
48 bool op(const SkRasterClip&, SkRegion::Op); | 47 bool op(const SkRasterClip&, SkRegion::Op); |
49 bool op(const SkRect&, SkRegion::Op, bool doAA); | 48 bool op(const SkRect&, SkRegion::Op, bool doAA); |
50 | 49 |
51 void translate(int dx, int dy, SkRasterClip* dst) const; | 50 void translate(int dx, int dy, SkRasterClip* dst) const; |
52 void translate(int dx, int dy) { | 51 void translate(int dx, int dy) { |
53 this->translate(dx, dy, this); | 52 this->translate(dx, dy, this); |
54 } | 53 } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 153 |
155 private: | 154 private: |
156 SkRegion fBWRgn; | 155 SkRegion fBWRgn; |
157 SkAAClipBlitter fAABlitter; | 156 SkAAClipBlitter fAABlitter; |
158 // what we return | 157 // what we return |
159 const SkRegion* fClipRgn; | 158 const SkRegion* fClipRgn; |
160 SkBlitter* fBlitter; | 159 SkBlitter* fBlitter; |
161 }; | 160 }; |
162 | 161 |
163 #endif | 162 #endif |
OLD | NEW |