Commit 59923803 authored by reed's avatar reed Committed by Commit bot

use SkPath::computeTightBounds

BUG=

Review-Url: https://codereview.chromium.org/2675793003
Cr-Commit-Position: refs/heads/master@{#448090}
parent 240a07e6
......@@ -109,14 +109,9 @@ bool Path::strokeContains(const FloatPoint& point,
namespace {
FloatRect pathBounds(const SkPath& path, Path::BoundsType boundsType) {
SkRect bounds;
if (boundsType == Path::BoundsType::Conservative ||
!TightBounds(path, &bounds)) {
return path.getBounds();
}
DCHECK_EQ(boundsType, Path::BoundsType::Exact);
return bounds;
return boundsType == Path::BoundsType::Conservative
? path.getBounds()
: path.computeTightBounds();
}
} // anonymous ns
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment