Home
last modified time | relevance | path

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

123456

/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()
Dbug6643.cpp34 SkFilterMode::kNearest, nullptr, nullptr));
Dimage_shader.cpp180 for (auto mm : {SkMipmapMode::kNone, SkMipmapMode::kNearest, SkMipmapMode::kLinear}) {
181 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
/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/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/
DGrSamplerState.h18 enum class Filter : uint8_t { kNearest, kBilerp, kMipMap }; enumerator
26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState()
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()
/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/docs/examples/
Ddraw_image_nine_blur_mask.cpp10 SkFilterMode::kNearest, &paint); in draw()
DCanvas_drawImageNine_2.cpp27 SkFilterMode::kNearest, nullptr); in draw()
DCanvas_drawImageNine.cpp28 SkFilterMode::kNearest, nullptr); in draw()
/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/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()
/third_party/skia/modules/svg/src/
DSkSVGFeImage.cpp39 SkMipmapMode::kNearest)); in onMakeImageFilter()

123456