Lines Matching refs:paint

27     SkPaint paint;  in draw_control_points()  local
37 paint.setColor(SK_ColorBLACK); in draw_control_points()
38 paint.setStrokeWidth(0.5f); in draw_control_points()
40 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, bottom, paint); in draw_control_points()
41 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, bottom + 1, paint); in draw_control_points()
42 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, top, paint); in draw_control_points()
43 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, left, paint); in draw_control_points()
44 canvas->drawPoints(SkCanvas::kLines_PointMode, 4, right, paint); in draw_control_points()
46 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, top + 1, paint); in draw_control_points()
47 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, left + 1, paint); in draw_control_points()
48 canvas->drawPoints(SkCanvas::kLines_PointMode, 2, right + 1, paint); in draw_control_points()
50 paint.setStrokeWidth(2); in draw_control_points()
52 paint.setColor(SK_ColorRED); in draw_control_points()
53 canvas->drawPoints(SkCanvas::kPoints_PointMode, 4, corners, paint); in draw_control_points()
55 paint.setColor(SK_ColorBLUE); in draw_control_points()
56 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, bottom + 1, paint); in draw_control_points()
58 paint.setColor(SK_ColorCYAN); in draw_control_points()
59 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, top + 1, paint); in draw_control_points()
61 paint.setColor(SK_ColorYELLOW); in draw_control_points()
62 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, left + 1, paint); in draw_control_points()
64 paint.setColor(SK_ColorGREEN); in draw_control_points()
65 canvas->drawPoints(SkCanvas::kPoints_PointMode, 2, right + 1, paint); in draw_control_points()
86 SkPaint paint; in dopatch() local
118 canvas->drawPatch(gCubics, nullptr, nullptr, modes[y], paint); in dopatch()
121 canvas->drawPatch(gCubics, colors, nullptr, modes[y], paint); in dopatch()
124 paint.setShader(shader); in dopatch()
125 canvas->drawPatch(gCubics, nullptr, tex, modes[y], paint); in dopatch()
126 paint.setShader(nullptr); in dopatch()
129 paint.setShader(shader); in dopatch()
130 canvas->drawPatch(gCubics, colors, tex, modes[y], paint); in dopatch()
131 paint.setShader(nullptr); in dopatch()
171 SkPaint paint; variable
172 canvas->drawPatch(gCubics, colors, nullptr, SkBlendMode::kModulate, paint);
182 paint.setColor(colors[0]);
183 canvas->drawPath(path, paint);