Lines Matching refs:paint

46 static void setFade(SkPaint* paint, bool showGL) {  in setFade()  argument
47 paint->setAlpha(showGL ? 0x66 : 0xFF); in setFade()
50 static void setGLFrame(SkPaint* paint) { in setGLFrame() argument
51 paint->setColor(0xFFFF0000); in setGLFrame()
52 paint->setStyle(SkPaint::kStroke_Style); in setGLFrame()
53 paint->setAntiAlias(true); in setGLFrame()
54 paint->setStrokeWidth(WIRE_FRAME_WIDTH); in setGLFrame()
58 SkPaint paint; in show_mesh() local
59 setGLFrame(&paint); in show_mesh()
61 canvas->drawRect(r, paint); in show_mesh()
62 canvas->drawLine(r.fLeft, r.fTop, r.fRight, r.fBottom, paint); in show_mesh()
66 const SkPaint& paint) { in drawLine() argument
67 canvas->drawLine(p0.fX, p0.fY, p1.fX, p1.fY, paint); in drawLine()
72 SkPaint paint; in show_mesh() local
73 setGLFrame(&paint); in show_mesh()
76 drawLine(canvas, pts[indices[i]], pts[indices[i+1]], paint); in show_mesh()
77 drawLine(canvas, pts[indices[i+1]], pts[indices[i+2]], paint); in show_mesh()
78 drawLine(canvas, pts[indices[i+2]], pts[indices[i]], paint); in show_mesh()
83 SkPaint paint; in show_glframe() local
84 setGLFrame(&paint); in show_glframe()
85 canvas->drawPath(path, paint); in show_glframe()
111 SkPaint paint; in show_fan() local
112 setGLFrame(&paint); in show_fan()
114 canvas->drawPath(path, paint); in show_fan()
119 canvas->drawLine(pts[i].fX, pts[i].fY, cx, cy, paint); in show_fan()
128 SkPaint paint; in draw_line() local
129 paint.setAntiAlias(true); in draw_line()
132 setGLFrame(&paint); in draw_line()
134 canvas->drawLine(50, 50, 400, 100, paint); in draw_line()
135 paint.setColor(SK_ColorBLACK); in draw_line()
138 setFade(&paint, showGL); in draw_line()
139 paint.setStrokeWidth(40); in draw_line()
140 canvas->drawLine(100, 50, 450, 50, paint); in draw_line()
147 SkPaint paint; in draw_rect() local
148 paint.setAntiAlias(true); in draw_rect()
152 setFade(&paint, showGL); in draw_rect()
153 canvas->drawRect(r, paint); in draw_rect()
160 paint.setStyle(SkPaint::kStroke_Style); in draw_rect()
161 paint.setStrokeWidth(25); in draw_rect()
162 canvas->drawRect(r, paint); in draw_rect()
164 SkScalar rad = paint.getStrokeWidth() / 2; in draw_rect()
179 SkPaint paint; in draw_oval() local
180 paint.setAntiAlias(true); in draw_oval()
184 setFade(&paint, showGL); in draw_oval()
185 canvas->drawOval(r, paint); in draw_oval()
201 SkPaint p(paint); in draw_oval()
204 paint.setStyle(SkPaint::kFill_Style); in draw_oval()
212 paint.setStyle(SkPaint::kStroke_Style); in draw_oval()
213 paint.setStrokeWidth(25); in draw_oval()
214 canvas->drawOval(r, paint); in draw_oval()
219 SkScalar rad = paint.getStrokeWidth() / 2; in draw_oval()
228 SkScalar rad = paint.getStrokeWidth() / 2; in draw_oval()
239 SkScalar rad = paint.getStrokeWidth() / 2; in draw_oval()
244 SkScalar rad = paint.getStrokeWidth() / 2; in draw_oval()
246 SkPaint paint; in draw_oval() local
247 paint.setAlpha(0x33); in draw_oval()
248 canvas->drawRect(r, paint); in draw_oval()
258 SkPaint paint; in draw_image() local
259 paint.setAntiAlias(true); in draw_image()
260 paint.setFilterBitmap(true); in draw_image()
261 setFade(&paint, showGL); in draw_image()
273 canvas->drawBitmap(*gBM, 0, 0, &paint); in draw_image()
281 canvas->drawBitmap(*gBM, 0, 0, &paint); in draw_image()
288 SkPaint paint; in draw_text() local
289 paint.setAntiAlias(true); in draw_text()
290 paint.setLCDRenderText(true); in draw_text()
293 setFade(&paint, showGL); in draw_text()
297 paint.setTextSize(12 + i * 3); in draw_text()
298 canvas->drawText(text, len, 0, 0, paint); in draw_text()
302 int count = paint.getTextWidths(text, len, widths, bounds); in draw_text()
310 canvas->translate(0, paint.getTextSize() * 3 / 2); in draw_text()