Lines Matching refs:canvas

20     SkCanvas* canvas = surface->getCanvas();  in make_image()  local
22 sk_tool_utils::draw_checkerboard(canvas, SK_ColorRED, SK_ColorGREEN, w/10); in make_image()
83 void drawRow(SkCanvas* canvas, SkFilterQuality filterQ) { in drawRow() argument
102 canvas->save(); in drawRow()
104 canvas->save(); in drawRow()
105 canvas->concat(fPerspMatrix); in drawRow()
106 canvas->drawBitmapRect(fBitmap, r, &filterPaint); in drawRow()
107 canvas->restore(); in drawRow()
109 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
110 canvas->save(); in drawRow()
111 canvas->concat(fPerspMatrix); in drawRow()
112 canvas->drawImage(fImage, 0, 0, &filterPaint); in drawRow()
113 canvas->restore(); in drawRow()
115 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
116 canvas->save(); in drawRow()
117 canvas->concat(fPerspMatrix); in drawRow()
118 canvas->drawRect(r, pathPaint); in drawRow()
119 canvas->restore(); in drawRow()
121 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
122 canvas->save(); in drawRow()
123 canvas->concat(fPerspMatrix); in drawRow()
124 canvas->drawPath(fPath, pathPaint); in drawRow()
125 canvas->restore(); in drawRow()
127 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
128 canvas->save(); in drawRow()
129 canvas->concat(fPerspMatrix); in drawRow()
130 canvas->drawRect(r, gradPaint1); in drawRow()
131 canvas->restore(); in drawRow()
133 canvas->translate(SkIntToScalar(kCellSize), 0); in drawRow()
134 canvas->save(); in drawRow()
135 canvas->concat(fPerspMatrix); in drawRow()
136 canvas->drawPath(fPath, gradPaint2); in drawRow()
137 canvas->restore(); in drawRow()
139 canvas->restore(); in drawRow()
142 void onDraw(SkCanvas* canvas) override { in onDraw() argument
144 fImage.reset(make_image(canvas, kCellSize, kCellSize)); in onDraw()
147 this->drawRow(canvas, kNone_SkFilterQuality); in onDraw()
148 canvas->translate(0, SkIntToScalar(kCellSize)); in onDraw()
149 this->drawRow(canvas, kLow_SkFilterQuality); in onDraw()
150 canvas->translate(0, SkIntToScalar(kCellSize)); in onDraw()
151 this->drawRow(canvas, kMedium_SkFilterQuality); in onDraw()
152 canvas->translate(0, SkIntToScalar(kCellSize)); in onDraw()
153 this->drawRow(canvas, kHigh_SkFilterQuality); in onDraw()
154 canvas->translate(0, SkIntToScalar(kCellSize)); in onDraw()