/external/skia/bench/ |
D | FilteringBench.cpp | 17 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); )
|
D | TileBench.cpp | 33 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/ |
D | SkSamplingOptions.h | 16 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/ |
D | coordclampshader.cpp | 27 auto imageShader = image->makeShader(SkSamplingOptions{SkFilterMode::kLinear}); 68 SkSamplingOptions{SkFilterMode::kNearest}, 69 SkSamplingOptions{SkFilterMode::kLinear}, 70 SkSamplingOptions{SkFilterMode::kLinear, SkMipmapMode::kLinear},
|
D | mipmap.cpp | 48 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()
|
D | rectangletexture.cpp | 159 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()
|
D | mirrortile.cpp | 53 for (SkFilterMode fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
|
D | kawase_blur_rt.cpp | 105 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()
|
D | bmpfilterqualityrepeat.cpp | 80 { "none", SkSamplingOptions(SkFilterMode::kNearest) }, in drawAll() 81 { "low", SkSamplingOptions(SkFilterMode::kLinear) }, in drawAll() 82 { "medium", SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear) }, in drawAll()
|
D | perspimages.cpp | 82 SkSamplingOptions(SkFilterMode::kNearest), in onDraw() 83 SkSamplingOptions(SkFilterMode::kLinear), in onDraw() 84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
|
D | imagefilterstransformed.cpp | 206 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);
|
D | tilemodes.cpp | 49 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()
|
D | bicubic.cpp | 19 SkSamplingOptions(SkFilterMode::kNearest), 20 SkSamplingOptions(SkFilterMode::kLinear),
|
D | yuv420_odd_dim.cpp | 126 for (SkFilterMode filter : {SkFilterMode::kNearest, SkFilterMode::kLinear}) {
|
D | bitmapfilters.cpp | 47 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()
|
D | showmiplevels.cpp | 54 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw()
|
/external/skia/src/shaders/ |
D | SkPictureShader.h | 27 static sk_sp<SkShader> Make(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode, 40 SkPictureShader(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode, const SkRect*); 70 SkFilterMode fFilter;
|
D | SkPictureShader.cpp | 50 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/ |
D | SkImageFilterTypes.cpp | 273 } 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/ |
D | DawnSampler.cpp | 18 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/ |
D | PictureShaderTest.cpp | 40 SkFilterMode::kNearest)); in DEF_TEST() 51 SkFilterMode::kNearest)); in DEF_TEST() 98 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
|
D | SamplingTest.cpp | 47 for (auto f : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in DEF_TEST()
|
/external/skia/docs/examples/ |
D | Image_scalePixels.cpp | 18 SkSamplingOptions(SkFilterMode::kLinear), in draw() 19 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in draw()
|
/external/skia/modules/skottie/src/effects/ |
D | DirectionalBlur.cpp | 42 SkSamplingOptions(SkFilterMode::kLinear), in onSync() 45 SkSamplingOptions(SkFilterMode::kLinear), nullptr))); in onSync()
|
/external/skia/src/gpu/graphite/ |
D | ImageUtils.cpp | 47 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked() 58 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked()
|