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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 | 1448 |
1449 virtual void onDiscard(); | 1449 virtual void onDiscard(); |
1450 | 1450 |
1451 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
); | 1451 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
); |
1452 | 1452 |
1453 #ifdef SK_EXPERIMENTAL_SHADOWING | 1453 #ifdef SK_EXPERIMENTAL_SHADOWING |
1454 virtual void onDrawShadowedPicture(const SkPicture*, | 1454 virtual void onDrawShadowedPicture(const SkPicture*, |
1455 const SkMatrix*, | 1455 const SkMatrix*, |
1456 const SkPaint*); | 1456 const SkPaint*); |
1457 #endif | 1457 #endif |
1458 | 1458 |
1459 // Returns the canvas to be used by DrawIter. Default implementation | 1459 // Returns the canvas to be used by DrawIter. Default implementation |
1460 // returns this. Subclasses that encapsulate an indirect canvas may | 1460 // returns this. Subclasses that encapsulate an indirect canvas may |
1461 // need to overload this method. The impl must keep track of this, as it | 1461 // need to overload this method. The impl must keep track of this, as it |
1462 // is not released or deleted by the caller. | 1462 // is not released or deleted by the caller. |
1463 virtual SkCanvas* canvasForDrawIter(); | 1463 virtual SkCanvas* canvasForDrawIter(); |
1464 | 1464 |
1465 // Clip rectangle bounds. Called internally by saveLayer. | 1465 // Clip rectangle bounds. Called internally by saveLayer. |
1466 // returns false if the entire rectangle is entirely clipped out | 1466 // returns false if the entire rectangle is entirely clipped out |
1467 // If non-NULL, The imageFilter parameter will be used to expand the clip | 1467 // If non-NULL, The imageFilter parameter will be used to expand the clip |
1468 // and offscreen bounds for any margin required by the filter DAG. | 1468 // and offscreen bounds for any margin required by the filter DAG. |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 | 1674 |
1675 class SkCanvasClipVisitor { | 1675 class SkCanvasClipVisitor { |
1676 public: | 1676 public: |
1677 virtual ~SkCanvasClipVisitor(); | 1677 virtual ~SkCanvasClipVisitor(); |
1678 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1678 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1679 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1679 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1680 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1680 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1681 }; | 1681 }; |
1682 | 1682 |
1683 #endif | 1683 #endif |
OLD | NEW |