| 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 30 matching lines...) Expand all Loading... |
| 41 const SkIRect& getBounds() const; | 41 const SkIRect& getBounds() const; |
| 42 | 42 |
| 43 bool setEmpty(); | 43 bool setEmpty(); |
| 44 bool setRect(const SkIRect&); | 44 bool setRect(const SkIRect&); |
| 45 | 45 |
| 46 bool op(const SkIRect&, SkRegion::Op); | 46 bool op(const SkIRect&, SkRegion::Op); |
| 47 bool op(const SkRegion&, SkRegion::Op); | 47 bool op(const SkRegion&, SkRegion::Op); |
| 48 bool op(const SkRect&, const SkIRect&, SkRegion::Op, bool doAA); | 48 bool op(const SkRect&, const SkIRect&, SkRegion::Op, bool doAA); |
| 49 bool op(const SkRRect&, const SkIRect&, SkRegion::Op, bool doAA); | 49 bool op(const SkRRect&, const SkIRect&, SkRegion::Op, bool doAA); |
| 50 bool op(const SkPath&, const SkIRect&, SkRegion::Op, bool doAA); | 50 bool op(const SkPath&, const SkIRect&, SkRegion::Op, bool doAA); |
| 51 | 51 |
| 52 void translate(int dx, int dy, SkRasterClip* dst) const; | 52 void translate(int dx, int dy, SkRasterClip* dst) const; |
| 53 void translate(int dx, int dy) { | 53 void translate(int dx, int dy) { |
| 54 this->translate(dx, dy, this); | 54 this->translate(dx, dy, this); |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool quickContains(const SkIRect& rect) const; | 57 bool quickContains(const SkIRect& rect) const; |
| 58 bool quickContains(int left, int top, int right, int bottom) const { | 58 bool quickContains(int left, int top, int right, int bottom) const { |
| 59 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); | 59 return quickContains(SkIRect::MakeLTRB(left, top, right, bottom)); |
| 60 } | 60 } |
| 61 | 61 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 private: | 170 private: |
| 171 SkRegion fBWRgn; | 171 SkRegion fBWRgn; |
| 172 SkAAClipBlitter fAABlitter; | 172 SkAAClipBlitter fAABlitter; |
| 173 // what we return | 173 // what we return |
| 174 const SkRegion* fClipRgn; | 174 const SkRegion* fClipRgn; |
| 175 SkBlitter* fBlitter; | 175 SkBlitter* fBlitter; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif | 178 #endif |
| OLD | NEW |