commit | 9fb420393ee1c24fc3282b7155985fa8fa7bcad4 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Fri May 13 09:23:38 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri May 13 09:23:38 2016 -0700 |
tree | 4112171b2d2ae213d239178af89e7ce8f55d1b4d | |
parent | 4ca5539df5c02fabac9ec1a8d0a0f58a9966347e [diff] [blame] |
Add bounds to GrShape GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1970003003 Review-Url: https://codereview.chromium.org/1970003003
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h index 81684e8..12093f4 100644 --- a/src/gpu/GrShape.h +++ b/src/gpu/GrShape.h
@@ -148,6 +148,12 @@ */ bool isEmpty() const { return Type::kEmpty == fType; } + /** Gets the bounds of the geometry without reflecting the shape's styling. */ + const SkRect& bounds() const; + + /** Gets the bounds of the geometry reflecting the shape's styling. */ + void styledBounds(SkRect* bounds) const; + /** * Is it known that the unstyled geometry has no unclosed contours. This means that it will * not have any caps if stroked (modulo the effect of any path effect).