Lines Matching refs:canvas

50     void onDraw(SkCanvas* canvas) override {  in onDraw()  argument
56 canvas->drawPoint(40.0f, 40.0f, SK_ColorBLACK); in onDraw()
59 canvas->translate(50.0f, 50.0f); in onDraw()
60 drawTestCase(canvas, 1.0f); in onDraw()
62 canvas->translate(0.0f, 50.0f); in onDraw()
63 drawTestCase(canvas, 3.0f); in onDraw()
66 canvas->translate(0.0f, 100.0f); in onDraw()
67 canvas->save(); in onDraw()
68 canvas->scale(3.0f, 3.0f); in onDraw()
69 drawTestCase(canvas, 1.0f); in onDraw()
70 canvas->restore(); in onDraw()
73 canvas->translate(0.0f, 100.0f); in onDraw()
74 canvas->save(); in onDraw()
75 canvas->scale(3.0f, 6.0f); in onDraw()
76 drawTestCase(canvas, 1.0f); in onDraw()
77 canvas->restore(); in onDraw()
80 canvas->translate(0.0f, 80.0f); in onDraw()
81 canvas->save(); in onDraw()
82 canvas->scale(3.0f, 3.0f); in onDraw()
87 canvas->concat(skew); in onDraw()
88 drawTestCase(canvas, 1.0f); in onDraw()
89 canvas->restore(); in onDraw()
92 canvas->translate(0.0f, 80.0f); in onDraw()
93 canvas->save(); in onDraw()
101 canvas->concat(perspective); in onDraw()
102 drawTestCase(canvas, 1.0f); in onDraw()
103 canvas->restore(); in onDraw()
106 void drawTestCase(SkCanvas* canvas, SkScalar textScale) { in drawTestCase() argument
118 bool drawRef = !(canvas->getTotalMatrix().getType() & in drawTestCase()
130 canvas->drawRect(bounds, paint); in drawTestCase()
134 canvas->drawLine(0.0f, 0.0f, advance, 0.0f, paint); in drawTestCase()
141 canvas->drawText(kText, sizeof(kText) - 1, 0.0f, 0.0f, paint); in drawTestCase()
154 canvas->drawLine(w, 0.0f, w, 5.0f, paint); in drawTestCase()