diff options
author | caryclark <caryclark@google.com> | 2015-04-08 08:34:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-08 08:34:15 -0700 |
commit | 95bc5f349561fef2d6fbae71adb08cf5c2eec0c9 (patch) | |
tree | 997d651f63e2aba803e7494852b72a9042a7eba6 /include | |
parent | 929f63feccf500283571077586dbbd69c206bf13 (diff) |
change isNestedRect to isNestedFillRect
R=reed@google.com, bsalomon@google.com
Let isNested(Fill)Rect return true if drawn path describes filled
rectangles.
Review URL: https://codereview.chromium.org/1073473002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPath.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 7444cc97ca..b5b95e15e7 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -581,7 +581,8 @@ public: */ bool isRect(SkRect* rect, bool* isClosed = NULL, Direction* direction = NULL) const; - /** Returns true if the path specifies a pair of nested rectangles. If so, and if + /** Returns true if the path specifies a pair of nested rectangles, or would draw a + pair of nested rectangles when filled. If so, and if rect is not null, set rect[0] to the outer rectangle and rect[1] to the inner rectangle. If so, and dirs is not null, set dirs[0] to the direction of the outer rectangle and dirs[1] to the direction of the inner rectangle. If @@ -592,7 +593,7 @@ public: @param dirs If not null, returns the direction of the rects @return true if the path describes a pair of nested rectangles */ - bool isNestedRects(SkRect rect[2], Direction dirs[2] = NULL) const; + bool isNestedFillRects(SkRect rect[2], Direction dirs[2] = NULL) const; /** * Add a closed rectangle contour to the path |