Lines Matching refs:paint

18 static void compose_pe(SkPaint* paint) {  in compose_pe()  argument
19 SkPathEffect* pe = paint->getPathEffect(); in compose_pe()
27 paint->setPathEffect(compose); in compose_pe()
30 static void hair_pe(SkPaint* paint) { in hair_pe() argument
31 paint->setStrokeWidth(0); in hair_pe()
34 static void hair2_pe(SkPaint* paint) { in hair2_pe() argument
35 paint->setStrokeWidth(0); in hair2_pe()
36 compose_pe(paint); in hair2_pe()
39 static void stroke_pe(SkPaint* paint) { in stroke_pe() argument
40 paint->setStrokeWidth(12); in stroke_pe()
41 compose_pe(paint); in stroke_pe()
44 static void dash_pe(SkPaint* paint) { in dash_pe() argument
46 paint->setStrokeWidth(12); in dash_pe()
47 paint->setPathEffect(SkDashPathEffect::Make(inter, SK_ARRAY_COUNT(inter), 0)); in dash_pe()
48 compose_pe(paint); in dash_pe()
61 static void one_d_pe(SkPaint* paint) { in one_d_pe() argument
70 paint->setPathEffect(SkPath1DPathEffect::Make(path, SkIntToScalar(21), 0, in one_d_pe()
72 compose_pe(paint); in one_d_pe()
78 static void fill_pe(SkPaint* paint) { in fill_pe() argument
79 paint->setStyle(SkPaint::kFill_Style); in fill_pe()
80 paint->setPathEffect(nullptr); in fill_pe()
83 static void discrete_pe(SkPaint* paint) { in discrete_pe() argument
84 paint->setPathEffect(SkDiscretePathEffect::Make(10, 4)); in discrete_pe()
97 static void tile_pe(SkPaint* paint) { in tile_pe() argument
98 paint->setPathEffect(MakeTileEffect()); in tile_pe()
116 SkPaint paint; in onDraw() local
117 paint.setAntiAlias(true); in onDraw()
118 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
129 gPE[i](&paint); in onDraw()
130 canvas->drawPath(path, paint); in onDraw()
143 gPE2[i](&paint); in onDraw()
144 canvas->drawPath(path, paint); in onDraw()
204 SkPaint paint; in onDraw() local
205 paint.setColor(0xFF8888FF); in onDraw()
206 paint.setAntiAlias(true); in onDraw()
211 paint.setPathEffect(pe); in onDraw()
212 canvas->drawPath(path, paint); in onDraw()