Lines Matching refs:canvas
16 SkCanvas canvas(*bm);
23 canvas.drawPath(path, paint);
26 canvas.drawRect(SkRect::MakeLTRB(0.5f, 0.5f, 59.5f, 59.5f), paint);
37 DEF_SIMPLE_GM(bitmaprecttest, canvas, 320, 240) {
41 canvas->drawBitmap(bm, 150, 45, nullptr);
44 canvas->save();
45 canvas->scale(scale, scale);
46 canvas->drawBitmapRect(bm, SkRect::MakeXYWH(100, 100, 128, 128), nullptr);
47 canvas->restore();
49 canvas->scale(-1, 1);
50 canvas->drawBitmap(bm, -310, 45, nullptr);