Lines Matching refs:canvas
18 SkCanvas canvas(bitmap); in createBitmap() local
25 canvas.drawOval(r, paint); in createBitmap()
29 canvas.drawLine(0, 0, r.fRight, r.fBottom, paint); in createBitmap()
30 canvas.drawLine(0, r.fBottom, r.fRight, 0, paint); in createBitmap()
56 void onDrawContent(SkCanvas* canvas) override { in onDrawContent() argument
57 canvas->translate(SkIntToScalar(10), SkIntToScalar(10)); in onDrawContent()
81 canvas->save(); in onDrawContent()
86 canvas->drawRect(rect, paints[p]); in onDrawContent()
87 canvas->translate(dx, 0); in onDrawContent()
93 canvas->drawRect(rect, paints[p]); in onDrawContent()
94 canvas->translate(dx, 0); in onDrawContent()
100 canvas->drawRect(rect, paints[p]); in onDrawContent()
101 canvas->translate(dx, 0); in onDrawContent()
107 canvas->drawRect(rect, paints[p]); in onDrawContent()
108 canvas->translate(dx, 0); in onDrawContent()
110 canvas->save(); in onDrawContent()
111 canvas->translate(.33f, .67f); in onDrawContent()
116 canvas->drawRect(rect, paints[p]); in onDrawContent()
117 canvas->restore(); in onDrawContent()
118 canvas->translate(dx, 0); in onDrawContent()
120 canvas->save(); in onDrawContent()
122 canvas->concat(matrix); in onDrawContent()
123 canvas->translate(20.0f / sqrtf(2.f), in onDrawContent()
129 canvas->drawRect(rect, paints[p]); in onDrawContent()
130 canvas->restore(); in onDrawContent()
131 canvas->translate(dx, 0); in onDrawContent()
133 canvas->save(); in onDrawContent()
134 canvas->rotate(90.f); in onDrawContent()
139 canvas->drawRect(rect, paints[p]); in onDrawContent()
140 canvas->restore(); in onDrawContent()
141 canvas->translate(dx, 0); in onDrawContent()
143 canvas->save(); in onDrawContent()
144 canvas->rotate(90.f); in onDrawContent()
149 canvas->drawRect(rect, paints[p]); in onDrawContent()
150 canvas->restore(); in onDrawContent()
151 canvas->translate(dx, 0); in onDrawContent()
153 canvas->save(); in onDrawContent()
155 canvas->concat(matrix); in onDrawContent()
160 canvas->drawRect(rect, paints[p]); in onDrawContent()
161 canvas->restore(); in onDrawContent()
162 canvas->translate(dx, 0); in onDrawContent()
164 canvas->save(); in onDrawContent()
166 canvas->concat(matrix); in onDrawContent()
171 canvas->drawRect(rect, paints[p]); in onDrawContent()
172 canvas->restore(); in onDrawContent()
173 canvas->translate(dx, 0); in onDrawContent()
175 canvas->restore(); in onDrawContent()
176 canvas->translate(0, dy); in onDrawContent()