Home
last modified time | relevance | path

Searched refs:MakeLinear (Results 1 – 25 of 86) sorted by relevance

1234

/external/skia/include/effects/
DSkGradientShader.h41 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
45 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
48 return MakeLinear(pts, colors, pos, count, mode, 0, NULL); in MakeLinear()
63 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
67 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
70 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, NULL); in MakeLinear()
/external/skia/tests/
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()
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()
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()
341 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
348 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
363 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_degenerate_linear()
465 paint.setShader(SkGradientShader::MakeLinear(config.fPts, in test_linear_fuzzer()
/external/skia/gm/
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()
Dshaderbounds.cpp13 static sk_sp<SkShader> MakeLinear(SkScalar width, SkScalar height, bool alternate, in MakeLinear() function
22 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode, in MakeLinear()
102 return new ShaderBoundsGM(MakeLinear, SkString("shaderbounds_linear")); in MyFactory()
DgradientDirtyLaundry.cpp38 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
39 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
56 MakeLinear, MakeRadial, MakeSweep,
Dshadertext.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), in makebm()
50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
51 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
84 MakeLinear, MakeRadial, MakeSweep, Make2Conical
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()
Dcoloremoji.cpp23 static sk_sp<SkShader> MakeLinear() { in MakeLinear() function
27 return SkGradientShader::MakeLinear(kPts, kColors, kPos, SK_ARRAY_COUNT(kColors), in MakeLinear()
106 shaderPaint.setShader(MakeLinear()); in onDraw()
Dgradients_no_texture.cpp30 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
31 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
76 MakeLinear, MakeRadial, MakeSweep, Make2Radial, Make2Conical,
258 paint.setShader(SkGradientShader::MakeLinear(pts, rec.fColors, rec.fPos, rec.fCount, in onDraw()
Dshadertext3.cpp30 paint.setShader(SkGradientShader::MakeLinear(kPts0, kColors0, kPos, in makebm()
33 paint.setShader(SkGradientShader::MakeLinear(kPts1, kColors1, kPos, in makebm()
Dgradients.cpp57 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear() function
59 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()
163 MakeLinear, MakeRadial, MakeSweep, Make2Radial, Make2Conical
715 fShader[index] = SkGradientShader::MakeLinear(pts, colors, pos, in onOnceBeforeDraw()
784 paint.setShader(SkGradientShader::MakeLinear(configs[i].pts, colors, configs[i].pos, in onDraw()
816 return SkGradientShader::MakeLinear(pts, run.fColors, run.fPos, run.fCount, mode); in make_linear()
910 p.setShader(SkGradientShader::MakeLinear( in draw_many_stops()
928 p.setShader(SkGradientShader::MakeLinear( in draw_subpixel_gradient()
Dcomposeshader.cpp25 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_shader()
31 auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_shader()
147 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_linear_gradient_shader()
Dgammatext.cpp18 return SkGradientShader::MakeLinear(pts, bw, nullptr, SK_ARRAY_COUNT(bw), in make_heatGradient()
104 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode);
Dlumafilter.cpp89 fGr1 = SkGradientShader::MakeLinear(g1Points, g1Colors, pos, SK_ARRAY_COUNT(g1Colors), in LumaFilterGM()
91 fGr2 = SkGradientShader::MakeLinear(g2Points, g2Colors, pos, SK_ARRAY_COUNT(g2Colors), in LumaFilterGM()
Drectangletexture.cpp46 paint.setShader(SkGradientShader::MakeLinear(pts, colors0, nullptr, 2, in fillPixels()
52 paint.setShader(SkGradientShader::MakeLinear(pts, colors1, nullptr, 2, in fillPixels()
Darithmode.cpp32 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_src()
48 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_dst()
Dperspshaders.cpp65 fLinearGrad1 = SkGradientShader::MakeLinear(pts1, colors, pos, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
67 fLinearGrad2 = SkGradientShader::MakeLinear(pts2, colors, pos, SK_ARRAY_COUNT(colors), in onOnceBeforeDraw()
/external/skia/samplecode/
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()
DSampleGradients.cpp15 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in setgrad()
65 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
66 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
110 MakeLinear, MakeRadial, MakeSweep, Make2Conical, Make2ConicalConcentric
DSampleShaderText.cpp26 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, in makebm()
57 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
58 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
91 MakeLinear, MakeRadial, MakeSweep, Make2Conical
DSampleClamp.cpp18 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_linear()
/external/skia/bench/
DAlternatingColorPatternBench.cpp54 paint.setShader(SkGradientShader::MakeLinear(kPts0, kColors0, kPos, SK_ARRAY_COUNT(kColors0), in makebm()
57 paint.setShader(SkGradientShader::MakeLinear(kPts1, kColors1, kPos, SK_ARRAY_COUNT(kColors1), in makebm()
DGradientBench.cpp49 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, in MakeLinear() function
52 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, in MakeLinear()
135 { MakeLinear, "linear" },
380 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, in onDraw()

1234