Home
last modified time | relevance | path

Searched refs:kNearest (Results 1 – 25 of 154) sorted by relevance

1234567

/third_party/skia/bench/
DFilteringBench.cpp58 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kNearest); )
61 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kLinear); )
62 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kNearest); )
63 DEF_BENCH( return new FilteringBench(SkFilterMode::kNearest, SkMipmapMode::kNone); )
DTileBench.cpp47 if (fm != SkFilterMode::kNearest) {
121 constexpr SkFilterMode gNN = SkFilterMode::kNearest;
/third_party/skia/gm/
Dtexelsubset.cpp52 case Filter::kNearest: in onShortName()
62 case MipmapMode::kNearest: in onShortName()
228 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNone , false);)
229 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNone , true );)
233 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNearest, false);)
234 DEF_GM(return new TexelSubset(Filter::kLinear , MipmapMode::kNearest, false);)
235 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kLinear , false);)
Dshowmiplevels.cpp59 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in onDraw()
60 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw()
Dimage_shader.cpp180 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) {
181 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
Dperspshaders.cpp152 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kNearest)); in onDraw()
157 SkMipmapMode::kNearest)); in onDraw()
/third_party/vk-gl-cts/external/amber/src/src/
Dsampler.h31 enum class FilterType : int8_t { kUnknown = -1, kNearest = 0, kLinear = 1 }; enumerator
100 FilterType min_filter_ = FilterType::kNearest;
101 FilterType mag_filter_ = FilterType::kNearest;
102 FilterType mipmap_mode_ = FilterType::kNearest;
/third_party/skia/include/core/
DSkSamplingOptions.h15 kNearest, // single sample point (nearest neighbor) enumerator
23 kNearest, // sample from the nearest level enumerator
57 const SkFilterMode filter = SkFilterMode::kNearest;
/third_party/skia/tests/
DPictureShaderTest.cpp34 SkFilterMode::kNearest)); in DEF_TEST()
45 SkFilterMode::kNearest)); in DEF_TEST()
92 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
DSamplingTest.cpp40 for (auto m : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) { in DEF_TEST()
41 for (auto f : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in DEF_TEST()
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_sampler_test.cc38 EXPECT_EQ(FilterType::kNearest, sampler->GetMagFilter()); in TEST_F()
39 EXPECT_EQ(FilterType::kNearest, sampler->GetMinFilter()); in TEST_F()
40 EXPECT_EQ(FilterType::kNearest, sampler->GetMipmapMode()); in TEST_F()
80 EXPECT_EQ(FilterType::kNearest, sampler->GetMipmapMode()); in TEST_F()
/third_party/skia/modules/skottie/src/effects/
DFractalNoiseEffect.cpp183 kNearest, enumerator
280 case NoiseFilter::kNearest : return this->getEffect<NoiseFilter::kNearest>(); in getEffect()
333 NoiseFilter fFilter = NoiseFilter::kNearest;
452 case 1: return NoiseFilter::kNearest; in noiseFilter()
/third_party/flutter/skia/src/gpu/
DGrTextureProducer.cpp37 if (copyParams.fFilter != GrSamplerState::Filter::kNearest) { in CopyOnGpu()
43 if (copyParams.fFilter == GrSamplerState::Filter::kNearest && !needsDomain && !resizing && in CopyOnGpu()
123 case GrSamplerState::Filter::kNearest: in DetermineDomainMode()
285 GrMipMapped::kNo == willNeedMips ? GrSamplerState::Filter::kNearest in refTextureProxy()
DGrSamplerState.h18 enum class Filter : uint8_t { kNearest, kBilerp, kMipMap }; enumerator
26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState()
/third_party/flutter/skia/src/gpu/effects/
DGrBicubicEffect.cpp176 GrSamplerState(wrapModes, GrSamplerState::Filter::kNearest))
239 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
250 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
DGrSimpleTextureEffect.fp28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest)));
72 : GrSamplerState::Filter::kNearest);
/third_party/flutter/skia/gm/
Dyuvtorgbeffect.cpp133 GrSamplerState::Filter::kNearest)); in onDraw()
249 GrSamplerState::Filter::kNearest); in onDraw()
330 GrSamplerState::Filter::kNearest, GrSamplerState::Filter::kBilerp }; in onDraw()
350 if (kFilters[i] == GrSamplerState::Filter::kNearest) { in onDraw()
Dtexturedomaineffect.cpp136 if (fFilter != GrSamplerState::Filter::kNearest && in onDraw()
176 DEF_GM(return new TextureDomainEffect(GrSamplerState::Filter::kNearest);)
Dclockwise.cpp196 GrSamplerState::Filter::kNearest, SkBlendMode::kSrcOver, in onDraw()
212 GrSamplerState::Filter::kNearest, SkBlendMode::kSrcOver, in onDraw()
/third_party/skia/src/gpu/mtl/
DGrMtlSampler.mm48 case GrSamplerState::Filter::kNearest: return MTLSamplerMinMagFilterNearest;
57 case GrSamplerState::MipmapMode::kNearest: return MTLSamplerMipFilterNearest;
/third_party/skia/src/gpu/d3d/
DGrD3DResourceProvider.cpp142 case GrSamplerState::MipmapMode::kNearest: in d3d_filter()
144 case GrSamplerState::Filter::kNearest: return D3D12_FILTER_MIN_MAG_MIP_POINT; in d3d_filter()
150 case GrSamplerState::Filter::kNearest: return D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR; in d3d_filter()
/third_party/skia/src/gpu/effects/
DGrTextureEffect.cpp92 if (filter == Filter::kNearest) { in Sampling()
270 case Filter::kNearest: return ShaderMode::kRepeat_Nearest_None; in GetShaderMode()
274 case MipmapMode::kNearest: in GetShaderMode()
277 case Filter::kNearest: return ShaderMode::kRepeat_Nearest_Mipmap; in GetShaderMode()
284 return filter == Filter::kNearest ? ShaderMode::kClampToBorder_Nearest in GetShaderMode()
797 Filter filter = testData->fRandom->nextBool() ? Filter::kLinear : Filter::kNearest; in TestCreate()
DGrBicubicEffect.cpp133 GrSamplerState sampler(wrapX, wrapY, GrSamplerState::Filter::kNearest); in Make()
151 GrSamplerState sampler(wrapX, wrapY, GrSamplerState::Filter::kNearest); in MakeSubset()
179 GrSamplerState sampler(wrapX, wrapY, GrSamplerState::Filter::kNearest); in MakeSubset()
/third_party/skia/src/image/
DSkRescaleAndReadPixels.cpp32 if (rescaleMode != SkImage::RescaleMode::kNearest) { in SkRescaleAndReadPixels()
49 if (rescaleMode != SkImage::RescaleMode::kNearest) { in SkRescaleAndReadPixels()
/third_party/skia/docs/examples/
Ddraw_image_nine_blur_mask.cpp10 SkFilterMode::kNearest, &paint); in draw()

1234567