• Home
  • Raw
  • Download

Lines Matching refs:paint

32 static void compose_pe(SkPaint* paint) {  in compose_pe()  argument
33 SkPathEffect* pe = paint->getPathEffect(); in compose_pe()
41 paint->setPathEffect(compose); in compose_pe()
44 static void hair_pe(SkPaint* paint) { in hair_pe() argument
45 paint->setStrokeWidth(0); in hair_pe()
48 static void hair2_pe(SkPaint* paint) { in hair2_pe() argument
49 paint->setStrokeWidth(0); in hair2_pe()
50 compose_pe(paint); in hair2_pe()
53 static void stroke_pe(SkPaint* paint) { in stroke_pe() argument
54 paint->setStrokeWidth(12); in stroke_pe()
55 compose_pe(paint); in stroke_pe()
58 static void dash_pe(SkPaint* paint) { in dash_pe() argument
60 paint->setStrokeWidth(12); in dash_pe()
61 paint->setPathEffect(SkDashPathEffect::Make(inter, SK_ARRAY_COUNT(inter), 0)); in dash_pe()
62 compose_pe(paint); in dash_pe()
75 static void one_d_pe(SkPaint* paint) { in one_d_pe() argument
84 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0, in one_d_pe()
86 compose_pe(paint); in one_d_pe()
92 static void fill_pe(SkPaint* paint) { in fill_pe() argument
93 paint->setStyle(SkPaint::kFill_Style); in fill_pe()
94 paint->setPathEffect(nullptr); in fill_pe()
97 static void discrete_pe(SkPaint* paint) { in discrete_pe() argument
98 paint->setPathEffect(SkDiscretePathEffect::Make(10, 4)); in discrete_pe()
108 static void tile_pe(SkPaint* paint) { in tile_pe() argument
109 paint->setPathEffect(MakeTileEffect()); in tile_pe()
127 SkPaint paint; in onDraw() local
128 paint.setAntiAlias(true); in onDraw()
129 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
141 gPE[i](&paint); in onDraw()
142 canvas->drawPath(path, paint); in onDraw()
155 gPE2[i](&paint); in onDraw()
156 canvas->drawPath(path, paint); in onDraw()
216 SkPaint paint; in onDraw() local
217 paint.setColor(0xFF8888FF); in onDraw()
218 paint.setAntiAlias(true); in onDraw()
223 paint.setPathEffect(pe); in onDraw()
224 canvas->drawPath(path, paint); in onDraw()
272 SkPaint paint; variable
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; in onDraw() local
384 paint.setAntiAlias(true); in onDraw()
385 paint.setColor(SkColorSetA(SK_ColorBLUE, 0xff)); in onDraw()
386 paint.setPathEffect(pathEffect); in onDraw()
387 canvas->drawPath(path, paint); in onDraw()
391 canvas->drawPath(path, paint); in onDraw()
396 paint.setPathEffect(nullptr); in onDraw()
397 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
398 paint.setStrokeWidth(strokeWidth); in onDraw()
399 paint.setColor(SkColorSetA(SK_ColorGREEN, 0xff)); in onDraw()
400 canvas->drawPath(path, paint); in onDraw()
404 canvas->drawPath(path, paint); in onDraw()