18 const char* onGetName()
override {
return fName.
c_str(); }
20 void onDraw(
int loops,
SkCanvas*)
final {
23 int iters = 50000 * loops;
24 for (
int i = 0;
i < iters; ++
i) {
34 std::array<SkPoint,4> fPts;
DEF_BENCH(return new FindCubicConvex180ChopsBench({{{0, 0}, {100, 0}, {50, 100}, {100, 100}}}, "_inflect1");) DEF_BENCH(return new FindCubicConvex180ChopsBench(
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
FindCubicConvex180ChopsBench(const std::array< SkPoint, 4 > &pts, const char *suffix)
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
int FindCubicConvex180Chops(const SkPoint pts[], float T[2], bool *areCusps)