Home | History | Annotate | Download | only in samplecode

Lines Matching full:canvas

29     void drawEmpty(SkCanvas* canvas,
39 canvas->save();
40 canvas->clipRect(clip);
41 canvas->drawPath(path, paint);
42 canvas->restore();
45 virtual void onDrawContent(SkCanvas* canvas) {
72 canvas->drawText(title, strlen(title),
80 canvas->save();
81 canvas->translate(80 * SK_Scalar1, 0);
82 canvas->save();
86 canvas->restore();
87 canvas->translate(0, rect.height() + 50 * SK_Scalar1);
88 canvas->save();
90 canvas->translate(rect.width() + 100 * SK_Scalar1, 0);
97 this->drawEmpty(canvas, color, rect,
105 canvas->drawRect(rect, rectPaint);
114 canvas->drawText(label.c_str(), label.size(),
119 canvas->restore();
120 canvas->restore();