diff options
author | 2013-05-17 12:50:27 +0000 | |
---|---|---|
committer | 2013-05-17 12:50:27 +0000 | |
commit | 83d1a68141830cbfa0d5fca6f9c9bccf9c978ad2 (patch) | |
tree | c20879508ce5a1c52790dbbc61b8dfbfc96e5e8e /include/core/SkPath.h | |
parent | 8be02fc2a72ae69a9142de68a483edf378aff1c8 (diff) |
Add special handling of rectori case for gpu
https://codereview.chromium.org/15080010/
git-svn-id: http://skia.googlecode.com/svn/trunk@9175 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r-- | include/core/SkPath.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 3b5424fe8f..7769b6f605 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -246,16 +246,6 @@ public: */ bool isRect(SkRect* rect) const; - /** Returns true if the path specifies a pair of nested rectangles. If so, and if - rect is not null, set rect[0] to the outer rectangle and rect[1] to the inner - rectangle. If the path does not specify a pair of nested rectangles, return - false and ignore rect. - - @param rect If not null, returns the path as a pair of nested rectangles - @return true if the path describes a pair of nested rectangles - */ - bool isNestedRects(SkRect rect[2]) const; - /** Return the number of points in the path */ int countPoints() const; @@ -586,6 +576,19 @@ public: */ bool isRect(bool* isClosed, Direction* direction) const; + /** Returns true if the path specifies a pair of nested rectangles. 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 + the path does not specify a pair of nested rectangles, return + false and ignore rect and dirs. + + @param rect If not null, returns the path as a pair of nested rectangles + @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; + /** * Add a closed rectangle contour to the path * @param rect The rectangle to add as a closed contour to the path |