diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-17 21:48:19 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-17 21:48:19 +0000 |
commit | 4e18c7a9bbef6ac949d535aa61dfe1462ebb4452 (patch) | |
tree | c3788efbf2dfba2e2144ae50a0fce2d5079cc82a /include | |
parent | 0c8ec2f658a206cbedd0d955167654fae85ad5fb (diff) |
Add RRect GM
https://codereview.appspot.com/6945063/
git-svn-id: http://skia.googlecode.com/svn/trunk@6866 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPath.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 9d7e6a13f6..3b5424fe8f 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -662,14 +662,20 @@ public: * @param radii Array of 8 scalars, 4 [X,Y] pairs for each corner * @param dir The direction to wind the rectangle's contour. Cannot be * kUnknown_Direction. + * Note: The radii here now go through the same constraint handling as the + * SkRRect radii (i.e., either radii at a corner being 0 implies a + * sqaure corner and oversized radii are proportionally scaled down). */ void addRoundRect(const SkRect& rect, const SkScalar radii[], Direction dir = kCW_Direction); /** - * Add a SkRRect contour to the path + * Add an SkRRect contour to the path + * @param rrect The rounded rect to add as a closed contour + * @param dir The winding direction for the new contour. Cannot be + * kUnknown_Direction. */ - void addRRect(const SkRRect&, Direction dir = kCW_Direction); + void addRRect(const SkRRect& rrect, Direction dir = kCW_Direction); /** * Add a new contour made of just lines. This is just a fast version of |