Lines Matching refs:canvas
16 static void textStrokePath(SkCanvas* canvas) {
21 canvas->save();
22 canvas->scale(SkIntToScalar(250),SkIntToScalar(250));
35 canvas->drawPath(path, paint);
43 canvas->drawTextOnPathHV(text, len, path, 0,
45 canvas->restore();
48 static void textPathMatrix(SkCanvas* canvas) {
60 canvas->drawPath(path, paint);
71 canvas->drawTextOnPath(text, len, path, nullptr, paint);
76 canvas->drawTextOnPath(text, len, path, &matrix, paint);
80 canvas->drawTextOnPath(text, len, path, &matrix, paint);
85 canvas->drawTextOnPath(text, len, path, &matrix, paint);
113 void onDrawContent(SkCanvas* canvas) override {
125 canvas->drawTextOnPathHV(text, len, fPath,
129 canvas->drawTextOnPathHV(text, len, fPath,
133 canvas->drawTextOnPathHV(text, len, fPath,
139 canvas->drawPath(fPath, paint);
141 canvas->translate(SkIntToScalar(275), 0);
142 textStrokePath(canvas);
144 canvas->translate(SkIntToScalar(-275), SkIntToScalar(250));
145 textPathMatrix(canvas);