Home
last modified time | relevance | path

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

12345678910

/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.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad()
91 sk_sp<SkShader> s(SkGradientShader::MakeLinear(buildRec.fPoint, buildRec.fColors, buildRec.fPos, in linear_gradproc()
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()
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()
387 sk_sp<SkShader> gradient = SkGradientShader::MakeLinear(points, colors, nullptr, positions, 3, in test_unsorted_degenerate()
[all …]
/external/skia/include/effects/
DSkGradientShader.h73 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
77 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
80 return MakeLinear(pts, colors, pos, count, mode, 0, nullptr); in MakeLinear()
97 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
101 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
104 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear()
/external/skqp/tests/
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()
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()
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()
343 p.setShader(SkGradientShader::MakeLinear(pts1, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
350 p.setShader(SkGradientShader::MakeLinear(pts2, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_clamping_overflow()
365 p.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode)); in test_degenerate_linear()
476 paint.setShader(SkGradientShader::MakeLinear(config.fPts, in test_linear_fuzzer()
/external/skqp/include/effects/
DSkGradientShader.h70 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
74 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
77 return MakeLinear(pts, colors, pos, count, mode, 0, nullptr); in MakeLinear()
92 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2],
96 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], in MakeLinear() function
99 return MakeLinear(pts, colors, std::move(colorSpace), pos, count, mode, 0, nullptr); in MakeLinear()
/external/skia/gm/
Dhighcontrastfilter.cpp91 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
98 paint.setShader(SkGradientShader::MakeLinear( in draw_scene()
117 fGr1 = SkGradientShader::MakeLinear( in onOnceBeforeDraw()
120 fGr2 = SkGradientShader::MakeLinear( in onOnceBeforeDraw()
Dgradtext.cpp32 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad()
40 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), in make_grad2()
47 return SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_chrome_solid()
Dgradient_dirty_laundry.cpp50 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkTileMode tm) { in MakeLinear() function
51 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
68 MakeLinear, MakeRadial, MakeSweep,
/external/skqp/gm/
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()
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()
DgradientDirtyLaundry.cpp37 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm… in MakeLinear() function
38 return SkGradientShader::MakeLinear(pts, data.fColors, data.fPos, data.fCount, tm); in MakeLinear()
55 MakeLinear, MakeRadial, MakeSweep,
/external/skqp/src/shaders/gradients/
DSkLinearGradient.cpp44 return SkGradientShader::MakeLinear(pts, desc.fColors, std::move(desc.fColorSpace), desc.fPos, in CreateProc()
85 return SkGradientShader::MakeLinear(pts, xformedColors.fColors.get(), fOrigPos, fColorCount, in onMakeColorSpace()
106 return GrGradientShader::MakeLinear(*this, args); in asFragmentProcessor()
/external/skqp/samplecode/
DSampleShaders.cpp30 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in make_bitmapfade()
53 … auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in ShaderView()
59 … auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); in ShaderView()
/external/skia/docs/examples/
DDst_In.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Over.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Out.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Atop.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Atop.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_In.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DScreen.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DOverlay.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DSrc_Out.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
DDst_Over.cpp10 paint.setShader(SkGradientShader::MakeLinear(horz, colors, nullptr, SK_ARRAY_COUNT(colors), in draw()
16 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas), in draw()
/external/skqp/docs/
DSkBlendMode_Reference.bmh313 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),
417 paint.setShader(SkGradientShader::MakeLinear(vert, alphas, nullptr, SK_ARRAY_COUNT(alphas),
[all …]

12345678910