Lines Matching refs:canvas
26 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
35 canvas->save(); in onDraw()
37 canvas->save(); in onDraw()
38 canvas->clipRect(bounds); in onDraw()
39 canvas->translate(dx, dy); in onDraw()
40 canvas->drawPath(path, paint); in onDraw()
41 canvas->restore(); in onDraw()
43 canvas->translate(bounds.width(), 0); in onDraw()
45 canvas->restore(); in onDraw()
46 canvas->translate(0, bounds.height()); in onDraw()
66 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument
77 canvas->save(); in drawPath()
78 canvas->clipRect(clip); in drawPath()
79 canvas->drawPath(path, paint); in drawPath()
80 canvas->restore(); in drawPath()
83 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
132 canvas->drawText(title, strlen(title), in onDraw()
139 canvas->save(); in onDraw()
140 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
141 canvas->save(); in onDraw()
144 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
146 canvas->save(); in onDraw()
149 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
151 canvas->save(); in onDraw()
154 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
158 this->drawPath(path.fPath, canvas, color, rect, in onDraw()
167 canvas->drawRect(rect, rectPaint); in onDraw()
175 canvas->drawText(gStyles[style].fName, in onDraw()
179 canvas->drawText(gFills[fill].fName, in onDraw()
183 canvas->drawText(gCaps[cap].fName, in onDraw()
188 canvas->restore(); in onDraw()
190 canvas->restore(); in onDraw()
192 canvas->restore(); in onDraw()
193 canvas->restore(); in onDraw()
212 void drawPath(SkPath& path,SkCanvas* canvas,SkColor color, in drawPath() argument
223 canvas->save(); in drawPath()
224 canvas->clipRect(clip); in drawPath()
225 canvas->drawPath(path, paint); in drawPath()
226 canvas->restore(); in drawPath()
229 virtual void onDraw(SkCanvas* canvas) { in onDraw() argument
279 canvas->drawText(title, strlen(title), in onDraw()
286 canvas->save(); in onDraw()
287 canvas->translate(10 * SK_Scalar1, 30 * SK_Scalar1); in onDraw()
288 canvas->save(); in onDraw()
291 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0); in onDraw()
293 canvas->save(); in onDraw()
296 canvas->translate(0, rect.height() + 40 * SK_Scalar1); in onDraw()
298 canvas->save(); in onDraw()
301 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); in onDraw()
305 this->drawPath(path.fPath, canvas, color, rect, in onDraw()
314 canvas->drawRect(rect, rectPaint); in onDraw()
322 canvas->drawText(gStyles[style].fName, in onDraw()
326 canvas->drawText(gFills[fill].fName, in onDraw()
330 canvas->drawText(gCaps[cap].fName, in onDraw()
335 canvas->restore(); in onDraw()
337 canvas->restore(); in onDraw()
339 canvas->restore(); in onDraw()
340 canvas->restore(); in onDraw()