Home
last modified time | relevance | path

Searched refs:SkFilterMode (Results 1 – 25 of 182) sorted by relevance

12345678

/external/skia/bench/
DFilteringBench.cpp17 FilteringBench(SkFilterMode fm, SkMipmapMode mm) : fSampling(fm, mm) { in FilteringBench()
57 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kLinear); )
58 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kNearest); )
59 DEF_BENCH( return new FilteringBench(SkFilterMode::kLinear, SkMipmapMode::kNone); )
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.cpp33 SkFilterMode fm, in ConstXTileBench()
47 if (fm != SkFilterMode::kNearest) {
108 const SkFilterMode fFilterMode;
121 constexpr SkFilterMode gNN = SkFilterMode::kNearest;
122 constexpr SkFilterMode gLI = SkFilterMode::kLinear;
/external/skia/include/core/
DSkSamplingOptions.h16 enum class SkFilterMode { enum
22 static constexpr int kSkFilterModeCount = static_cast<int>(SkFilterMode::kLast) + 1;
62 const SkFilterMode filter = SkFilterMode::kNearest;
73 constexpr SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm) in SkSamplingOptions()
77 explicit constexpr SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions()
/external/skia/gm/
Dcoordclampshader.cpp27 auto imageShader = image->makeShader(SkSamplingOptions{SkFilterMode::kLinear});
68 SkSamplingOptions{SkFilterMode::kNearest},
69 SkSamplingOptions{SkFilterMode::kLinear},
70 SkSamplingOptions{SkFilterMode::kLinear, SkMipmapMode::kLinear},
Dmipmap.cpp48 SkSamplingOptions(SkFilterMode::kNearest),
49 SkSamplingOptions(SkFilterMode::kLinear),
50 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
81 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips()
130 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips_only()
Drectangletexture.cpp159 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
160 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
161 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
211 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
212 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
213 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
Dmirrortile.cpp53 for (SkFilterMode fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
Dkawase_blur_rt.cpp105 blurBuilder.child("src") = input->makeShader(SkSamplingOptions(SkFilterMode::kLinear)); in draw()
131 SkSamplingOptions(SkFilterMode::kLinear)); in draw()
159 SkSamplingOptions(SkFilterMode::kLinear)); in draw()
161 input->makeShader(SkSamplingOptions(SkFilterMode::kLinear)); in draw()
Dbmpfilterqualityrepeat.cpp80 { "none", SkSamplingOptions(SkFilterMode::kNearest) }, in drawAll()
81 { "low", SkSamplingOptions(SkFilterMode::kLinear) }, in drawAll()
82 { "medium", SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear) }, in drawAll()
Dperspimages.cpp82 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
83 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
Dimagefilterstransformed.cpp206 SkSamplingOptions(SkFilterMode::kLinear), nullptr) in onDraw()
276 filter = SkImageFilters::MatrixTransform(matrix, SkSamplingOptions(SkFilterMode::kLinear), in makeDirectFilter()
287 matrix, SkSamplingOptions(SkFilterMode::kLinear), nullptr); in makeEarlyComposeFilter()
297 filter = SkImageFilters::MatrixTransform(matrix, SkSamplingOptions(SkFilterMode::kLinear), in makeLateComposeFilter()
309 matrix, SkSamplingOptions(SkFilterMode::kLinear), nullptr); in makeFullComposeFilter()
339 SkSamplingOptions sampling(SkFilterMode::kLinear);
Dtilemodes.cpp49 static void setup(SkCanvas* canvas, SkPaint* paint, const SkBitmap& bm, SkFilterMode fm, in setup()
106 constexpr SkFilterMode gFilters[] = { SkFilterMode::kNearest, SkFilterMode::kLinear }; in onDraw()
280 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kNearest))); in __anon9b52bdc70202()
284 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kLinear))); in __anon9b52bdc70302()
Dbicubic.cpp19 SkSamplingOptions(SkFilterMode::kNearest),
20 SkSamplingOptions(SkFilterMode::kLinear),
Dyuv420_odd_dim.cpp126 for (SkFilterMode filter : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
Dbitmapfilters.cpp47 x += draw_bm(c, img, x, 0, SkSamplingOptions(SkFilterMode::kLinear), p); in draw_set()
49 return x + draw_bm(c, img, x, 0, SkSamplingOptions(SkFilterMode::kLinear), p); in draw_set()
157 SkSamplingOptions sampling(SkFilterMode::kLinear); in onDraw()
Dshowmiplevels.cpp54 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw()
/external/skia/src/shaders/
DSkPictureShader.h27 static sk_sp<SkShader> Make(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode,
40 SkPictureShader(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode, const SkRect*);
70 SkFilterMode fFilter;
DSkPictureShader.cpp50 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode filter, in makeShader()
127 SkFilterMode filter, in SkPictureShader()
136 SkFilterMode filter, const SkMatrix* lm, const SkRect* tile) { in Make()
158 SkFilterMode filter = SkFilterMode::kNearest; in CreateProc()
167 if (legacyFilter <= (unsigned)SkFilterMode::kLast) { in CreateProc()
168 filter = (SkFilterMode)legacyFilter; in CreateProc()
173 filter = buffer.read32LE(SkFilterMode::kLast); in CreateProc()
/external/skia/src/core/
DSkImageFilterTypes.cpp273 } else if (currentSampling.useCubic && (nextSampling->filter == SkFilterMode::kLinear || in compatible_sampling()
281 } else if (nextSampling->useCubic && currentSampling.filter == SkFilterMode::kLinear) { in compatible_sampling()
284 } else if (currentSampling.filter == SkFilterMode::kLinear && in compatible_sampling()
285 nextSampling->filter == SkFilterMode::kLinear) { in compatible_sampling()
288 } else if (nextSampling->filter == SkFilterMode::kNearest && currentXformWontAffectNearest) { in compatible_sampling()
290 SkASSERT(currentSampling.filter == SkFilterMode::kLinear); in compatible_sampling()
292 } else if (currentSampling.filter == SkFilterMode::kNearest && nextXformWontAffectNearest) { in compatible_sampling()
294 SkASSERT(nextSampling->filter == SkFilterMode::kLinear); in compatible_sampling()
/external/skia/src/gpu/graphite/dawn/
DDawnSampler.cpp18 wgpu::FilterMode filter_mode_to_dawn_filter_mode(SkFilterMode mode) { in filter_mode_to_dawn_filter_mode()
20 case SkFilterMode::kNearest: in filter_mode_to_dawn_filter_mode()
22 case SkFilterMode::kLinear: in filter_mode_to_dawn_filter_mode()
/external/skia/tests/
DPictureShaderTest.cpp40 SkFilterMode::kNearest)); in DEF_TEST()
51 SkFilterMode::kNearest)); in DEF_TEST()
98 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
DSamplingTest.cpp47 for (auto f : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in DEF_TEST()
/external/skia/docs/examples/
DImage_scalePixels.cpp18 SkSamplingOptions(SkFilterMode::kLinear), in draw()
19 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in draw()
/external/skia/modules/skottie/src/effects/
DDirectionalBlur.cpp42 SkSamplingOptions(SkFilterMode::kLinear), in onSync()
45 SkSamplingOptions(SkFilterMode::kLinear), nullptr))); in onSync()
/external/skia/src/gpu/graphite/
DImageUtils.cpp47 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked()
58 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked()

12345678