Lines Matching refs:canvas
28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { in onDraw() argument
39 canvas->save(); in onDraw()
40 canvas->translate(i*0.125f, i*40.0f); in onDraw()
41 DrawVertRects(canvas, white); in onDraw()
43 canvas->translate(40.0f, 0.0f); in onDraw()
44 DrawVertRects(canvas, green); in onDraw()
45 canvas->restore(); in onDraw()
47 canvas->save(); in onDraw()
48 canvas->translate(80.0f, i*40.0f + i*0.125f); in onDraw()
49 DrawHorizRects(canvas, white); in onDraw()
51 canvas->translate(40.0f, 0.0f); in onDraw()
52 DrawHorizRects(canvas, green); in onDraw()
53 canvas->restore(); in onDraw()
55 canvas->save(); in onDraw()
56 canvas->translate(160.0f + i*0.125f, in onDraw()
58 DrawSquares(canvas, white); in onDraw()
60 canvas->translate(40.0f, 0.0f); in onDraw()
61 DrawSquares(canvas, green); in onDraw()
62 canvas->restore(); in onDraw()
67 static void DrawVertRects(SkCanvas* canvas, const SkPaint& p) { in DrawVertRects() argument
79 canvas->drawRect(vertRects[j], p); in DrawVertRects()
83 static void DrawHorizRects(SkCanvas* canvas, const SkPaint& p) { in DrawHorizRects() argument
95 canvas->drawRect(horizRects[j], p); in DrawHorizRects()
99 static void DrawSquares(SkCanvas* canvas, const SkPaint& p) { in DrawSquares() argument
111 canvas->drawRect(squares[j], p); in DrawSquares()