Chromium Code Reviews| Index: include/core/SkClipStack.h |
| diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h |
| index fb0b278405b3e35cb545d8746b7fd3bcfba7491a..3cdc5adc277e1bd72c54db7884cbeef1cb1d9885 100644 |
| --- a/include/core/SkClipStack.h |
| +++ b/include/core/SkClipStack.h |
| @@ -365,6 +365,19 @@ public: |
| bool isWideOpen() const { return this->getTopmostGenID() == kWideOpenGenID; } |
| /** |
| + * This method quickly and conservatively determines whether the entire stack is equivalent to |
| + * intersection with a rrect given a bounds. |
| + * |
| + * @param bounds A bounds on the geometry that will be drawn through the clip. The clip only |
|
robertphillips
2016/08/26 14:00:43
instersection ?
bsalomon
2016/08/26 14:19:18
Done.
|
| + * need be equivalent to a instersection with a rrect within the bounds. |
| + * @param rrect If return is true rrect will contain the rrect equivalent to the stack. |
| + * @param aa If return is true aa will indicate whether the equivalent rrect clip is |
| + * antialiased. |
| + * @return true if the stack is equivalent to a single rrect intersect clip, false otherwise. |
| + */ |
| + bool isRRect(const SkRect& bounds, SkRRect* rrect, bool* aa) const; |
| + |
| + /** |
| * The generation ID has three reserved values to indicate special |
| * (potentially ignorable) cases |
| */ |