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 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 /** | 1609 /** |
1610 * Returns true if the paint's imagefilter can be invoked directly, without
needed a layer. | 1610 * Returns true if the paint's imagefilter can be invoked directly, without
needed a layer. |
1611 */ | 1611 */ |
1612 bool canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPai
nt&); | 1612 bool canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPai
nt&); |
1613 | 1613 |
1614 | 1614 |
1615 /** | 1615 /** |
1616 * Keep track of the device clip bounds and if the matrix is scale-translat
e. This allows | 1616 * Keep track of the device clip bounds and if the matrix is scale-translat
e. This allows |
1617 * us to do a fast quick reject in the common case. | 1617 * us to do a fast quick reject in the common case. |
1618 */ | 1618 */ |
1619 bool fConservativeIsScaleTranslate; | 1619 bool fIsScaleTranslate; |
1620 SkRect fDeviceClipBounds; | 1620 SkRect fDeviceClipBounds; |
1621 | 1621 |
1622 bool fAllowSoftClip; | 1622 bool fAllowSoftClip; |
1623 bool fAllowSimplifyClip; | 1623 bool fAllowSimplifyClip; |
1624 const bool fConservativeRasterClip; | 1624 const bool fConservativeRasterClip; |
1625 | 1625 |
1626 class AutoValidateClip : ::SkNoncopyable { | 1626 class AutoValidateClip : ::SkNoncopyable { |
1627 public: | 1627 public: |
1628 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { | 1628 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { |
1629 fCanvas->validateClip(); | 1629 fCanvas->validateClip(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 | 1682 |
1683 class SkCanvasClipVisitor { | 1683 class SkCanvasClipVisitor { |
1684 public: | 1684 public: |
1685 virtual ~SkCanvasClipVisitor(); | 1685 virtual ~SkCanvasClipVisitor(); |
1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
1689 }; | 1689 }; |
1690 | 1690 |
1691 #endif | 1691 #endif |
OLD | NEW |