Index: src/utils/SkCurveMeasure.cpp |
diff --git a/src/utils/SkCurveMeasure.cpp b/src/utils/SkCurveMeasure.cpp |
index 785bca7cfd15f5c118348249be2f1e0f879c3ea6..fc2aa84faa119558d5dce1c30f6bdd826c3eb890 100644 |
--- a/src/utils/SkCurveMeasure.cpp |
+++ b/src/utils/SkCurveMeasure.cpp |
@@ -234,10 +234,13 @@ SkScalar SkCurveMeasure::getTime(SkScalar targetLength) { |
return currentT; |
} |
-void SkCurveMeasure::getPosTan(SkScalar targetLength, SkPoint* pos, |
- SkVector* tan) { |
+void SkCurveMeasure::getPosTanTime(SkScalar targetLength, SkPoint* pos, |
+ SkVector* tan, SkScalar* time) { |
SkScalar t = getTime(targetLength); |
+ if (time) { |
+ *time = t; |
+ } |
if (pos) { |
// TODO(hstern) switch here on curve type. |
*pos = evaluateQuad(t); |