Home
last modified time | relevance | path

Searched refs:setShader (Results 1 – 25 of 547) sorted by relevance

12345678910>>...22

/external/skqp/gm/
Dgamma.cpp107 p.setShader(SkShader::MakeBitmapShader(ditherBmp, rpt, rpt));
116 p.setShader(SkShader::MakeBitmapShader(ditherBmp, rpt, rpt, &offsetMatrix));
122 p.setShader(SkShader::MakeBitmapShader(ditherBmp, rpt, rpt, &scaleMatrix));
128 p.setShader(SkShader::MakeBitmapShader(mipmapBmp, rpt, rpt, &scaleMatrix));
144 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2,
157 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2,
170 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 3,
183 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 5,
195 p.setShader(SkShader::MakeBitmapShader(linearGreyBmp, rpt, rpt));
200 p.setShader(SkShader::MakeBitmapShader(srgbGreyBmp, rpt, rpt));
Dlocalmatriximageshader.cpp35 paint.setShader(redLocalMatrixShader);
43 paint.setShader(blueLocalMatrixShader);
52 paint.setShader(image->makeShader(mode[0], mode[1], &matrix));
55 paint.setShader(image->makeShader(mode[0], mode[1], &matrix));
66 p.setShader(image->makeShader()->makeWithLocalMatrix(m));
Dbitmapshader.cpp70 paint.setShader(SkShader::MakeBitmapShader(fBitmap, SkShader::kClamp_TileMode, in onDraw()
85 paint.setShader(nullptr); in onDraw()
92 paint.setShader(SkShader::MakeBitmapShader(fMask, SkShader::kRepeat_TileMode, in onDraw()
131 paint.setShader(SkShader::MakeBitmapShader(bitmap,
Dgradients.cpp206 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, scale)); in onDraw()
262 paint.setShader(gGradMakers4f[j](pts, gGradData[i], tm, scale)); in onDraw()
319 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, perspective)); in onDraw()
408 paint.setShader(SkGradientShader::MakeTwoPointConical(c0, r0, c1, r1, colors, in onDraw()
452 paint.setShader(SkGradientShader::MakeTwoPointConical(c0, r0, c1, r1, colors, pos,
487 paint.setShader(SkGradientShader::MakeRadial( in onDraw()
530 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, pos, in onDraw()
579 paint1.setShader(SkGradientShader::MakeSweep(cx, cy, sweep_colors, in onDraw()
582 paint2.setShader(SkGradientShader::MakeRadial(center, radius, colors1, in onDraw()
586 paint3.setShader(SkGradientShader::MakeRadial(center, radius, colors2, in onDraw()
[all …]
Dgradtext.cpp56 paint.setShader(make_chrome_solid()); in onDraw()
87 paint.setShader(make_chrome_solid()); in onDraw()
112 paints[0].setShader(make_grad(80.0f));
113 paints[1].setShader(make_grad2(80.0f));
Dcomposeshader.cpp57 paint.setShader(fShader); in onDraw()
97 paint.setShader(nullptr); in onDraw()
101 paint.setShader(shaders[y]); in onDraw()
199 paint.setShader(shaders[y]); in onDraw()
255 paint.setShader(
287 p.setShader(dst); in draw_cell()
291 p.setShader(src); in draw_cell()
300 p.setShader(SkShader::MakeCompose(dst, src, mode)); in draw_composed()
Dtilemodes.cpp33 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
40 paint->setShader(SkShader::MakeBitmapShader(bm, tmx, tmy)); in setup()
240 paint.setShader(fProc(gModes[kx], gModes[ky])); in onDraw()
274 paint->setShader(img->makeShader(tx, ty)); in __anonfbb9a4440202()
279 paint->setShader(img->makeShader(tx, ty)); in __anonfbb9a4440302()
284 paint->setShader(img->makeShader(tx, ty)); in __anonfbb9a4440402()
292 paint->setShader(SkGradientShader::MakeLinear(pts, colors, pos, count, tx)); in __anonfbb9a4440502()
298 paint->setShader(SkGradientShader::MakeRadial({ img->width()*0.5f, img->width()*0.5f }, in __anonfbb9a4440602()
Dxfermodes2.cpp50 p.setShader(fBG); in onDraw()
56 p.setShader(fDst); in onDraw()
58 p.setShader(fSrc); in onDraw()
66 p.setShader(nullptr); in onDraw()
/external/skia/gm/
Dgamma.cpp125 p.setShader(ditherBmp.makeShader(rpt, rpt));
134 p.setShader(ditherBmp.makeShader(rpt, rpt, &offsetMatrix));
140 p.setShader(ditherBmp.makeShader(rpt, rpt, &scaleMatrix));
146 p.setShader(mipmapBmp.makeShader(rpt, rpt, &scaleMatrix));
162 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2, SkTileMode::kClamp));
174 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 2, SkTileMode::kClamp));
186 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 3, SkTileMode::kClamp));
198 p.setShader(SkGradientShader::MakeLinear(points, colors, nullptr, 5, SkTileMode::kClamp));
209 p.setShader(linearGreyBmp.makeShader(rpt, rpt));
214 p.setShader(srgbGreyBmp.makeShader(rpt, rpt));
Dlocalmatriximageshader.cpp45 paint.setShader(redLocalMatrixShader);
53 paint.setShader(blueLocalMatrixShader);
62 paint.setShader(image->makeShader(mode[0], mode[1], &matrix));
65 paint.setShader(image->makeShader(mode[0], mode[1], &matrix));
76 p.setShader(image->makeShader()->makeWithLocalMatrix(m));
Dgradients.cpp217 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, scale)); in onDraw()
274 paint.setShader(gGradMakers4f[j](pts, gGradData[i], tm, scale)); in onDraw()
325 paint.setShader(gGradMakers[j](pts, gGradData[i], tm, perspective)); in onDraw()
407 paint.setShader(SkGradientShader::MakeTwoPointConical(c0, r0, c1, r1, colors, in onDraw()
448 paint.setShader(SkGradientShader::MakeTwoPointConical(c0, r0, c1, r1, colors, pos,
479 paint.setShader(SkGradientShader::MakeRadial( in onDraw()
513 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, pos, in onDraw()
556 paint1.setShader(SkGradientShader::MakeSweep(cx, cy, sweep_colors, in onDraw()
559 paint2.setShader(SkGradientShader::MakeRadial(center, radius, colors1, in onDraw()
563 paint3.setShader(SkGradientShader::MakeRadial(center, radius, colors2, in onDraw()
[all …]
Dbitmapshader.cpp78 paint.setShader(fBitmap.makeShader(&s)); in onDraw()
93 paint.setShader(nullptr); in onDraw()
100 paint.setShader(fMask.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, &s)); in onDraw()
138 paint.setShader(bitmap.makeShader(SkTileMode::kMirror, SkTileMode::kMirror));
Dgradtext.cpp66 paint.setShader(make_chrome_solid()); in onDraw()
92 paint.setShader(make_chrome_solid()); in onDraw()
113 paints[0].setShader(make_grad(80.0f));
114 paints[1].setShader(make_grad2(80.0f));
Dmixercolorfilter.cpp88 paint.setShader(SkGradientShader::MakeSweep(fTileSize.width() / 2, in onDraw()
179 paint.setShader(fS0); in onDraw()
182 paint.setShader(fS1); in onDraw()
189 paint.setShader(sh2); in onDraw()
194 paint.setShader(sh); in onDraw()
Dtilemodes.cpp45 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
52 paint->setShader(bm.makeShader(tmx, tmy)); in setup()
248 paint.setShader(fProc(gModes[kx], gModes[ky])); in onDraw()
278 paint->setShader(img->makeShader(tx, ty)); in __anon819a724d0202()
283 paint->setShader(img->makeShader(tx, ty)); in __anon819a724d0302()
288 paint->setShader(img->makeShader(tx, ty)); in __anon819a724d0402()
296 paint->setShader(SkGradientShader::MakeLinear(pts, colors, pos, count, tx)); in __anon819a724d0502()
302 paint->setShader(SkGradientShader::MakeRadial({ img->width()*0.5f, img->width()*0.5f }, in __anon819a724d0602()
Dcomposeshader.cpp71 paint.setShader(fShader); in onDraw()
111 paint.setShader(nullptr); in onDraw()
115 paint.setShader(shaders[y]); in onDraw()
217 paint.setShader(shaders[y]); in onDraw()
276 paint.setShader(
307 p.setShader(dst); in draw_cell()
311 p.setShader(src); in draw_cell()
320 p.setShader(SkShaders::Blend(mode, dst, src)); in draw_composed()
Dxfermodes2.cpp65 p.setShader(fBG); in onDraw()
71 p.setShader(fDst); in onDraw()
73 p.setShader(fSrc); in onDraw()
81 p.setShader(nullptr); in onDraw()
Dp3.cpp199 paint.setShader(bm.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat));
218 paint.setShader(SkGradientShader::MakeLinear(points, colors, p3,
244 paint.setShader(
273 paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb,
299 paint.setShader(
327 paint.setShader(
365 as_shader.setShader(bm.makeShader());
Druntimeshader.cpp44 p.setShader(std::move(shader)); in onDraw()
70 … paint.setShader(SkGradientShader::MakeRadial({0,0}, rad, colors, nullptr, 2, SkTileMode::kClamp)); in make_threshold()
153 paint.setShader(fEffect->makeShader(data, children, SK_ARRAY_COUNT(children), in onDraw()
158 paint.setShader(shader); in onDraw()
/external/skqp/tests/
DPictureShaderTest.cpp27 paint.setShader(SkShader::MakePictureShader( in DEF_TEST()
36 paint.setShader(SkShader::MakePictureShader(factory.finishRecordingAsPicture(), in DEF_TEST()
59 paint.setShader(SkPictureShader::Make(picture, in DEF_TEST()
71 paint.setShader(SkPictureShader::Make(makePicture(), in DEF_TEST()
DGradientTest.cpp25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in test_big_grad()
146 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in TestConstantGradient()
281 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_nearly_vertical()
293 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_vertical()
310 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)); in test_linear_fuzz()
324 p.setShader(SkGradientShader::MakeTwoPointConical( in test_two_point_conical_zero_radius()
343 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
350 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
365 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_degenerate_linear()
476 paint.setShader(SkGradientShader::MakeLinear(config.fPts, in test_linear_fuzzer()
[all …]
/external/skia/docs/examples/
D50_percent_gray.cpp21 p.setShader(make_bw_dither()); in draw()
38 p.setShader(nullptr); in draw()
40 p.setShader(nullptr); in draw()
/external/skia/tests/
DGradientTest.cpp25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad()
145 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in TestConstantGradient()
280 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_nearly_vertical()
292 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_vertical()
309 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkTileMode::kClamp)); in test_linear_fuzz()
323 p.setShader(SkGradientShader::MakeTwoPointConical( in test_two_point_conical_zero_radius()
342 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkTileMode::kClamp)); in test_clamping_overflow()
349 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkTileMode::kClamp)); in test_clamping_overflow()
364 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_degenerate_linear()
475 paint.setShader(SkGradientShader::MakeLinear(config.fPts, in test_linear_fuzzer()
[all …]
/external/skqp/docs/
DSkBlendMode_Reference.bmh245 paint.setShader(SkGradientShader::MakeRadial({ 64, 64}, 100,
313 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors),
319 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas),
337 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors),
343 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas),
361 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors),
367 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas),
386 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors),
392 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas),
411 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors),
[all …]
/external/skia/samplecode/
DSampleShaders.cpp70 paint.setShader(fShader); in onDrawContent()
75 paint.setShader(nullptr); in onDrawContent()
77 paint.setShader(fShaderFade); in onDrawContent()

12345678910>>...22