Home
last modified time | relevance | path

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

123456

/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.cpp40 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/
DSkSamplingOptions.h14 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()
DSkPicture.h230 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/
Dmipmap.cpp49 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()
Dperspimages.cpp82 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
83 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
84 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
Druntimeeffectimage.cpp57 SkSamplingOptions nn{SkFilterMode::kNearest}; in onDraw()
58 SkSamplingOptions mm{SkFilterMode::kLinear, SkMipmapMode::kNearest}; in onDraw()
67 SkSamplingOptions(SkFilterMode::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()
Dshowmiplevels.cpp60 for (auto fm : {SkFilterMode::kNearest, SkFilterMode::kLinear}) { in onDraw()
Dbitmapfilters.cpp48 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()
Dimagesource2.cpp100 DEF_GM(return new ImageSourceGM("low", SkSamplingOptions(SkFilterMode::kLinear));)
101 DEF_GM(return new ImageSourceGM("med", SkSamplingOptions(SkFilterMode::kLinear,
Dimagescalealigned.cpp111 SkSamplingOptions(SkFilterMode::kNearest), in drawSets()
112 SkSamplingOptions(SkFilterMode::kLinear), in drawSets()
113 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in drawSets()
Dfilterindiabox.cpp41 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()
Dperspshaders.cpp153 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()
Dninepatchstretch.cpp94 for (auto fm : {SkFilterMode::kLinear, SkFilterMode::kNearest}) { in onDraw()
Dbleed.cpp247 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),
Drectangletexture.cpp157 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
158 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
159 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
Ddrawimageset.cpp143 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/
DSkPictureShader.h27 static sk_sp<SkShader> Make(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode,
49 SkPictureShader(sk_sp<SkPicture>, SkTileMode, SkTileMode, SkFilterMode,
74 SkFilterMode fFilter;
DSkImageShader.cpp110 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 …]
DSkPictureShader.cpp38 sk_sp<SkShader> SkPicture::makeShader(SkTileMode tmx, SkTileMode tmy, SkFilterMode filter, in makeShader()
110SkFilterMode 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/
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.cpp41 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/src/core/
DSkPicturePlayback.cpp390 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()

123456