• Home
  • Raw
  • Download

Lines Matching refs:canvas

14 static void test_clearonlayers(SkCanvas* canvas) {  in test_clearonlayers()  argument
15 SkCanvas& c = *canvas; in test_clearonlayers()
38 static void test_strokerect(SkCanvas* canvas, const SkRect& r) { in test_strokerect() argument
45 canvas->drawRect(r, p); in test_strokerect()
52 canvas->drawPath(path, p); in test_strokerect()
55 static void test_strokerect(SkCanvas* canvas) { in test_strokerect() argument
56 canvas->drawColor(SK_ColorWHITE); in test_strokerect()
62 test_strokerect(canvas, r); in test_strokerect()
63 canvas->translate(0, 20); in test_strokerect()
67 test_strokerect(canvas, r); in test_strokerect()
68 canvas->translate(0, 20); in test_strokerect()
72 test_strokerect(canvas, r); in test_strokerect()
73 canvas->translate(0, 20); in test_strokerect()
77 test_strokerect(canvas, r); in test_strokerect()
78 canvas->translate(0, 20); in test_strokerect()
82 test_strokerect(canvas, r); in test_strokerect()
83 canvas->translate(0, 20); in test_strokerect()
106 void draw(SkCanvas* canvas) { in draw() argument
107 int sc = canvas->save(); in draw()
108 this->onDraw(canvas); in draw()
109 canvas->restoreToCount(sc); in draw()
112 this->drawSelection(canvas); in draw()
116 void drawSelection(SkCanvas* canvas) { in drawSelection() argument
117 int sc = canvas->save(); in drawSelection()
118 this->onDrawSelection(canvas); in drawSelection()
119 canvas->restoreToCount(sc); in drawSelection()
140 virtual void onDrawSelection(SkCanvas* canvas) { in onDrawSelection() argument
149 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, pts, paint); in onDrawSelection()
181 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
184 canvas->drawRect(fRect, fPaint); in onDraw()
187 canvas->drawOval(fRect, fPaint); in onDraw()
197 canvas->drawRoundRect(fRect, rx, ry, fPaint); in onDraw()
206 canvas->drawPath(path, fPaint); in onDraw()
305 void drawBG(SkCanvas* canvas) { in drawBG() argument
306 canvas->drawColor(0xFFDDDDDD); in drawBG()
310 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
311 this->drawBG(canvas); in onDraw()
312 test_clearonlayers(canvas); return; in onDraw()
316 (*iter)->draw(canvas); in onDraw()
319 fDraw->draw(canvas); in onDraw()