Lines Matching refs:paint
32 static void compose_pe(SkPaint* paint) {
33 SkPathEffect* pe = paint->getPathEffect();
41 paint->setPathEffect(compose);
44 static void hair_pe(SkPaint* paint) {
45 paint->setStrokeWidth(0);
48 static void hair2_pe(SkPaint* paint) {
49 paint->setStrokeWidth(0);
50 compose_pe(paint);
53 static void stroke_pe(SkPaint* paint) {
54 paint->setStrokeWidth(12);
55 compose_pe(paint);
58 static void dash_pe(SkPaint* paint) {
60 paint->setStrokeWidth(12);
61 paint->setPathEffect(SkDashPathEffect::Make(inter, SK_ARRAY_COUNT(inter), 0));
62 compose_pe(paint);
75 static void one_d_pe(SkPaint* paint) {
84 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0,
86 compose_pe(paint);
92 static void fill_pe(SkPaint* paint) {
93 paint->setStyle(SkPaint::kFill_Style);
94 paint->setPathEffect(nullptr);
97 static void discrete_pe(SkPaint* paint) {
98 paint->setPathEffect(SkDiscretePathEffect::Make(10, 4));
108 static void tile_pe(SkPaint* paint) {
109 paint->setPathEffect(MakeTileEffect());
127 SkPaint paint;
128 paint.setAntiAlias(true);
129 paint.setStyle(SkPaint::kStroke_Style);
141 gPE[i](&paint);
142 canvas->drawPath(path, paint);
155 gPE2[i](&paint);
156 canvas->drawPath(path, paint);
216 SkPaint paint;
217 paint.setColor(0xFF8888FF);
218 paint.setAntiAlias(true);
223 paint.setPathEffect(pe);
224 canvas->drawPath(path, paint);
272 SkPaint paint;
278 paint.setStyle(r.fStyle);
279 paint.setStrokeWidth(r.fWidth);
280 paint.setPathEffect(r.fUsePE ? SkStrokeAndFillPathEffect::Make() : nullptr);
281 paint.setColor(r.fExpectStrokeAndFill ? SK_ColorGRAY : SK_ColorBLACK);
283 canvas->drawPath(path, paint);
383 SkPaint paint;
384 paint.setAntiAlias(true);
385 paint.setColor(SkColorSetA(SK_ColorBLUE, 0xff));
386 paint.setPathEffect(pathEffect);
387 canvas->drawPath(path, paint);
391 canvas->drawPath(path, paint);
396 paint.setPathEffect(nullptr);
397 paint.setStyle(SkPaint::kStroke_Style);
398 paint.setStrokeWidth(strokeWidth);
399 paint.setColor(SkColorSetA(SK_ColorGREEN, 0xff));
400 canvas->drawPath(path, paint);
404 canvas->drawPath(path, paint);