Index: third_party/WebKit/Source/platform/graphics/Path.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Path.h b/third_party/WebKit/Source/platform/graphics/Path.h |
index 5497706855a626a90bcde09b6cdcc7c693ff6043..c84b809add4bf32e6649cad6689a6f713b0ff946 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Path.h |
+++ b/third_party/WebKit/Source/platform/graphics/Path.h |
@@ -78,8 +78,13 @@ public: |
bool contains(const FloatPoint&) const; |
bool contains(const FloatPoint&, WindRule) const; |
bool strokeContains(const FloatPoint&, const StrokeData&) const; |
- FloatRect boundingRect() const; |
- FloatRect strokeBoundingRect(const StrokeData&) const; |
+ |
+ enum class BoundsType { |
+ Conservative, // Fast version, includes control points. |
+ Exact, // Tight, slower version. |
+ }; |
+ FloatRect boundingRect(BoundsType = BoundsType::Conservative) const; |
+ FloatRect strokeBoundingRect(const StrokeData&, BoundsType = BoundsType::Conservative) const; |
float length() const; |
FloatPoint pointAtLength(float length) const; |