/third_party/flutter/skia/gm/ |
D | gamma.cpp | 125 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));
|
D | localmatriximageshader.cpp | 45 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));
|
D | gradients.cpp | 217 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 …]
|
D | bitmapshader.cpp | 78 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));
|
D | gradtext.cpp | 66 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));
|
D | mixercolorfilter.cpp | 88 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()
|
D | composeshader.cpp | 71 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()
|
D | tilemodes.cpp | 45 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 __anon79b6b54a0202() 283 paint->setShader(img->makeShader(tx, ty)); in __anon79b6b54a0302() 288 paint->setShader(img->makeShader(tx, ty)); in __anon79b6b54a0402() 296 paint->setShader(SkGradientShader::MakeLinear(pts, colors, pos, count, tx)); in __anon79b6b54a0502() 302 paint->setShader(SkGradientShader::MakeRadial({ img->width()*0.5f, img->width()*0.5f }, in __anon79b6b54a0602()
|
D | xfermodes2.cpp | 65 p.setShader(fBG); in onDraw() 71 p.setShader(fDst); in onDraw() 73 p.setShader(fSrc); in onDraw() 81 p.setShader(nullptr); in onDraw()
|
D | p3.cpp | 199 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());
|
/third_party/skia/gm/ |
D | localmatriximageshader.cpp | 44 paint.setShader(redLocalMatrixShader); 52 paint.setShader(blueLocalMatrixShader); 61 paint.setShader(image->makeShader(mode[0], mode[1], SkSamplingOptions(), &matrix)); 64 paint.setShader(image->makeShader(mode[0], mode[1], SkSamplingOptions(), &matrix)); 74 p.setShader(image->makeShader(SkSamplingOptions(SkCubicResampler::Mitchell()))
|
D | runtimeshader.cpp | 80 p.setShader(builder.makeShader(&localM, true)); in onDraw() 102 … paint.setShader(SkGradientShader::MakeRadial({0,0}, rad, colors, nullptr, 2, SkTileMode::kClamp)); in make_threshold() 170 paint.setShader(builder.makeShader(nullptr, true)); in onDraw() 174 paint.setShader(shader); in onDraw() 216 paint.setShader(builder.makeShader(nullptr, true)); in onDraw() 257 paint.setShader(builder.makeShader(nullptr, true)); in onDraw() 333 paint.setShader(builder.makeShader(nullptr, true)); in onDraw() 339 paint.setShader(builder.makeShader(nullptr, true)); in onDraw() 449 paint.setShader(builder.makeShader(nullptr, false)); in onDraw() 455 paint.setShader(builder.makeShader(nullptr, false)); in onDraw() [all …]
|
D | gradients.cpp | 217 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 …]
|
D | gradtext.cpp | 66 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));
|
D | bitmapshader.cpp | 78 paint.setShader(fImage->makeShader(SkSamplingOptions(), s)); in onDraw() 93 paint.setShader(nullptr); in onDraw() 100 paint.setShader(fMask->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, in onDraw() 138 paint.setShader(bitmap.makeShader(SkTileMode::kMirror, SkTileMode::kMirror,
|
D | tilemodes.cpp | 44 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm() 51 paint->setShader(bm.makeShader(tmx, tmy, SkSamplingOptions(fm))); in setup() 245 paint.setShader(fProc(gModes[kx], gModes[ky])); in onDraw() 275 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kNearest))); in __anona7b52a950202() 279 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kLinear))); in __anona7b52a950302() 283 … paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkCubicResampler::Mitchell()))); in __anona7b52a950402() 290 paint->setShader(SkGradientShader::MakeLinear(pts, colors, pos, count, tx)); in __anona7b52a950502() 296 paint->setShader(SkGradientShader::MakeRadial({ img->width()*0.5f, img->width()*0.5f }, in __anona7b52a950602()
|
D | composeshader.cpp | 70 paint.setShader(fShader); in onDraw() 110 paint.setShader(nullptr); in onDraw() 114 paint.setShader(shaders[y]); in onDraw() 218 paint.setShader(shaders[y]); in onDraw() 277 paint.setShader( 310 p.setShader(dst); in draw_cell() 314 p.setShader(src); in draw_cell() 323 p.setShader(SkShaders::Blend(mode, dst, src)); in draw_composed()
|
D | xfermodes2.cpp | 65 p.setShader(fBG); in onDraw() 71 p.setShader(fDst); in onDraw() 73 p.setShader(fSrc); in onDraw() 81 p.setShader(nullptr); in onDraw()
|
D | p3.cpp | 183 paint.setShader(bm.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, 203 paint.setShader(SkGradientShader::MakeLinear(points, colors, p3, 229 paint.setShader( 258 paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb, 284 paint.setShader( 312 paint.setShader( 350 as_shader.setShader(bm.makeShader(sampling));
|
/third_party/skia/docs/examples/ |
D | 50_percent_gray.cpp | 22 p.setShader(make_bw_dither()); in draw() 38 p.setShader(nullptr); in draw() 40 p.setShader(nullptr); in draw()
|
D | Paint_refShader.cpp | 8 paint1.setShader(SkShaders::Empty()); in draw() 10 paint2.setShader(paint1.refShader()); in draw()
|
/third_party/skia/tests/ |
D | GradientTest.cpp | 28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad() 148 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in TestConstantGradient() 283 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_nearly_vertical() 295 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_vertical() 312 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkTileMode::kClamp)); in test_linear_fuzz() 326 p.setShader(SkGradientShader::MakeTwoPointConical( in test_two_point_conical_zero_radius() 345 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkTileMode::kClamp)); in test_clamping_overflow() 352 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkTileMode::kClamp)); in test_clamping_overflow() 367 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_degenerate_linear() 508 paint.setShader(SkGradientShader::MakeLinear(config.fPts, in test_linear_fuzzer() [all …]
|
/third_party/flutter/skia/tests/ |
D | GradientTest.cpp | 25 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 …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleShaders.cpp | 70 paint.setShader(fShader); in onDrawContent() 75 paint.setShader(nullptr); in onDrawContent() 77 paint.setShader(fShaderFade); in onDrawContent()
|
/third_party/flutter/skia/docs/examples/ |
D | Paint_refShader.cpp | 8 paint1.setShader(SkShaders::Empty()); in draw() 10 paint2.setShader(paint1.refShader()); in draw()
|