Lines Matching refs:canvas
28 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
37 canvas->save(); in onDraw()
39 canvas->save(); in onDraw()
40 canvas->clipRect(bounds); in onDraw()
41 canvas->translate(dx, dy); in onDraw()
42 canvas->drawPath(path, paint); in onDraw()
43 canvas->restore(); in onDraw()
45 canvas->translate(bounds.width(), 0); in onDraw()
47 canvas->restore(); in onDraw()
48 canvas->translate(0, bounds.height()); in onDraw()
69 void onDraw(SkCanvas* canvas) override { in onDraw() argument
70 canvas->save(); in onDraw()
71 canvas->translate(-2, 120); in onDraw()
72 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw()
73 canvas->translate(0, 170); in onDraw()
74 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw()
75 canvas->translate(0, 170); in onDraw()
76 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw()
77 canvas->translate(0, 170); in onDraw()
78 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw()
79 canvas->restore(); in onDraw()
80 canvas->save(); in onDraw()
81 canvas->translate(20, -2); in onDraw()
82 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 80)); in onDraw()
83 canvas->translate(170, 0); in onDraw()
84 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 100, 80)); in onDraw()
85 canvas->translate(170, 0); in onDraw()
86 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 30)); in onDraw()
87 canvas->translate(170, 0); in onDraw()
88 drawOne(canvas, fFlipped, SkRect::MakeLTRB(0, 0, 150, 10)); in onDraw()
89 canvas->restore(); in onDraw()
92 void drawOne(SkCanvas* canvas, const SkPath& path, const SkRect& clip) { in drawOne() argument
95 canvas->drawRect(clip, framePaint); in drawOne()
96 canvas->drawPath(path, framePaint); in drawOne()
97 canvas->save(); in drawOne()
98 canvas->clipRect(clip); in drawOne()
99 canvas->drawPath(path, fillPaint); in drawOne()
100 canvas->restore(); in drawOne()
139 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument
150 canvas->save(); in drawPath()
151 canvas->clipRect(clip); in drawPath()
152 canvas->drawPath(path, paint); in drawPath()
153 canvas->restore(); in drawPath()
156 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
204 canvas->drawText(title, strlen(title), in onDraw()
211 canvas->save(); in onDraw()
212 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
213 canvas->save(); in onDraw()
216 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
218 canvas->save(); in onDraw()
221 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
223 canvas->save(); in onDraw()
226 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
230 this->drawPath(path.fPath, canvas, color, rect, in onDraw()
239 canvas->drawRect(rect, rectPaint); in onDraw()
246 canvas->drawText(gStyles[style].fName, in onDraw()
250 canvas->drawText(gFills[fill].fName, in onDraw()
254 canvas->drawText(gCaps[cap].fName, in onDraw()
259 canvas->restore(); in onDraw()
261 canvas->restore(); in onDraw()
263 canvas->restore(); in onDraw()
264 canvas->restore(); in onDraw()
283 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument
294 canvas->save(); in drawPath()
295 canvas->clipRect(clip); in drawPath()
296 canvas->drawPath(path, paint); in drawPath()
297 canvas->restore(); in drawPath()
300 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
349 canvas->drawText(title, strlen(title), in onDraw()
356 canvas->save(); in onDraw()
357 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
358 canvas->save(); in onDraw()
361 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
363 canvas->save(); in onDraw()
366 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
368 canvas->save(); in onDraw()
371 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
375 this->drawPath(path.fPath, canvas, color, rect, in onDraw()
384 canvas->drawRect(rect, rectPaint); in onDraw()
391 canvas->drawText(gStyles[style].fName, in onDraw()
395 canvas->drawText(gFills[fill].fName, in onDraw()
399 canvas->drawText(gCaps[cap].fName, in onDraw()
404 canvas->restore(); in onDraw()
406 canvas->restore(); in onDraw()
408 canvas->restore(); in onDraw()
409 canvas->restore(); in onDraw()