Home | History | Annotate | Download | only in tests

Lines Matching defs:ts

39 static bool add_simple_ts(const SkDCubic& cubic, double precision, SkTArray<double, true>* ts) {
45 ts->push_back(0.5);
52 SkTArray<double, true>* ts) {
58 ts->push_back(newT);
63 static void toQuadraticTs(const SkDCubic* cubic, double precision, SkTArray<double, true>* ts) {
109 if (inflections == 0 && add_simple_ts(*cubic, precision, ts)) {
114 addTs(pair.first(), precision, 0, inflectT[0], ts);
115 addTs(pair.second(), precision, inflectT[0], 1, ts);
120 addTs(part, precision, 0, inflectT[0], ts);
124 addTs(part, precision, inflectT[idx], inflectT[idx + 1], ts);
127 addTs(part, precision, inflectT[last], 1, ts);
130 addTs(*cubic, precision, 0, 1, ts);
134 SkTArray<double, true> ts;
135 toQuadraticTs(&cubic, precision, &ts);
136 if (ts.count() <= 0) {
142 for (int i1 = 0; i1 <= ts.count(); ++i1) {
143 const double tEnd = i1 < ts.count() ? ts[i1] : 1;