Lines Matching refs:canvas
106 void drawCase1(SkCanvas* canvas, int transX, int transY, in drawCase1() argument
116 canvas->save(); in drawCase1()
117 canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); in drawCase1()
118 canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint, flags); in drawCase1()
119 canvas->restore(); in drawCase1()
123 void drawCase2(SkCanvas* canvas, int transX, int transY, in drawCase2() argument
133 canvas->save(); in drawCase2()
134 canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); in drawCase2()
135 canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint, flags); in drawCase2()
136 canvas->restore(); in drawCase2()
140 void drawCase3(SkCanvas* canvas, int transX, int transY, in drawCase3() argument
150 canvas->save(); in drawCase3()
151 canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); in drawCase3()
152 canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint, flags); in drawCase3()
153 canvas->restore(); in drawCase3()
157 void drawCase4(SkCanvas* canvas, int transX, int transY, in drawCase4() argument
170 canvas->save(); in drawCase4()
171 canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); in drawCase4()
172 canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint, flags); in drawCase4()
173 canvas->restore(); in drawCase4()
176 void onDraw(SkCanvas* canvas) override { in onDraw() argument
178 canvas->clear(SK_ColorGRAY); in onDraw()
181 canvas->save(); in onDraw()
184 canvas->translate(0, kBottom); in onDraw()
187 canvas->concat(rotate); in onDraw()
188 canvas->scale(0.71f, 1.22f); in onDraw()
192 …this->drawCase1(canvas, kCol0X, kRow0Y, SkCanvas::kNone_DrawBitmapRectFlag, kNone_SkFilterQuality); in onDraw()
193 …this->drawCase2(canvas, kCol0X, kRow1Y, SkCanvas::kNone_DrawBitmapRectFlag, kNone_SkFilterQuality); in onDraw()
194 …this->drawCase3(canvas, kCol0X, kRow2Y, SkCanvas::kNone_DrawBitmapRectFlag, kNone_SkFilterQuality); in onDraw()
195 …this->drawCase4(canvas, kCol0X, kRow3Y, SkCanvas::kNone_DrawBitmapRectFlag, kNone_SkFilterQuality); in onDraw()
198 … this->drawCase1(canvas, kCol1X, kRow0Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
199 … this->drawCase2(canvas, kCol1X, kRow1Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
200 … this->drawCase3(canvas, kCol1X, kRow2Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
201 … this->drawCase4(canvas, kCol1X, kRow3Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
204 …this->drawCase1(canvas, kCol2X, kRow0Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
205 …this->drawCase2(canvas, kCol2X, kRow1Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
206 …this->drawCase3(canvas, kCol2X, kRow2Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
207 …this->drawCase4(canvas, kCol2X, kRow3Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
210 GrContext* ctx = canvas->getGrContext(); in onDraw()
220 … this->drawCase1(canvas, kCol3X, kRow0Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
221 … this->drawCase2(canvas, kCol3X, kRow1Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
222 … this->drawCase3(canvas, kCol3X, kRow2Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
223 … this->drawCase4(canvas, kCol3X, kRow3Y, SkCanvas::kNone_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
226 …this->drawCase1(canvas, kCol4X, kRow0Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
227 …this->drawCase2(canvas, kCol4X, kRow1Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
228 …this->drawCase3(canvas, kCol4X, kRow2Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
229 …this->drawCase4(canvas, kCol4X, kRow3Y, SkCanvas::kNone_DrawBitmapRectFlag, kHigh_SkFilterQuality); in onDraw()
232 …this->drawCase1(canvas, kCol5X, kRow0Y, SkCanvas::kBleed_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
233 …this->drawCase2(canvas, kCol5X, kRow1Y, SkCanvas::kBleed_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
234 …this->drawCase3(canvas, kCol5X, kRow2Y, SkCanvas::kBleed_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
235 …this->drawCase4(canvas, kCol5X, kRow3Y, SkCanvas::kBleed_DrawBitmapRectFlag, kLow_SkFilterQuality); in onDraw()
238 …this->drawCase1(canvas, kCol6X, kRow0Y, SkCanvas::kBleed_DrawBitmapRectFlag, kHigh_SkFilterQuality… in onDraw()
239 …this->drawCase2(canvas, kCol6X, kRow1Y, SkCanvas::kBleed_DrawBitmapRectFlag, kHigh_SkFilterQuality… in onDraw()
240 …this->drawCase3(canvas, kCol6X, kRow2Y, SkCanvas::kBleed_DrawBitmapRectFlag, kHigh_SkFilterQuality… in onDraw()
241 …this->drawCase4(canvas, kCol6X, kRow3Y, SkCanvas::kBleed_DrawBitmapRectFlag, kHigh_SkFilterQuality… in onDraw()
248 canvas->restore(); in onDraw()