Lines Matching refs:paint
26 SkPaint paint; in draw_control_points() local
36 paint.setColor(SK_ColorBLACK); in draw_control_points()
37 paint.setStrokeWidth(0.5f); in draw_control_points()
39 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); in draw_control_points()
40 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); in draw_control_points()
41 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); in draw_control_points()
42 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); in draw_control_points()
43 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); in draw_control_points()
45 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); in draw_control_points()
46 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); in draw_control_points()
47 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, right + 1, paint); in draw_control_points()
49 paint.setStrokeWidth(2); in draw_control_points()
51 paint.setColor(SK_ColorRED); in draw_control_points()
52 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, corners, paint); in draw_control_points()
54 paint.setColor(SK_ColorBLUE); in draw_control_points()
55 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, bottom + 1, paint); in draw_control_points()
57 paint.setColor(SK_ColorCYAN); in draw_control_points()
58 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, top + 1, paint); in draw_control_points()
60 paint.setColor(SK_ColorYELLOW); in draw_control_points()
61 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, left + 1, paint); in draw_control_points()
63 paint.setColor(SK_ColorGREEN); in draw_control_points()
64 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, right + 1, paint); in draw_control_points()
89 SkPaint paint; in onDraw() local
127 canvas->drawPatch(cubics, NULL, NULL, xfer, paint); in onDraw()
130 canvas->drawPatch(cubics, colors, NULL, xfer, paint); in onDraw()
133 paint.setShader(shader); in onDraw()
134 canvas->drawPatch(cubics, NULL, texCoords, xfer, paint); in onDraw()
135 paint.setShader(NULL); in onDraw()
138 paint.setShader(shader); in onDraw()
139 canvas->drawPatch(cubics, colors, texCoords, xfer, paint); in onDraw()
140 paint.setShader(NULL); in onDraw()