Index: include/core/SkPathRef.h |
diff --git a/include/core/SkPathRef.h b/include/core/SkPathRef.h |
index ae8945de0880f5182bed21f2560cea0040ca70b5..e7cc31cff43ef6d2947c822626a0709a034c6077 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() |