Lines Matching refs:canvas

35     void onDraw(SkCanvas* canvas) override {  in onDraw()  argument
41 canvas->drawPaint(bgPaint); in onDraw()
53 canvas->save(); in onDraw()
54 canvas->translate(0, SkIntToScalar(kLabelOffsetY)); in onDraw()
57 canvas->drawText(offset.c_str(), offset.size(), in onDraw()
61 canvas->restore(); in onDraw()
64 canvas->save(); in onDraw()
65 canvas->translate(SkIntToScalar(kLabelOffsetX), 0); in onDraw()
68 canvas->drawText(offset.c_str(), offset.size(), in onDraw()
72 canvas->restore(); in onDraw()
74 canvas->translate(SkIntToScalar(kLabelOffsetX), SkIntToScalar(kLabelOffsetY)); in onDraw()
79 canvas->drawLine(0.5f, in onDraw()
84 canvas->drawLine(i * SkIntToScalar(kTrans) + 0.5f, in onDraw()
93 canvas->save(); in onDraw()
95 canvas->translate(j * (kTrans + 1.f/kSubPixelSteps) + 1, in onDraw()
97 this->drawElement(canvas); in onDraw()
98 canvas->restore(); in onDraw()
112 void drawElement(SkCanvas* canvas) override { canvas->drawPoint(1, 1, SK_ColorBLUE); } in drawElement() argument
121 void drawElement(SkCanvas* canvas) override { in drawElement() argument
125 canvas->drawLine(1, 1, 4, 1, paint); in drawElement()
126 canvas->drawLine(6, 1, 6, 4, paint); in drawElement()
136 void drawElement(SkCanvas* canvas) override { in drawElement() argument
139 canvas->drawRect(SkRect::MakeXYWH(1, 1, 3, 3), paint); in drawElement()
149 void drawElement(SkCanvas* canvas) override { in drawElement() argument
157 canvas->drawLine(3, 3, 0, 3, paint); in drawElement()
158 canvas->drawLine(3, 3, 3, 0, paint); in drawElement()
159 canvas->drawLine(4, 3, 7, 3, paint); in drawElement()
160 canvas->drawLine(4, 3, 4, 0, paint); in drawElement()
161 canvas->drawLine(3, 4, 0, 4, paint); in drawElement()
162 canvas->drawLine(3, 4, 3, 7, paint); in drawElement()
163 canvas->drawLine(4, 4, 7, 4, paint); in drawElement()
164 canvas->drawLine(4, 4, 4, 7, paint); in drawElement()
165 canvas->drawPoint(4, 3, SK_ColorBLUE); in drawElement()
166 canvas->drawPoint(4, 4, SK_ColorBLUE); in drawElement()
167 canvas->drawPoint(3, 3, SK_ColorBLUE); in drawElement()
168 canvas->drawPoint(3, 4, SK_ColorBLUE); in drawElement()
170 canvas->drawRect(rect, paint); in drawElement()