| Index: include/core/SkCanvas.h
|
| ===================================================================
|
| --- include/core/SkCanvas.h (revision 8821)
|
| +++ include/core/SkCanvas.h (working copy)
|
| @@ -381,6 +381,13 @@
|
| fAllowSoftClip = allow;
|
| }
|
|
|
| + /** EXPERIMENTAL -- only used for testing
|
| + Set to simplify clip stack using path ops.
|
| + */
|
| + void setAllowSimplifyClip(bool allow) {
|
| + fAllowSimplifyClip = allow;
|
| + }
|
| +
|
| /** Modify the current clip with the specified region. Note that unlike
|
| clipRect() and clipPath() which transform their arguments by the current
|
| matrix, clipRegion() assumes its argument is already in device
|
| @@ -1064,6 +1071,7 @@
|
| mutable SkRectCompareType fLocalBoundsCompareType;
|
| mutable bool fLocalBoundsCompareTypeDirty;
|
| bool fAllowSoftClip;
|
| + bool fAllowSimplifyClip;
|
|
|
| const SkRectCompareType& getLocalClipBoundsCompareType() const {
|
| if (fLocalBoundsCompareTypeDirty) {
|
| @@ -1074,6 +1082,7 @@
|
| }
|
| void computeLocalClipBoundsCompareType() const;
|
|
|
| +
|
| class AutoValidateClip : ::SkNoncopyable {
|
| public:
|
| explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) {
|
|
|