aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPathRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPathRef.h')
-rw-r--r--include/core/SkPathRef.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h
index ae8945de08..e7cc31cff4 100644
--- a/include/core/SkPathRef.h
+++ b/include/core/SkPathRef.h
@@ -278,13 +278,7 @@ private:
// Return true if the computed bounds are finite.
static bool ComputePtBounds(SkRect* bounds, const SkPathRef& ref) {
- int count = ref.countPoints();
- if (count <= 1) { // we ignore just 1 point (moveto)
- bounds->setEmpty();
- return count ? ref.points()->isFinite() : true;
- } else {
- return bounds->setBoundsCheck(ref.points(), count);
- }
+ return bounds->setBoundsCheck(ref.points(), ref.countPoints());
}
// called, if dirty, by getBounds()