migrating SkTDArray towards std::vector api
fix for https://skia-review.googlesource.com/c/skia/+/146140
Change from original was to include <initializer_list>
Bug: skia:
Change-Id: Ie36426fcf7ce778a95e2b656ce80a9a394a8307c
Reviewed-on: https://skia-review.googlesource.com/146160
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index 99ac492..05d2ca8 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -3077,7 +3077,7 @@
}
SkVector tangent;
SkEvalCubicAt(c, t, nullptr, &tangent, nullptr);
- tangents->push(tangent);
+ tangents->push_back(tangent);
}
}
@@ -3104,7 +3104,7 @@
continue;
}
SkConic conic(pts, w);
- tangents->push(conic.evalTangentAt(t));
+ tangents->push_back(conic.evalTangentAt(t));
}
}
@@ -3130,7 +3130,7 @@
if (!SkScalarNearlyEqual(x, xt)) {
continue;
}
- tangents->push(SkEvalQuadTangentAt(pts, t));
+ tangents->push_back(SkEvalQuadTangentAt(pts, t));
}
}
@@ -3153,7 +3153,7 @@
}
SkVector v;
v.set(dx, dy);
- tangents->push(v);
+ tangents->push_back(v);
}
static bool contains_inclusive(const SkRect& r, SkScalar x, SkScalar y) {