Lines Matching refs:canvas
14 void draw_thin_stroked_rect(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_thin_stroked_rect() argument
24 canvas->drawPath(path, paint); in draw_thin_stroked_rect()
27 void draw_thin_right_angle(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_thin_right_angle() argument
35 canvas->drawPath(path, paint); in draw_thin_right_angle()
39 void draw_golf_club(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_golf_club() argument
47 canvas->drawPath(path, paint); in draw_golf_club()
52 void draw_barbell(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_barbell() argument
63 canvas->drawPath(path, paint); in draw_barbell()
68 void draw_thin_rect_and_triangle(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_thin_rect_and_triangle() argument
77 canvas->drawPath(path, paint); in draw_thin_rect_and_triangle()
83 void draw_hipster_pants(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_hipster_pants() argument
90 canvas->drawPath(path, paint); in draw_hipster_pants()
95 void draw_skinny_snake(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_skinny_snake() argument
105 canvas->drawPath(path, paint); in draw_skinny_snake()
109 void draw_pointy_golf_club(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_pointy_golf_club() argument
116 canvas->drawPath(path, paint); in draw_pointy_golf_club()
119 void draw_small_i(SkCanvas* canvas, const SkPaint& paint, SkScalar width) { in draw_small_i() argument
129 canvas->drawPath(path, paint); in draw_small_i()
136 DEF_SIMPLE_GM(thinconcavepaths, canvas, 550, 400) {
142 canvas->save();
144 draw_thin_stroked_rect(canvas, paint, width);
145 canvas->translate(0, 25);
147 canvas->restore();
148 canvas->translate(50, 0);
149 canvas->save();
151 draw_thin_right_angle(canvas, paint, width);
152 canvas->translate(0, 25);
154 canvas->restore();
155 canvas->translate(40, 0);
156 canvas->save();
158 draw_golf_club(canvas, paint, width);
159 canvas->translate(0, 30);
161 canvas->restore();
162 canvas->translate(70, 0);
163 canvas->save();
165 draw_thin_rect_and_triangle(canvas, paint, width);
166 canvas->translate(0, 30);
168 canvas->restore();
169 canvas->translate(30, 0);
170 canvas->save();
173 draw_barbell(canvas, paint, width);
174 canvas->translate(0, 30);
176 canvas->restore();
177 canvas->translate(80, 0);
178 canvas->save();
180 draw_hipster_pants(canvas, paint, width);
181 canvas->translate(0, 30);
183 canvas->restore();
184 canvas->translate(100, 0);
185 canvas->save();
187 draw_skinny_snake(canvas, paint, width);
188 canvas->translate(0, 30);
190 canvas->restore();
191 canvas->translate(30, 0);
192 canvas->save();
194 draw_pointy_golf_club(canvas, paint, width);
195 canvas->translate(0, 30);
197 canvas->restore();
198 canvas->translate(100, 0);
199 canvas->save();
201 draw_small_i(canvas, paint, width);
202 canvas->translate(0, 30);
204 canvas->restore();
205 canvas->translate(100, 0);