| Index: include/core/SkCanvas.h
|
| diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
|
| index 754fd167a3aae77a9af02f72a3ef79530fe7bb63..e639212e384b0f58dda00b3e8086cbe03a059688 100644
|
| --- a/include/core/SkCanvas.h
|
| +++ b/include/core/SkCanvas.h
|
| @@ -972,6 +972,15 @@ public:
|
|
|
| //////////////////////////////////////////////////////////////////////////
|
|
|
| + /**
|
| + * Return true if the current clip is empty (i.e. nothing will draw).
|
| + * Note: this is not always a free call, so it should not be used
|
| + * more often than necessary. However, once the canvas has computed this
|
| + * result, subsequent calls will be cheap (until the clip state changes,
|
| + * which can happen on any clip..() or restore() call.
|
| + */
|
| + bool isClipEmpty() const;
|
| +
|
| /** Return the current matrix on the canvas.
|
| This does not account for the translate in any of the devices.
|
| @return The current matrix on the canvas.
|
|
|