OLD | NEW |
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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 kSoft_ClipEdgeStyle | 1230 kSoft_ClipEdgeStyle |
1231 }; | 1231 }; |
1232 | 1232 |
1233 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); | 1233 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); |
1234 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle); | 1234 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle); |
1235 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); | 1235 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle); |
1236 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); | 1236 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); |
1237 | 1237 |
1238 virtual void onDiscard(); | 1238 virtual void onDiscard(); |
1239 | 1239 |
1240 // temporary, until we can migrate existing overrides in chrome | |
1241 virtual void onDrawPicture(const SkPicture*) {} | |
1242 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
); | 1240 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
); |
1243 | 1241 |
1244 // Returns the canvas to be used by DrawIter. Default implementation | 1242 // Returns the canvas to be used by DrawIter. Default implementation |
1245 // returns this. Subclasses that encapsulate an indirect canvas may | 1243 // returns this. Subclasses that encapsulate an indirect canvas may |
1246 // need to overload this method. The impl must keep track of this, as it | 1244 // need to overload this method. The impl must keep track of this, as it |
1247 // is not released or deleted by the caller. | 1245 // is not released or deleted by the caller. |
1248 virtual SkCanvas* canvasForDrawIter(); | 1246 virtual SkCanvas* canvasForDrawIter(); |
1249 | 1247 |
1250 // Clip rectangle bounds. Called internally by saveLayer. | 1248 // Clip rectangle bounds. Called internally by saveLayer. |
1251 // returns false if the entire rectangle is entirely clipped out | 1249 // returns false if the entire rectangle is entirely clipped out |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |