Home
last modified time | relevance | path

Searched refs:kClamp (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/third_party/flutter/skia/bench/
DHardStopGradientBench_ScaleNumColors.cpp104 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 3);)
105 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 4);)
106 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 5);)
107 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 10);)
108 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 25);)
109 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 50);)
110 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 100);)
DTileBench.cpp118 DEF_BENCH(return new ConstXTileBench(SkTileMode::kClamp, SkTileMode::kClamp, false, false, false))
126 DEF_BENCH(return new ConstXTileBench(SkTileMode::kClamp, SkTileMode::kClamp, false, true, false))
/third_party/skia/bench/
DHardStopGradientBench_ScaleNumColors.cpp104 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 3);)
105 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 4);)
106 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 5);)
107 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 10);)
108 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 25);)
109 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 50);)
110 DEF_BENCH(return new HardStopGradientBench_ScaleNumColors(SkTileMode::kClamp, 100);)
DTileBench.cpp125 DEF_BENCH(return new ConstXTileBench(SkTileMode::kClamp, SkTileMode::kClamp, gNN, false, false))
133 DEF_BENCH(return new ConstXTileBench(SkTileMode::kClamp, SkTileMode::kClamp, gNN, true, false))
/third_party/flutter/skia/src/gpu/
DGrSamplerState.h19 enum class WrapMode : uint8_t { kClamp, kRepeat, kMirrorRepeat, kClampToBorder }; enumerator
23 return GrSamplerState(WrapMode::kClamp, Filter::kBilerp); in ClampBilerp()
26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState()
54 return (WrapMode::kClamp != fWrapModes[0] && WrapMode::kClampToBorder != fWrapModes[0]) || in isRepeated()
55 (WrapMode::kClamp != fWrapModes[1] && WrapMode::kClampToBorder != fWrapModes[1]); in isRepeated()
/third_party/skia/tests/
DGradientTest.cpp28 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad()
148 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in TestConstantGradient()
178 rec.fTileMode = SkTileMode::kClamp; in TestGradientShaders()
245 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kMirror, in TestGradientOptimization()
250 if (gProcInfo[i].fIsClampRestricted && mode != SkTileMode::kClamp) { in TestGradientOptimization()
264 if (!gTests[t].fRequiresNonClamp || mode != SkTileMode::kClamp) { in TestGradientOptimization()
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()
329 colors, nullptr, SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in test_two_point_conical_zero_radius()
[all …]
/third_party/flutter/skia/tests/
DGradientTest.cpp25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp)); in test_big_grad()
145 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in TestConstantGradient()
175 rec.fTileMode = SkTileMode::kClamp; in TestGradientShaders()
242 SkTileMode::kClamp, SkTileMode::kRepeat, SkTileMode::kMirror, in TestGradientOptimization()
247 if (gProcInfo[i].fIsClampRestricted && mode != SkTileMode::kClamp) { in TestGradientOptimization()
261 if (!gTests[t].fRequiresNonClamp || mode != SkTileMode::kClamp) { in TestGradientOptimization()
280 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_nearly_vertical()
292 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkTileMode::kClamp)); in test_vertical()
309 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkTileMode::kClamp)); in test_linear_fuzz()
326 colors, nullptr, SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in test_two_point_conical_zero_radius()
[all …]
/third_party/flutter/skia/gm/
Dgiantbitmap.cpp84 case SkTileMode::kClamp: in onShortName()
134 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, false, false); )
137 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, true, false); )
141 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, false, true); )
144 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, true, true); )
Dgradients.cpp200 SkTileMode tm = SkTileMode::kClamp; in onDraw()
257 SkTileMode tm = SkTileMode::kClamp; in onDraw()
309 SkTileMode tm = SkTileMode::kClamp; in onDraw()
409 SkTileMode::kClamp)); in onDraw()
450 SkTileMode::kClamp));
482 SkTileMode::kClamp)); in onDraw()
515 SkTileMode::kClamp)); in onDraw()
561 SkTileMode::kClamp, in onDraw()
565 SkTileMode::kClamp, in onDraw()
606 SkTileMode::kClamp); in onOnceBeforeDraw()
[all …]
Dmatrixconvolution.cpp55 pts, fColors, pos, 2, SkTileMode::kClamp)); in makeBitmap()
100 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect); in onDraw()
107 this->draw(canvas, 310, 10, kernelOffset, SkTileMode::kClamp, true, &smallRect); in onDraw()
111 this->draw(canvas, 410, 10, kernelOffset, SkTileMode::kClamp, false, &rect); in onDraw()
Dhighcontrastfilter.cpp93 SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in draw_scene()
100 SK_ARRAY_COUNT(colors2), SkTileMode::kClamp)); in draw_scene()
119 SkTileMode::kClamp); in HighContrastFilterGM()
122 SkTileMode::kClamp); in HighContrastFilterGM()
Dclippedbitmapshaders.cpp71 case SkTileMode::kClamp: in onShortName()
125 DEF_GM( return new ClippedBitmapShadersGM(SkTileMode::kClamp); )
129 DEF_GM( return new ClippedBitmapShadersGM(SkTileMode::kClamp, true); )
Dimageblurclampmode.cpp87 filter = SkImageFilters::Blur(sigma, 0.0f, SkTileMode::kClamp, nullptr); in onDraw()
92 filter = SkImageFilters::Blur(0.0f, sigma, SkTileMode::kClamp, nullptr); in onDraw()
97 filter = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr); in onDraw()
/third_party/skia/gm/
Dgiantbitmap.cpp83 case SkTileMode::kClamp: in onShortName()
132 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, false, false); )
135 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, true, false); )
139 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, false, true); )
142 DEF_GM( return new GiantBitmapGM(SkTileMode::kClamp, true, true); )
Dgradients.cpp200 SkTileMode tm = SkTileMode::kClamp; in onDraw()
257 SkTileMode tm = SkTileMode::kClamp; in onDraw()
309 SkTileMode tm = SkTileMode::kClamp; in onDraw()
409 SkTileMode::kClamp)); in onDraw()
450 SkTileMode::kClamp));
482 SkTileMode::kClamp)); in onDraw()
515 SkTileMode::kClamp)); in onDraw()
561 SkTileMode::kClamp, in onDraw()
565 SkTileMode::kClamp, in onDraw()
606 SkTileMode::kClamp); in onOnceBeforeDraw()
[all …]
Dmatrixconvolution.cpp62 pts, fColors, pos, 2, SkTileMode::kClamp)); in makeBitmap()
120 this->draw(canvas, x, 10, kernelOffset, SkTileMode::kClamp, true, &rect); in onDraw()
127 this->draw(canvas, 310, 10, kernelOffset, SkTileMode::kClamp, true, &smallRect); in onDraw()
131 this->draw(canvas, 410, 10, kernelOffset, SkTileMode::kClamp, false, &rect); in onDraw()
Dhighcontrastfilter.cpp93 SK_ARRAY_COUNT(colors), SkTileMode::kClamp)); in draw_scene()
100 SK_ARRAY_COUNT(colors2), SkTileMode::kClamp)); in draw_scene()
119 SkTileMode::kClamp); in onOnceBeforeDraw()
122 SkTileMode::kClamp); in onOnceBeforeDraw()
/third_party/flutter/skia/src/gpu/effects/
DGrSimpleTextureEffect.fp28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest)));
37 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter)));
66 wrapModes[0] = GrSamplerState::WrapMode::kClamp;
67 wrapModes[1] = GrSamplerState::WrapMode::kClamp;
DGrBicubicEffect.h52 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in Make()
100 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in Make()
/third_party/skia/src/core/
DSkBitmapProcState.cpp213 if (fTileModeX != SkTileMode::kClamp || fTileModeY != SkTileMode::kClamp) { in init()
284 && SkTileMode::kClamp == fTileModeX in chooseProcs()
285 && SkTileMode::kClamp == fTileModeY in chooseProcs()
444 if (SkTileMode::kClamp != s.fTileModeX || SkTileMode::kClamp != s.fTileModeY) { in S32_D32_constX_shaderproc()
453 case SkTileMode::kClamp: in S32_D32_constX_shaderproc()
471 (SkTileMode::kClamp != s.fTileModeX || SkTileMode::kClamp != s.fTileModeY)) { in S32_D32_constX_shaderproc()
478 case SkTileMode::kClamp: in S32_D32_constX_shaderproc()
567 if (SkTileMode::kClamp == tx && SkTileMode::kClamp == ty) { in chooseShaderProc32()
/third_party/flutter/skia/samplecode/
DSampleShaders.cpp28 SkTileMode::kClamp)); in make_bitmapfade()
39 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_blend_shader()
45 auto shaderB = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkTileMode::kClamp); in make_blend_shader()
/third_party/flutter/skia/src/core/
DSkBitmapProcState.cpp198 if (fTileModeX != SkTileMode::kClamp || fTileModeY != SkTileMode::kClamp) { in init()
273 && SkTileMode::kClamp == fTileModeX) { in chooseProcs()
432 if (SkTileMode::kClamp != s.fTileModeX || SkTileMode::kClamp != s.fTileModeY) { in S32_D32_constX_shaderproc()
443 case SkTileMode::kClamp: in S32_D32_constX_shaderproc()
461 (SkTileMode::kClamp != s.fTileModeX || SkTileMode::kClamp != s.fTileModeY)) { in S32_D32_constX_shaderproc()
468 case SkTileMode::kClamp: in S32_D32_constX_shaderproc()
561 if (SkTileMode::kClamp == tx && SkTileMode::kClamp == ty) { in chooseShaderProc32()
/third_party/flutter/skia/src/shaders/
DSkImageShader.cpp30 return dimension == 1 ? SkTileMode::kClamp : tm; in optimize()
176 case SkTileMode::kClamp: in tile_mode_to_wrap_mode()
177 return GrSamplerState::WrapMode::kClamp; in tile_mode_to_wrap_mode()
207 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in asFragmentProcessor()
211 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in asFragmentProcessor()
408 case SkTileMode::kClamp: /* The gather_xxx stage will clamp for us. */ break; in doStages()
414 case SkTileMode::kClamp: /* The gather_xxx stage will clamp for us. */ break; in doStages()
491 && fTileModeX == SkTileMode::kClamp && fTileModeY == SkTileMode::kClamp) { in doStages()
518 && fTileModeX == SkTileMode::kClamp && fTileModeY == SkTileMode::kClamp) { in doStages()
/third_party/flutter/skia/src/pdf/
DSkPDFShader.cpp139 if (tileModesX == SkTileMode::kClamp || tileModesY == SkTileMode::kClamp) { in make_image_shader()
147 if (tileModesX == SkTileMode::kClamp && tileModesY == SkTileMode::kClamp) { in make_image_shader()
164 if (tileModesX == SkTileMode::kClamp) { in make_image_shader()
207 if (tileModesY == SkTileMode::kClamp) { in make_image_shader()
315 SkTileMode::kClamp, SkTileMode::kClamp, in make_fallback_shader()
/third_party/skia/src/pdf/
DSkPDFShader.cpp140 if (tileModesX == SkTileMode::kClamp || tileModesY == SkTileMode::kClamp) { in make_image_shader()
148 if (tileModesX == SkTileMode::kClamp && tileModesY == SkTileMode::kClamp) { in make_image_shader()
165 if (tileModesX == SkTileMode::kClamp) { in make_image_shader()
208 if (tileModesY == SkTileMode::kClamp) { in make_image_shader()
316 SkTileMode::kClamp, SkTileMode::kClamp, in make_fallback_shader()

12345678910>>...16