Home
last modified time | relevance | path

Searched refs:SkGradientShader (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/external/skqp/gm/
Dgradients.cpp57 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm, 0, in MakeLinear()
64 return SkGradientShader::MakeLinear(pts, data.fColors4f, srgb, data.fPos, data.fCount, tm, 0, in MakeLinear4f()
73 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
83 return SkGradientShader::MakeRadial(center, center.fX, data.fColors4f, srgb, data.fPos, in MakeRadial4f()
92 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount, in MakeSweep()
102 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors4f, srgb, data.fPos, in MakeSweep4f()
113 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
127 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial4f()
140 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
153 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
[all …]
Dgradients_2pt_conical.cpp47 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
57 return SkGradientShader::MakeTwoPointConical(center0, radius, center1, radius, data.fColors, in Make2ConicalOutsideStrip()
68 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
79 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInside()
92 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalInsideFlip()
103 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInsideCenter()
114 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalInsideCenterReversed()
127 return SkGradientShader::MakeTwoPointConical(center1, 0.f, in Make2ConicalZeroRad()
140 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadFlip()
153 return SkGradientShader::MakeTwoPointConical(center0, 0.f, center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadCenter()
[all …]
Dgradients_degenerate.cpp78 return SkGradientShader::MakeLinear(pts, COLORS, POS, COLOR_CT, mode); in make_linear()
83 return SkGradientShader::MakeRadial(CENTER, 0.0, COLORS, POS, COLOR_CT, mode); in make_radial()
89 return SkGradientShader::MakeSweep(CENTER.fX, CENTER.fY, COLORS, POS, COLOR_CT, mode, in make_sweep()
95 return SkGradientShader::MakeSweep(CENTER.fX, CENTER.fY, COLORS, POS, COLOR_CT, mode, in make_sweep_zero_ang()
101 return SkGradientShader::MakeTwoPointConical(CENTER, TILE_SIZE / 2, CENTER, TILE_SIZE / 2, in make_2pt_conic()
107 return SkGradientShader::MakeTwoPointConical(CENTER, 0.0, CENTER, 0.0, COLORS, POS, in make_2pt_conic_zero_rad()
Dshallowgradient.cpp15 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); in shader_linear()
20 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, in shader_radial()
26 return SkGradientShader::MakeTwoPointConical(center, size.width()/64, center, size.width()/2, in shader_conical()
31 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); in shader_sweep()
Dp3.cpp200 paint.setShader(SkGradientShader::MakeLinear(points, colors, p3,
227 SkGradientShader::MakeLinear(points, colors, p3,
230 SkGradientShader::kInterpolateColorsInPremul_Flag,
255 paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb,
282 SkGradientShader::MakeLinear(points, colors, srgb,
285 SkGradientShader::kInterpolateColorsInPremul_Flag,
310 SkGradientShader::MakeLinear(points, colors, p3,
313 SkGradientShader::kInterpolateColorsInPremul_Flag,
Dhighcontrastfilter.cpp74 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
81 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
100 fGr1 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
103 fGr2 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
/external/skia/gm/
Dgradients.cpp57 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm, 0, in MakeLinear()
64 return SkGradientShader::MakeLinear(pts, data.fColors4f, srgb, data.fPos, data.fCount, tm, 0, in MakeLinear4f()
73 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
83 return SkGradientShader::MakeRadial(center, center.fX, data.fColors4f, srgb, data.fPos, in MakeRadial4f()
92 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount, in MakeSweep()
102 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors4f, srgb, data.fPos, in MakeSweep4f()
113 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
127 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial4f()
140 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
153 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
[all …]
Dgradients_2pt_conical.cpp47 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
57 return SkGradientShader::MakeTwoPointConical(center0, radius, center1, radius, data.fColors, in Make2ConicalOutsideStrip()
68 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
79 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInside()
92 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalInsideFlip()
103 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInsideCenter()
114 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalInsideCenterReversed()
127 return SkGradientShader::MakeTwoPointConical(center1, 0.f, in Make2ConicalZeroRad()
140 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadFlip()
153 return SkGradientShader::MakeTwoPointConical(center0, 0.f, center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadCenter()
[all …]
Dgradients_degenerate.cpp78 return SkGradientShader::MakeLinear(pts, COLORS, POS, COLOR_CT, mode); in make_linear()
83 return SkGradientShader::MakeRadial(CENTER, 0.0, COLORS, POS, COLOR_CT, mode); in make_radial()
89 return SkGradientShader::MakeSweep(CENTER.fX, CENTER.fY, COLORS, POS, COLOR_CT, mode, in make_sweep()
95 return SkGradientShader::MakeSweep(CENTER.fX, CENTER.fY, COLORS, POS, COLOR_CT, mode, in make_sweep_zero_ang()
101 return SkGradientShader::MakeTwoPointConical(CENTER, TILE_SIZE / 2, CENTER, TILE_SIZE / 2, in make_2pt_conic()
107 return SkGradientShader::MakeTwoPointConical(CENTER, 0.0, CENTER, 0.0, COLORS, POS, in make_2pt_conic_zero_rad()
Dshallowgradient.cpp15 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); in shader_linear()
20 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, in shader_radial()
26 return SkGradientShader::MakeTwoPointConical(center, size.width()/64, center, size.width()/2, in shader_conical()
31 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); in shader_sweep()
Dp3.cpp202 paint.setShader(SkGradientShader::MakeLinear(points, colors, p3,
229 SkGradientShader::MakeLinear(points, colors, p3,
232 SkGradientShader::kInterpolateColorsInPremul_Flag,
257 paint.setShader(SkGradientShader::MakeLinear(points, colors, srgb,
284 SkGradientShader::MakeLinear(points, colors, srgb,
287 SkGradientShader::kInterpolateColorsInPremul_Flag,
312 SkGradientShader::MakeLinear(points, colors, p3,
315 SkGradientShader::kInterpolateColorsInPremul_Flag,
Dhighcontrastfilter.cpp74 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
81 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
100 fGr1 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
103 fGr2 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
Dgradients_no_texture.cpp30 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
37 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial()
44 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
53 return SkGradientShader::MakeTwoPointConical( in Make2Radial()
65 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
257 paint.setShader(SkGradientShader::MakeLinear(pts, rec.fColors, rec.fPos, rec.fCount, in onDraw()
/external/skia/tests/
DGradientTest.cpp25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in test_big_grad()
89 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
99 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
111 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
122 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
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()
[all …]
DShaderOpacityTest.cpp62 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
69 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
76 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
83 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
/external/skqp/tests/
DGradientTest.cpp25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in test_big_grad()
89 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
99 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
111 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
122 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
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()
[all …]
DShaderOpacityTest.cpp62 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
69 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
76 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
83 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
/external/skqp/samplecode/
DSampleGradients.cpp14 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in setgrad()
65 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
72 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial()
80 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
89 return SkGradientShader::MakeTwoPointConical( in Make2Conical()
100 return SkGradientShader::MakeTwoPointConical( in Make2ConicalConcentric()
/external/skia/samplecode/
DSampleGradients.cpp14 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in setgrad()
65 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
72 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial()
80 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
89 return SkGradientShader::MakeTwoPointConical( in Make2Conical()
100 return SkGradientShader::MakeTwoPointConical( in Make2ConicalConcentric()
/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/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/skqp/modules/sksg/src/
DSkSGGradient.cpp42 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), in onMakeShader()
51 ? SkGradientShader::MakeRadial(fEndCenter, fEndRadius, in onMakeShader()
54 : SkGradientShader::MakeTwoPointConical(fStartCenter, fStartRadius, in onMakeShader()
/external/skia/modules/sksg/src/
DSkSGGradient.cpp42 return SkGradientShader::MakeLinear(pts, colors.data(), positions.data(), colors.size(), in onMakeShader()
51 ? SkGradientShader::MakeRadial(fEndCenter, fEndRadius, in onMakeShader()
54 : SkGradientShader::MakeTwoPointConical(fStartCenter, fStartRadius, in onMakeShader()
/external/skia/bench/
DGradientBench.cpp52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
60 return SkGradientShader::MakeRadial(center, center.fX * scale, data.fColors, in MakeRadial()
70 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
81 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeConical()
94 return SkGradientShader::MakeTwoPointConical(center1, 0.0, in MakeConicalZeroRad()
107 return SkGradientShader::MakeTwoPointConical(center0, radius0, in MakeConicalOutside()
121 return SkGradientShader::MakeTwoPointConical(center0, 0.0, in MakeConicalOutsideZeroRad()
355 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, in onDraw()
/external/skqp/bench/
DGradientBench.cpp52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
60 return SkGradientShader::MakeRadial(center, center.fX * scale, data.fColors, in MakeRadial()
70 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
81 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeConical()
94 return SkGradientShader::MakeTwoPointConical(center1, 0.0, in MakeConicalZeroRad()
107 return SkGradientShader::MakeTwoPointConical(center0, radius0, in MakeConicalOutside()
121 return SkGradientShader::MakeTwoPointConical(center0, 0.0, in MakeConicalOutsideZeroRad()
355 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, in onDraw()

12345678910>>...12