diff options
author | robertphillips <robertphillips@google.com> | 2015-01-05 12:22:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-05 12:22:14 -0800 |
commit | 2b6ab61e2229bd76291b3d16ad7e386b3075eddb (patch) | |
tree | 54e4953e8b8a5501361952353b04ed16616f9ce8 /include/core | |
parent | 5a2315e750f65a8b61faa509a65840c622f04424 (diff) |
Remove SkPath::asRect
AFAICT the asRect entry point is not needed.
Greg: GPU
Reed: API
Cary: Path
Review URL: https://codereview.chromium.org/833193002
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPath.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h index 204a76e5b5..f895f7fe24 100644 --- a/include/core/SkPath.h +++ b/include/core/SkPath.h @@ -564,25 +564,6 @@ public: return computedDir == dir; } - enum PathAsRect { - /** The path can not draw the same as its bounds. */ - kNone_PathAsRect, - /** The path draws the same as its bounds when filled. */ - kFill_PathAsRect, - /** The path draws the same as its bounds when stroked or filled. */ - kStroke_PathAsRect, - }; - - /** Returns kFill_PathAsRect or kStroke_PathAsRect if drawing the path (either filled or - stroked) will be equivalent to filling/stroking the path's bounding rect. If - either is true, and direction is not null, sets the direction of the contour. If the - path is not drawn equivalent to a rect, returns kNone_PathAsRect and ignores direction. - - @param direction If not null, set to the contour's direction when it is drawn as a rect - @return the path's PathAsRect type - */ - PathAsRect asRect(Direction* direction = NULL) const; - /** * Returns true if the path specifies a rectangle. * |