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 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1421 // only for canvasutils | 1421 // only for canvasutils |
1422 const SkRegion& internal_private_getTotalClip() const; | 1422 const SkRegion& internal_private_getTotalClip() const; |
1423 | 1423 |
1424 /* | 1424 /* |
1425 * Returns true if drawing the specified rect (or all if it is null) with t he specified | 1425 * Returns true if drawing the specified rect (or all if it is null) with t he specified |
1426 * paint (or default if null) would overwrite the entire root device of the canvas | 1426 * paint (or default if null) would overwrite the entire root device of the canvas |
1427 * (i.e. the canvas' surface if it had one). | 1427 * (i.e. the canvas' surface if it had one). |
1428 */ | 1428 */ |
1429 bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*, ShaderOverri deOpacity) const; | 1429 bool wouldOverwriteEntireSurface(const SkRect*, const SkPaint*, ShaderOverri deOpacity) const; |
1430 | 1430 |
1431 /** | |
1432 * Returns true if the paint's imagefilter can be invoked directly, without needed a temp | |
1433 * layer. This method calls through to the corresponding method on Device, but it also | |
1434 * checks the clip, as currently the filter can only be invoked directly if the result will | |
1435 * be clipped to the bounds of the bitmap (or smaller). | |
1436 */ | |
1437 bool canCallFilterSprite(const SkRect& bounds, const SkPaint&); | |
Stephen White
2015/12/04 19:22:51
I'm wondering why this is defined on SkCanvas. Are
Stephen White
2015/12/04 19:23:35
(Ignore this comment.. I see now it's private.)
| |
1431 | 1438 |
1432 /* These maintain a cache of the clip bounds in local coordinates, | 1439 /* These maintain a cache of the clip bounds in local coordinates, |
1433 (converted to 2s-compliment if floats are slow). | 1440 (converted to 2s-compliment if floats are slow). |
1434 */ | 1441 */ |
1435 mutable SkRect fCachedLocalClipBounds; | 1442 mutable SkRect fCachedLocalClipBounds; |
1436 mutable bool fCachedLocalClipBoundsDirty; | 1443 mutable bool fCachedLocalClipBoundsDirty; |
1437 bool fAllowSoftClip; | 1444 bool fAllowSoftClip; |
1438 bool fAllowSimplifyClip; | 1445 bool fAllowSimplifyClip; |
1439 const bool fConservativeRasterClip; | 1446 const bool fConservativeRasterClip; |
1440 | 1447 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1561 | 1568 |
1562 class SkCanvasClipVisitor { | 1569 class SkCanvasClipVisitor { |
1563 public: | 1570 public: |
1564 virtual ~SkCanvasClipVisitor(); | 1571 virtual ~SkCanvasClipVisitor(); |
1565 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1572 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1566 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1573 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1567 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1574 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1568 }; | 1575 }; |
1569 | 1576 |
1570 #endif | 1577 #endif |
OLD | NEW |