Home
last modified time | relevance | path

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

123456

/external/skia/gm/
Dgradients.cpp59 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm, 0, in MakeLinear()
66 return SkGradientShader::MakeLinear(pts, data.fColors4f, srgb, data.fPos, data.fCount, tm, 0, in MakeLinear4f()
75 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
85 return SkGradientShader::MakeRadial(center, center.fX, data.fColors4f, srgb, data.fPos, in MakeRadial4f()
94 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount, in MakeSweep()
104 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors4f, srgb, data.fPos, in MakeSweep4f()
115 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
129 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial4f()
142 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
155 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical4f()
[all …]
Dgradients_2pt_conical.cpp48 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, data.fColors, in Make2ConicalOutside()
59 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalOutsideFlip()
70 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInside()
83 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalInsideFlip()
96 return SkGradientShader::MakeTwoPointConical(center0, (pts[1].fX - pts[0].fX) / 7, in Make2ConicalInsideCenter()
109 return SkGradientShader::MakeTwoPointConical(center1, 0.f, in Make2ConicalZeroRad()
122 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadFlip()
135 return SkGradientShader::MakeTwoPointConical(center0, 0.f, center0, (pts[1].fX - pts[0].fX) / 2, in Make2ConicalZeroRadCenter()
148 return SkGradientShader::MakeTwoPointConical(center0, radius0, center1, radius1, in Make2ConicalZeroRadOutside()
161 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, data.fColors, in Make2ConicalZeroRadFlipOutside()
[all …]
Dshallowgradient.cpp16 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); in shader_linear()
21 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, in shader_radial()
27 return SkGradientShader::MakeTwoPointConical(center, size.width()/64, center, size.width()/2, in shader_conical()
32 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); in shader_sweep()
Dhighcontrastfilter.cpp69 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
76 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
95 fGr1 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
98 fGr2 = SkGradientShader::MakeLinear( in HighContrastFilterGM()
Dshadertext.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
51 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
58 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
66 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
75 return SkGradientShader::MakeTwoPointConical( in Make2Conical()
Dgradients_no_texture.cpp31 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
38 … return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial()
45 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
54 return SkGradientShader::MakeTwoPointConical( in Make2Radial()
66 return SkGradientShader::MakeTwoPointConical(center1, radius1, in Make2Conical()
258 paint.setShader(SkGradientShader::MakeLinear(pts, rec.fColors, rec.fPos, rec.fCount, in onDraw()
DgradientDirtyLaundry.cpp39 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
44 return SkGradientShader::MakeRadial(pt, pt.fX, data.fColors, data.fPos, data.fCount, tm); in MakeRadial()
49 return SkGradientShader::MakeSweep(pt.fX, pt.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
Dgamma.cpp144 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,
Dgradtext.cpp18 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad()
26 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad2()
33 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_chrome_solid()
Drrectclipdrawpaint.cpp38 p.setShader(SkGradientShader::MakeLinear(kPts, kColors1, nullptr, 2,
47 p.setShader(SkGradientShader::MakeRadial({128.f, 128.f}, 128.f, kColors2, nullptr, 2,
Dalphagradients.cpp30 uint32_t flags = doPreMul ? SkGradientShader::kInterpolateColorsInPremul_Flag : 0; in draw_grad()
31 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in draw_grad()
Dtexturedomaineffect.cpp55 paint.setShader(SkGradientShader::MakeSweep(65.f, 75.f, colors1, nullptr, in onOnceBeforeDraw()
61 paint.setShader(SkGradientShader::MakeSweep(45.f, 55.f, colors2, nullptr, in onOnceBeforeDraw()
68 paint.setShader(SkGradientShader::MakeSweep(25.f, 35.f, colors3, nullptr, in onOnceBeforeDraw()
Dtilemodes_scaled.cpp31 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, in makebm()
179 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
181 … return SkGradientShader::MakeRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
183 … return SkGradientShader::MakeSweep(center.fX, center.fY, colors, nullptr, SK_ARRAY_COUNT(colors)); in make_grad()
Dtilemodes.cpp32 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
176 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
178 … return SkGradientShader::MakeRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx); in make_grad()
180 … return SkGradientShader::MakeSweep(center.fX, center.fY, colors, nullptr, SK_ARRAY_COUNT(colors)); in make_grad()
Dshadertext3.cpp30 paint.setShader(SkGradientShader::MakeLinear(kPts0, kColors0, kPos, in makebm()
33 paint.setShader(SkGradientShader::MakeLinear(kPts1, kColors1, kPos, in makebm()
/external/skia/tests/
DGradientTest.cpp26 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, in test_big_grad()
90 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
100 sk_sp<SkShader> s(SkGradientShader::MakeRadial(buildRec.fPoint[0], buildRec.fRadius[0], in radial_gradproc()
112 sk_sp<SkShader> s(SkGradientShader::MakeSweep(buildRec.fPoint[0].fX, buildRec.fPoint[0].fY, in sweep_gradproc()
123 sk_sp<SkShader> s(SkGradientShader::MakeTwoPointConical(buildRec.fPoint[0], in conical_gradproc()
147 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in TestConstantGradient()
279 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_nearly_vertical()
291 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_vertical()
308 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)); in test_linear_fuzz()
322 p.setShader(SkGradientShader::MakeTwoPointConical( in test_two_point_conical_zero_radius()
[all …]
DShaderOpacityTest.cpp61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
82 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); in test_gradient()
/external/skia/samplecode/
DSampleGradients.cpp15 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in setgrad()
66 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
73 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial()
81 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
90 return SkGradientShader::MakeTwoPointConical( in Make2Conical()
101 return SkGradientShader::MakeTwoPointConical( in Make2ConicalConcentric()
DSampleShaderText.cpp26 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, in makebm()
58 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
65 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, in MakeRadial()
73 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
82 return SkGradientShader::MakeTwoPointConical( in Make2Conical()
DSampleShaders.cpp31 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_bitmapfade()
54 … auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in ShaderView()
60 … auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in ShaderView()
/external/skia/src/c/
Dsk_effects.cpp65 return (sk_shader_t*)SkGradientShader::MakeLinear(reinterpret_cast<const SkPoint*>(pts), in sk_shader_new_linear_gradient()
93 return (sk_shader_t*)SkGradientShader::MakeRadial(center, (SkScalar)radius, in sk_shader_new_radial_gradient()
110 return (sk_shader_t*)SkGradientShader::MakeSweep((SkScalar)(ccenter->x), in sk_shader_new_sweep_gradient()
138 return (sk_shader_t*)SkGradientShader::MakeTwoPointConical(skstart, (SkScalar)startRadius, in sk_shader_new_two_point_conical_gradient()
/external/skia/bench/
DGradientBench.cpp52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, in MakeLinear()
61 return SkGradientShader::MakeRadial(center, center.fX * scale, data.fColors, in MakeRadial()
71 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount); in MakeSweep()
82 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in MakeConical()
95 return SkGradientShader::MakeTwoPointConical(center1, 0.0, in MakeConicalZeroRad()
108 return SkGradientShader::MakeTwoPointConical(center0, radius0, in MakeConicalOutside()
122 return SkGradientShader::MakeTwoPointConical(center0, 0.0, in MakeConicalOutsideZeroRad()
380 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, in onDraw()
/external/skia/src/core/
DSkColorSpaceXformer.cpp102 return SkGradientShader::MakeLinear(gradient.fPoint, in apply()
110 return SkGradientShader::MakeRadial(gradient.fPoint[0], in apply()
119 return SkGradientShader::MakeSweep(gradient.fPoint[0].fX, in apply()
127 return SkGradientShader::MakeTwoPointConical(gradient.fPoint[0], in apply()
/external/skia/fuzz/
DFuzzGradients.cpp125 p.setShader(SkGradientShader::MakeLinear(pts, colors.data(), pos.data(), in fuzzLinearGradient()
163 p.setShader(SkGradientShader::MakeRadial(center, radius, colors.data(), in fuzzRadialGradient()
201 p.setShader(SkGradientShader::MakeTwoPointConical(start, startRadius, in fuzzTwoPointConicalGradient()
234 p.setShader(SkGradientShader::MakeSweep(cx, cy, colors.data(), in fuzzSweepGradient()
237 p.setShader(SkGradientShader::MakeSweep(cx, cy, colors.data(), in fuzzSweepGradient()
/external/skia/experimental/FileReaderApp/
DFileReaderWindow.mm2 #import "SkGradientShader.h"
12 SkGradientShader::CreateLinear(pts, colors, pos, 2,

123456