/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 | 40 SkFilterMode fm, in ConstXTileBench() 60 if (fm != SkFilterMode::kNearest) { in ConstXTileBench() 113 constexpr SkFilterMode gNN = SkFilterMode::kNearest; 114 constexpr SkFilterMode gLI = SkFilterMode::kLinear;
|
/external/skia/include/core/ |
D | SkSamplingOptions.h | 14 enum class SkFilterMode { enum 57 const SkFilterMode filter = SkFilterMode::kNearest; 68 SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm) in SkSamplingOptions() 73 explicit SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions()
|
D | SkPicture.h | 230 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode, 233 sk_sp<SkShader> makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode mode) const { in makeShader()
|
/external/skia/gm/ |
D | mipmap.cpp | 49 SkSamplingOptions(SkFilterMode::kNearest), 50 SkSamplingOptions(SkFilterMode::kLinear), 51 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), 82 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips() 131 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips_only()
|
D | perspimages.cpp | 82 SkSamplingOptions(SkFilterMode::kNearest), in onDraw() 83 SkSamplingOptions(SkFilterMode::kLinear), in onDraw() 84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
|
D | runtimeeffectimage.cpp | 57 SkSamplingOptions nn{SkFilterMode::kNearest}; in onDraw() 58 SkSamplingOptions mm{SkFilterMode::kLinear, SkMipmapMode::kNearest}; in onDraw() 67 SkSamplingOptions(SkFilterMode::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()
|
D | showmiplevels.cpp | 60 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw()
|
D | bitmapfilters.cpp | 48 x += draw_bm(c, img, x, 0, SkSamplingOptions(SkFilterMode::kLinear), p); in draw_set() 50 return x + draw_bm(c, img, x, 0, SkSamplingOptions(SkFilterMode::kLinear), p); in draw_set() 158 SkSamplingOptions sampling(SkFilterMode::kLinear); in onDraw()
|
D | imagesource2.cpp | 100 DEF_GM(return new ImageSourceGM("low", SkSamplingOptions(SkFilterMode::kLinear));) 101 DEF_GM(return new ImageSourceGM("med", SkSamplingOptions(SkFilterMode::kLinear,
|
D | imagescalealigned.cpp | 111 SkSamplingOptions(SkFilterMode::kNearest), in drawSets() 112 SkSamplingOptions(SkFilterMode::kLinear), in drawSets() 113 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in drawSets()
|
D | filterindiabox.cpp | 41 draw_cell(canvas, bm, mat, 1 * dx, SkSamplingOptions(SkFilterMode::kLinear)); in draw_row() 42 draw_cell(canvas, bm, mat, 2 * dx, SkSamplingOptions(SkFilterMode::kLinear, in draw_row()
|
D | perspshaders.cpp | 153 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kNearest)); in onDraw() 155 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kLinear)); in onDraw() 157 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kLinear, in onDraw()
|
D | ninepatchstretch.cpp | 94 for (auto fm : {SkFilterMode::kLinear, SkFilterMode::kNearest}) { in onDraw()
|
D | bleed.cpp | 247 const SkSamplingOptions none(SkFilterMode::kNearest); in onDraw() 248 const SkSamplingOptions low(SkFilterMode::kLinear); in onDraw() 379 SkSamplingOptions(SkFilterMode::kNearest), 380 SkSamplingOptions(SkFilterMode::kLinear), 381 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
|
D | rectangletexture.cpp | 157 SkSamplingOptions(SkFilterMode::kNearest), in onDraw() 158 SkSamplingOptions(SkFilterMode::kLinear), in onDraw() 159 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
|
D | drawimageset.cpp | 143 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw() 252 SkSamplingOptions(SkFilterMode::kLinear), in onDraw() 276 SkSamplingOptions(SkFilterMode::kLinear), in onDraw() 330 SkSamplingOptions(SkFilterMode::kLinear), &paint, in onDraw()
|
/external/skia/src/shaders/ |
D | SkPictureShader.h | 27 static sk_sp<SkShader> Make(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode, 49 SkPictureShader(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode, 74 SkFilterMode fFilter;
|
D | SkImageShader.cpp | 110 auto filter = buffer.read32LE<SkFilterMode>(SkFilterMode::kLinear); in PreSamplingCreate() 117 auto filter = buffer.read32LE<SkFilterMode>(SkFilterMode::kLinear); in PreSamplingCreate() 235 const std::tuple<SkFilterMode,SkMipmapMode> supported[] = { in onMakeContext() 236 {SkFilterMode::kNearest, SkMipmapMode::kNone}, // legacy None in onMakeContext() 237 {SkFilterMode::kLinear, SkMipmapMode::kNone}, // legacy Low in onMakeContext() 238 {SkFilterMode::kLinear, SkMipmapMode::kNearest}, // legacy Medium in onMakeContext() 430 SkFilterMode filter = sampling.filter; in tweak_sampling() 433 if (filter == SkFilterMode::kLinear && in tweak_sampling() 437 filter = SkFilterMode::kNearest; in tweak_sampling() 443 static SkMatrix tweak_inv_matrix(SkFilterMode filter, SkMatrix matrix) { in tweak_inv_matrix() [all …]
|
D | SkPictureShader.cpp | 38 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode filter, in makeShader() 110 … SkFilterMode filter, const SkMatrix* localMatrix, const SkRect* tile) in SkPictureShader() 119 SkFilterMode filter, const SkMatrix* lm, const SkRect* tile) { in Make() 135 SkFilterMode filter = SkFilterMode::kNearest; in CreateProc() 144 if (legacyFilter <= (unsigned)SkFilterMode::kLast) { in CreateProc() 145 filter = (SkFilterMode)legacyFilter; in CreateProc() 150 filter = buffer.read32LE(SkFilterMode::kLast); in CreateProc()
|
/external/skia/tests/ |
D | PictureShaderTest.cpp | 34 SkFilterMode::kNearest)); in DEF_TEST() 45 SkFilterMode::kNearest)); in DEF_TEST() 92 paint.setShader(picture->makeShader(m, m, SkFilterMode::kNearest)); in DEF_TEST()
|
D | SamplingTest.cpp | 41 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/src/core/ |
D | SkPicturePlayback.cpp | 390 SkFilterMode filter = SkFilterMode::kNearest; in handleOp() 392 filter = SkFilterMode::kLinear; in handleOp() 402 SkFilterMode filter = reader->read32LE(SkFilterMode::kLinear); in handleOp() 416 SkFilterMode filter = SkFilterMode::kNearest; in handleOp() 418 filter = SkFilterMode::kLinear; in handleOp()
|