Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: src/gpu/GrShape.h

Issue 1970003003: Add bounds to GrShape (Closed) Base URL: https://chromium.googlesource.com/skia.git@grshapeisempty
Patch Set: minor Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrShape.h
diff --git a/src/gpu/GrShape.h b/src/gpu/GrShape.h
index 81684e8e2f5cf0c9e3eebff2be3d42be8e0d79c9..3930c6667d2c4852b45d4581a95605b386011bbc 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. */
robertphillips 2016/05/12 17:18:47 Can this be a const method ?
bsalomon 2016/05/12 18:37:57 Done.
+ const SkRect& bounds();
+
+ /** Gets the bounds of the geometry reflecting the shape's styling. */
robertphillips 2016/05/12 17:18:47 This too ?
bsalomon 2016/05/12 18:37:57 Done.
+ void styledBounds(SkRect* bounds);
+
/**
* 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).
« no previous file with comments | « include/core/SkRect.h ('k') | src/gpu/GrShape.cpp » ('j') | src/gpu/GrShape.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698