Chromium Code Reviews| Index: include/core/SkPath.h |
| =================================================================== |
| --- include/core/SkPath.h (revision 9159) |
| +++ include/core/SkPath.h (working copy) |
| @@ -246,16 +246,6 @@ |
| */ |
| 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 @@ |
| */ |
| 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 = NULL) const; |
|
reed1
2013/05/16 14:13:20
Direction dirs[2] = NULL
robertphillips
2013/05/16 15:33:55
Done.
|
| + |
| /** |
| * Add a closed rectangle contour to the path |
| * @param rect The rectangle to add as a closed contour to the path |