diff options
Diffstat (limited to 'src/gpu/GrShape.h')
-rw-r--r-- | src/gpu/GrShape.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h index 81684e8e2f..12093f4143 100644 --- a/src/gpu/GrShape.h +++ b/src/gpu/GrShape.h @@ -148,6 +148,12 @@ public: */ 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). |