Home
last modified time | relevance | path

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

123456

/external/skia/gm/
Dgradients.cpp58 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm, 0, in MakeLinear()
65 return SkGradientShader::MakeLinear(pts, data.fColors4f, srgb, data.fPos, data.fCount, tm, 0, in MakeLinear4f()
74 return SkGradientShader::MakeRadial(center, center.fX, data.fColors, data.fPos, data.fCount, in MakeRadial()
84 return SkGradientShader::MakeRadial(center, center.fX, data.fColors4f, srgb, data.fPos, in MakeRadial4f()
93 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors, data.fPos, data.fCount, in MakeSweep()
103 return SkGradientShader::MakeSweep(center.fX, center.fY, data.fColors4f, srgb, data.fPos, in MakeSweep4f()
114 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial()
128 return SkGradientShader::MakeTwoPointConical(center1, (pts[1].fX - pts[0].fX) / 7, in Make2Radial4f()
141 return SkGradientShader::MakeTwoPointConical(center1, radius1, center0, radius0, in Make2Conical()
154 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()
Dbug6643.cpp17 p.setShader(SkGradientShader::MakeSweep(100, 100, colors, nullptr, SK_ARRAY_COUNT(colors),
18 SkGradientShader::kInterpolateColorsInPremul_Flag,
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,
Dcolorfilterimagefilter.cpp60 return SkGradientShader::MakeLinear(pts, colors, nullptr, 3, SkShader::kRepeat_TileMode); in sh_make_lineargradient0()
66 return SkGradientShader::MakeLinear(pts, colors, nullptr, 3, SkShader::kRepeat_TileMode); in sh_make_lineargradient1()
203 *shaders.append() = SkGradientShader::MakeTwoPointConical({0, 0}, 50, {0, 0}, 150,
231 auto shaderB = SkGradientShader::MakeRadial({60, 60}, 55, colors, nullptr, 2,
233 SkGradientShader::kInterpolateColorsInPremul_Flag,
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()
/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()
277 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_nearly_vertical()
289 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); in test_vertical()
306 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)); in test_linear_fuzz()
320 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/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/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/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/src/shaders/gradients/
DSkSweepGradient.cpp42 return SkGradientShader::MakeSweep(center.x(), center.y(), desc.fColors, in CreateProc()
129 SkGradientShader::MakeSweep(center.fX, center.fY, params.fColors4f, params.fColorSpace, in TestCreate()
131 SkGradientShader::MakeSweep(center.fX, center.fY, params.fColors, in TestCreate()
202 return SkGradientShader::MakeSweep(fCenter.fX, fCenter.fY, xformedColors.begin(), fOrigPos, in onMakeColorSpace()
/external/skia/experimental/FileReaderApp/
DFileReaderWindow.mm2 #import "SkGradientShader.h"
12 SkGradientShader::CreateLinear(pts, colors, pos, 2,

123456