Lines Matching defs:paint

30 static void compose_pe(SkPaint* paint) {
31 SkPathEffect* pe = paint->getPathEffect();
39 paint->setPathEffect(compose);
42 static void hair_pe(SkPaint* paint) {
43 paint->setStrokeWidth(0);
46 static void hair2_pe(SkPaint* paint) {
47 paint->setStrokeWidth(0);
48 compose_pe(paint);
51 static void stroke_pe(SkPaint* paint) {
52 paint->setStrokeWidth(12);
53 compose_pe(paint);
56 static void dash_pe(SkPaint* paint) {
58 paint->setStrokeWidth(12);
59 paint->setPathEffect(SkDashPathEffect::Make(inter, SK_ARRAY_COUNT(inter), 0));
60 compose_pe(paint);
73 static void one_d_pe(SkPaint* paint) {
82 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0,
84 compose_pe(paint);
90 static void fill_pe(SkPaint* paint) {
91 paint->setStyle(SkPaint::kFill_Style);
92 paint->setPathEffect(nullptr);
95 static void discrete_pe(SkPaint* paint) {
96 paint->setPathEffect(SkDiscretePathEffect::Make(10, 4));
109 static void tile_pe(SkPaint* paint) {
110 paint->setPathEffect(MakeTileEffect());
116 SkPaint paint;
117 paint.setAntiAlias(true);
118 paint.setStyle(SkPaint::kStroke_Style);
130 gPE[i](&paint);
131 canvas->drawPath(path, paint);
144 gPE2[i](&paint);
145 canvas->drawPath(path, paint);
219 SkPaint paint;
220 paint.setAntiAlias(true);
221 paint.setDither(true);
227 paint.setShader(gGradMakers[j](pts, gGradData[i], tm));
228 canvas->drawRect(r, paint);
363 SkPaint paint;
364 paint.setDither(true);
371 paint.setShader(nullptr);
372 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);
376 paint.setShader(fShader0);
377 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);
381 paint.setShader(fShader1);
382 canvas->drawVertices(verts, SkBlendMode::kModulate, paint);