Lines Matching refs:canvas
20 SkCanvas canvas(bitmap); in createBitmap() local
27 canvas.drawOval(r, paint); in createBitmap()
31 canvas.drawLine(0, 0, r.fRight, r.fBottom, paint); in createBitmap()
32 canvas.drawLine(0, r.fBottom, r.fRight, 0, paint); in createBitmap()
59 virtual void onDrawContent(SkCanvas* canvas) { in onDrawContent() argument
60 canvas->translate(SkIntToScalar(10), SkIntToScalar(10)); in onDrawContent()
86 canvas->save(); in onDrawContent()
91 canvas->drawRect(rect, paints[p]); in onDrawContent()
92 canvas->translate(dx, 0); in onDrawContent()
98 canvas->drawRect(rect, paints[p]); in onDrawContent()
99 canvas->translate(dx, 0); in onDrawContent()
105 canvas->drawRect(rect, paints[p]); in onDrawContent()
106 canvas->translate(dx, 0); in onDrawContent()
112 canvas->drawRect(rect, paints[p]); in onDrawContent()
113 canvas->translate(dx, 0); in onDrawContent()
115 canvas->save(); in onDrawContent()
116 canvas->translate(.33f, .67f); in onDrawContent()
121 canvas->drawRect(rect, paints[p]); in onDrawContent()
122 canvas->restore(); in onDrawContent()
123 canvas->translate(dx, 0); in onDrawContent()
125 canvas->save(); in onDrawContent()
127 canvas->concat(matrix); in onDrawContent()
128 canvas->translate(20.0f / sqrtf(2.f), in onDrawContent()
134 canvas->drawRect(rect, paints[p]); in onDrawContent()
135 canvas->restore(); in onDrawContent()
136 canvas->translate(dx, 0); in onDrawContent()
138 canvas->save(); in onDrawContent()
139 canvas->rotate(90.f); in onDrawContent()
144 canvas->drawRect(rect, paints[p]); in onDrawContent()
145 canvas->restore(); in onDrawContent()
146 canvas->translate(dx, 0); in onDrawContent()
148 canvas->save(); in onDrawContent()
149 canvas->rotate(90.f); in onDrawContent()
154 canvas->drawRect(rect, paints[p]); in onDrawContent()
155 canvas->restore(); in onDrawContent()
156 canvas->translate(dx, 0); in onDrawContent()
158 canvas->save(); in onDrawContent()
160 canvas->concat(matrix); in onDrawContent()
165 canvas->drawRect(rect, paints[p]); in onDrawContent()
166 canvas->restore(); in onDrawContent()
167 canvas->translate(dx, 0); in onDrawContent()
169 canvas->save(); in onDrawContent()
171 canvas->concat(matrix); in onDrawContent()
176 canvas->drawRect(rect, paints[p]); in onDrawContent()
177 canvas->restore(); in onDrawContent()
178 canvas->translate(dx, 0); in onDrawContent()
180 canvas->restore(); in onDrawContent()
181 canvas->translate(0, dy); in onDrawContent()