Home
last modified time | relevance | path

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

123456

/external/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.cpp60 if (fm != SkFilterMode::kNearest) { in ConstXTileBench()
113 constexpr SkFilterMode gNN = SkFilterMode::kNearest;
/external/skia/gm/
Dtexelsubset.cpp50 case Filter::kNearest: in onShortName()
60 case MipmapMode::kNearest: in onShortName()
221 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNone , false);)
222 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNone , true );)
226 DEF_GM(return new TexelSubset(Filter::kNearest, MipmapMode::kNearest, false);)
227 DEF_GM(return new TexelSubset(Filter::kLinear , MipmapMode::kNearest, false);)
228 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()
Druntimeeffectimage.cpp57 SkSamplingOptions nn{SkFilterMode::kNearest}; in onDraw()
58 SkSamplingOptions mm{SkFilterMode::kLinear, SkMipmapMode::kNearest}; in onDraw()
Dbug6643.cpp34 SkFilterMode::kNearest, nullptr, nullptr));
/external/deqp-deps/amber/src/
Dsampler.h30 enum class FilterType : int8_t { kUnknown = -1, kNearest = 0, kLinear = 1 }; enumerator
91 FilterType min_filter_ = FilterType::kNearest;
92 FilterType mag_filter_ = FilterType::kNearest;
93 FilterType mipmap_mode_ = FilterType::kNearest;
/external/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;
/external/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()
/external/skqp/src/gpu/effects/
DGrBicubicEffect.cpp133 GrSamplerState(wrapModes, GrSamplerState::Filter::kNearest)) {
191 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
206 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
215 *filterMode = GrSamplerState::Filter::kNearest; in ShouldUseBicubic()
DGrSimpleTextureEffect.fp28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest)));
72 : GrSamplerState::Filter::kNearest);
/external/deqp-deps/amber/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()
76 EXPECT_EQ(FilterType::kNearest, sampler->GetMipmapMode()); in TEST_F()
/external/skia/modules/skottie/src/effects/
DFractalNoiseEffect.cpp179 kNearest, enumerator
275 case NoiseFilter::kNearest : return this->getEffect<NoiseFilter::kNearest>(); in getEffect()
327 NoiseFilter fFilter = NoiseFilter::kNearest;
413 case 1: return NoiseFilter::kNearest; in noiseFilter()
/external/skqp/include/gpu/
DGrSamplerState.h18 enum class Filter : uint8_t { kNearest, kBilerp, kMipMap }; enumerator
26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState()
/external/skqp/src/gpu/
DGrTextureProducer.cpp35 if (copyParams.fFilter != GrSamplerState::Filter::kNearest) { in CopyOnGpu()
41 if (copyParams.fFilter == GrSamplerState::Filter::kNearest && !needsDomain && !resizing && in CopyOnGpu()
126 case GrSamplerState::Filter::kNearest: in DetermineDomainMode()
256 GrMipMapped::kNo == willNeedMips ? GrSamplerState::Filter::kNearest in refTextureProxy()
DGrGpu.cpp62 case GrSamplerState::Filter::kNearest: in IsACopyNeededForRepeatWrapMode()
63 copyParams->fFilter = GrSamplerState::Filter::kNearest; in IsACopyNeededForRepeatWrapMode()
78 copyParams->fFilter = GrSamplerState::Filter::kNearest; in IsACopyNeededForRepeatWrapMode()
96 copyParams->fFilter = GrSamplerState::Filter::kNearest; in IsACopyNeededForMips()
/external/skia/src/gpu/mtl/
DGrMtlSampler.mm48 case GrSamplerState::Filter::kNearest: return MTLSamplerMinMagFilterNearest;
57 case GrSamplerState::MipmapMode::kNearest: return MTLSamplerMipFilterNearest;
/external/skia/docs/examples/
Ddraw_image_nine_blur_mask.cpp10 SkFilterMode::kNearest, &paint); in draw()
DCanvas_drawImageNine_2.cpp27 SkFilterMode::kNearest, nullptr); in draw()
/external/skia/src/image/
DSkRescaleAndReadPixels.cpp32 if (rescaleMode != SkImage::RescaleMode::kNearest) { in SkRescaleAndReadPixels()
49 if (rescaleMode != SkImage::RescaleMode::kNearest) { in SkRescaleAndReadPixels()
/external/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()
/external/skqp/gm/
Dclockwise.cpp165 GrSamplerState::Filter::kNearest, SK_PMColor4fWHITE, {0, 0, 100, 200}, in onDraw()
181 GrSamplerState::Filter::kNearest, SK_PMColor4fWHITE, {0, 0, 100, 200}, in onDraw()
Dtexturedomaineffect.cpp136 if (fFilter != GrSamplerState::Filter::kNearest && in onDraw()
175 DEF_GM(return new TextureDomainEffect(GrSamplerState::Filter::kNearest);)
/external/skia/src/gpu/effects/
DGrTextureEffect.cpp93 if (filter == Filter::kNearest) { in Sampling()
271 case Filter::kNearest: return ShaderMode::kRepeat_Nearest_None; in GetShaderMode()
275 case MipmapMode::kNearest: in GetShaderMode()
278 case Filter::kNearest: return ShaderMode::kRepeat_Nearest_Mipmap; in GetShaderMode()
285 return filter == Filter::kNearest ? ShaderMode::kClampToBorder_Nearest in GetShaderMode()
798 Filter filter = testData->fRandom->nextBool() ? Filter::kLinear : Filter::kNearest; in TestCreate()

123456