use points instead of verbs for interpolate
use points instead of verbs for interpolate
R=fmalita@chromium.org
Bug: skia:6782
Change-Id: I2dc7d806b0115374d973568bec2061a69d459573
Reviewed-on: https://skia-review.googlesource.com/112460
Commit-Queue: Cary Clark <caryclark@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 279615d..d57e95a 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -228,11 +228,11 @@
}
bool SkPath::interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const {
- int verbCount = fPathRef->countVerbs();
- if (verbCount != ending.fPathRef->countVerbs()) {
+ int pointCount = fPathRef->countPoints();
+ if (pointCount != ending.fPathRef->countPoints()) {
return false;
}
- if (!verbCount) {
+ if (!pointCount) {
return true;
}
out->reset();