Lines Matching refs:canvas

20 static void drawTestCase(SkCanvas* canvas,
25 static void draw_gm(SkCanvas* canvas, in draw_gm() argument
29 canvas->drawPoint(40.0f, 40.0f, SK_ColorBLACK); in draw_gm()
32 canvas->translate(50.0f, 50.0f); in draw_gm()
33 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
35 canvas->translate(0.0f, 50.0f); in draw_gm()
36 drawTestCase(canvas, 3.0f, strokeWidth, strokeStyle); in draw_gm()
39 canvas->translate(0.0f, 100.0f); in draw_gm()
40 canvas->save(); in draw_gm()
41 canvas->scale(3.0f, 3.0f); in draw_gm()
42 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
43 canvas->restore(); in draw_gm()
46 canvas->translate(0.0f, 100.0f); in draw_gm()
47 canvas->save(); in draw_gm()
48 canvas->scale(3.0f, 6.0f); in draw_gm()
49 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
50 canvas->restore(); in draw_gm()
53 canvas->translate(0.0f, 80.0f); in draw_gm()
54 canvas->save(); in draw_gm()
55 canvas->scale(3.0f, 3.0f); in draw_gm()
60 canvas->concat(skew); in draw_gm()
61 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
62 canvas->restore(); in draw_gm()
65 canvas->translate(0.0f, 80.0f); in draw_gm()
66 canvas->save(); in draw_gm()
73 canvas->concat(perspective); in draw_gm()
74 drawTestCase(canvas, 1.0f, strokeWidth, strokeStyle); in draw_gm()
75 canvas->restore(); in draw_gm()
78 static void drawTestCase(SkCanvas* canvas, in drawTestCase() argument
93 bool drawRef = !(canvas->getTotalMatrix().getType() & in drawTestCase()
105 canvas->drawRect(bounds, paint); in drawTestCase()
109 canvas->drawLine(0.0f, 0.0f, advance, 0.0f, paint); in drawTestCase()
116 canvas->drawText(kText, sizeof(kText) - 1, 0.0f, 0.0f, paint); in drawTestCase()
129 canvas->drawLine(w, 0.0f, w, 5.0f, paint); in drawTestCase()