Lines Matching refs:canvas
25 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], in doDraw() argument
35 canvas->save(); in doDraw()
37 canvas->concat(matrix); in doDraw()
42 canvas->drawRectCoords(0, 0, D, D, *paint); in doDraw()
43 canvas->drawLine(0, 0, D, D, *paint); in doDraw()
44 canvas->drawLine(0, D, D, 0, *paint); in doDraw()
54 canvas->drawText(str.c_str(), str.size(), x, y, *paint); in doDraw()
56 canvas->restore(); in doDraw()
59 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
66 canvas->save(); in onDraw()
67 canvas->translate(SkIntToScalar(10), SkIntToScalar(10)); in onDraw()
71 doDraw(canvas, &paint, src1, dst1, 1); in onDraw()
72 canvas->restore(); in onDraw()
74 canvas->save(); in onDraw()
75 canvas->translate(SkIntToScalar(160), SkIntToScalar(10)); in onDraw()
79 doDraw(canvas, &paint, src2, dst2, 2); in onDraw()
80 canvas->restore(); in onDraw()
82 canvas->save(); in onDraw()
83 canvas->translate(SkIntToScalar(10), SkIntToScalar(110)); in onDraw()
87 doDraw(canvas, &paint, src3, dst3, 3); in onDraw()
88 canvas->restore(); in onDraw()
90 canvas->save(); in onDraw()
91 canvas->translate(SkIntToScalar(160), SkIntToScalar(110)); in onDraw()
95 doDraw(canvas, &paint, src4, dst4, 4); in onDraw()
96 canvas->restore(); in onDraw()