• Home
  • Raw
  • Download

Lines Matching refs:canvas

21     SkCanvas canvas(bitmap);  in createBitmap()  local
28 canvas.drawOval(r, paint); in createBitmap()
32 canvas.drawLine(0, 0, r.fRight, r.fBottom, paint); in createBitmap()
33 canvas.drawLine(0, r.fBottom, r.fRight, 0, paint); in createBitmap()
60 virtual void onDrawContent(SkCanvas* canvas) { in onDrawContent() argument
61 canvas->translate(SkIntToScalar(10), SkIntToScalar(10)); in onDrawContent()
87 canvas->save(); in onDrawContent()
92 canvas->drawRect(rect, paints[p]); in onDrawContent()
93 canvas->translate(dx, 0); in onDrawContent()
99 canvas->drawRect(rect, paints[p]); in onDrawContent()
100 canvas->translate(dx, 0); in onDrawContent()
106 canvas->drawRect(rect, paints[p]); in onDrawContent()
107 canvas->translate(dx, 0); in onDrawContent()
113 canvas->drawRect(rect, paints[p]); in onDrawContent()
114 canvas->translate(dx, 0); in onDrawContent()
116 canvas->save(); in onDrawContent()
117 canvas->translate(SkFloatToScalar(.33f), SkFloatToScalar(.67f)); in onDrawContent()
122 canvas->drawRect(rect, paints[p]); in onDrawContent()
123 canvas->restore(); in onDrawContent()
124 canvas->translate(dx, 0); in onDrawContent()
126 canvas->save(); in onDrawContent()
128 canvas->concat(matrix); in onDrawContent()
129 canvas->translate(SkFloatToScalar(20.0f / sqrtf(2.f)), in onDrawContent()
135 canvas->drawRect(rect, paints[p]); in onDrawContent()
136 canvas->restore(); in onDrawContent()
137 canvas->translate(dx, 0); in onDrawContent()
139 canvas->save(); in onDrawContent()
140 canvas->rotate(SkFloatToScalar(90.f)); in onDrawContent()
145 canvas->drawRect(rect, paints[p]); in onDrawContent()
146 canvas->restore(); in onDrawContent()
147 canvas->translate(dx, 0); in onDrawContent()
149 canvas->save(); in onDrawContent()
150 canvas->rotate(SkFloatToScalar(90.f)); in onDrawContent()
155 canvas->drawRect(rect, paints[p]); in onDrawContent()
156 canvas->restore(); in onDrawContent()
157 canvas->translate(dx, 0); in onDrawContent()
159 canvas->save(); in onDrawContent()
161 canvas->concat(matrix); in onDrawContent()
166 canvas->drawRect(rect, paints[p]); in onDrawContent()
167 canvas->restore(); in onDrawContent()
168 canvas->translate(dx, 0); in onDrawContent()
170 canvas->save(); in onDrawContent()
172 canvas->concat(matrix); in onDrawContent()
177 canvas->drawRect(rect, paints[p]); in onDrawContent()
178 canvas->restore(); in onDrawContent()
179 canvas->translate(dx, 0); in onDrawContent()
181 canvas->restore(); in onDrawContent()
182 canvas->translate(0, dy); in onDrawContent()