Home
last modified time | relevance | path

Searched refs:SkSamplingOptions (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/external/skia/include/core/
DSkSamplingOptions.h58 struct SK_API SkSamplingOptions { struct
65 constexpr SkSamplingOptions() = default; argument
66 SkSamplingOptions(const SkSamplingOptions&) = default;
67 SkSamplingOptions& operator=(const SkSamplingOptions& that) {
68 this->~SkSamplingOptions(); // A pedantic no-op.
69 new (this) SkSamplingOptions(that);
73 constexpr SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm) in SkSamplingOptions() function
77 explicit constexpr SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions() argument
81 explicit constexpr SkSamplingOptions(const SkCubicResampler& c) in SkSamplingOptions() function
85 static constexpr SkSamplingOptions Aniso(int maxAniso) { in Aniso() argument
[all …]
/external/skia/gm/
Dresizeimagefilter.cpp41 const SkSamplingOptions& sampling, in draw()
75 const SkSamplingOptions samplings[] = { in onDraw()
76 SkSamplingOptions(), in onDraw()
77 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
78 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
79 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
80 SkSamplingOptions::Aniso(16), in onDraw()
106 SkSamplingOptions({1/3.0f, 1/3.0f}))); in onDraw()
Dalpha_image.cpp50 canvas->drawImage(image.get(), 16, 16, SkSamplingOptions(), &paint);
54 canvas->drawImage(image.get(), 144, 16, SkSamplingOptions(), &paint);
57 canvas->drawImage(image.get(), 16, 144, SkSamplingOptions(), &paint);
60 canvas->drawImage(image.get(), 144, 144, SkSamplingOptions(), &paint);
82 canvas->drawImage(image.get(), 0, 0, SkSamplingOptions(), &paint);
85 paint.setShader(image->makeShader(SkSamplingOptions()));
120 offscreenCanvas.drawImage(maskBitmap.asImage(), 0, 0, SkSamplingOptions{}, &clearPaint);
Dimagesource2.cpp29 ImageSourceGM(const char* suffix, const SkSamplingOptions& sampling) in ImageSourceGM()
90 SkSamplingOptions fSampling;
98 DEF_GM(return new ImageSourceGM("none", SkSamplingOptions());)
99 DEF_GM(return new ImageSourceGM("low", SkSamplingOptions(SkFilterMode::kLinear));)
100 DEF_GM(return new ImageSourceGM("med", SkSamplingOptions(SkFilterMode::kLinear,
102 DEF_GM(return new ImageSourceGM("high", SkSamplingOptions({1/3.0f, 1/3.0f}));)
Dbitmapshader.cpp78 paint.setShader(fImage->makeShader(SkSamplingOptions(), s)); in onDraw()
81 canvas->drawImage(fMask, 0, 0, SkSamplingOptions(), &paint); in onDraw()
83 canvas->drawImage(fMask, 30, 0, SkSamplingOptions(), &paint); in onDraw()
95 canvas->drawImage(fMask, 0, 0, SkSamplingOptions(), &paint); in onDraw()
96 canvas->drawImage(fMask, 30, 0, SkSamplingOptions(), &paint); in onDraw()
101 SkSamplingOptions(), s)); in onDraw()
139 SkSamplingOptions()));
Dbicubic.cpp18 const SkSamplingOptions gSamplings[] = {
19 SkSamplingOptions(SkFilterMode::kNearest),
20 SkSamplingOptions(SkFilterMode::kLinear),
21 SkSamplingOptions(SkCubicResampler::Mitchell()),
51 SkSamplingOptions(c)));
Dcoordclampshader.cpp27 auto imageShader = image->makeShader(SkSamplingOptions{SkFilterMode::kLinear});
67 static const SkSamplingOptions kSamplers[] = {
68 SkSamplingOptions{SkFilterMode::kNearest},
69 SkSamplingOptions{SkFilterMode::kLinear},
70 SkSamplingOptions{SkFilterMode::kLinear, SkMipmapMode::kLinear},
71 SkSamplingOptions::Aniso(16)
Dlocalmatrixshader.cpp60 return img->makeShader(SkSamplingOptions(), inner)->makeWithLocalMatrix(outer); in __anon49a468380102()
65 …return img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)->makeWithLocalMatrix(outer… in __anon49a468380202()
72 img->makeShader(SkSamplingOptions(), inner)) in __anon49a468380302()
80 … img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)) in __anon49a468380402()
126 image->scalePixels(downsized.pixmap(), SkSamplingOptions(SkFilterMode::kLinear));
165 SkSamplingOptions(), &scale);
171 SkSamplingOptions(), &scale)
177 SkSamplingOptions(), &perspScale);
181 auto s4 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, SkSamplingOptions())
238 SkSamplingOptions{}, in onOnceBeforeDraw()
[all …]
Drectangletexture.cpp158 const SkSamplingOptions kSamplings[] = { in onDraw()
159 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
160 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
161 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
162 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
210 const SkSamplingOptions gSamplings[] = { in onDraw()
211 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
212 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
213 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
214 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
Dbleed.cpp129 const SkSamplingOptions& sampling, SkPaint* paint) { in drawImage()
152 const SkSamplingOptions& sampling) { in drawCase1()
165 const SkSamplingOptions& sampling) { in drawCase2()
178 const SkSamplingOptions& sampling) { in drawCase3()
195 const SkSamplingOptions& sampling) { in drawCase4()
210 const SkSamplingOptions& sampling) { in drawCase5()
253 const SkSamplingOptions none(SkFilterMode::kNearest); in onDraw()
254 const SkSamplingOptions low(SkFilterMode::kLinear); in onDraw()
255 const SkSamplingOptions high(SkCubicResampler::Mitchell()); in onDraw()
384 const SkSamplingOptions samplings[] = {
[all …]
Dmipmap.cpp47 const SkSamplingOptions samplings[] = {
48 SkSamplingOptions(SkFilterMode::kNearest),
49 SkSamplingOptions(SkFilterMode::kLinear),
50 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
51 SkSamplingOptions(SkCubicResampler::Mitchell()),
81 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips()
130 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips_only()
Dcolormatrix.cpp101 canvas->drawImage(bmps[i], 0, 0, SkSamplingOptions(), &paint); in onDraw()
107 canvas->drawImage(bmps[i], 80, 0, SkSamplingOptions(), &paint); in onDraw()
111 canvas->drawImage(bmps[i], 160, 0, SkSamplingOptions(), &paint); in onDraw()
115 canvas->drawImage(bmps[i], 240, 0, SkSamplingOptions(), &paint); in onDraw()
119 canvas->drawImage(bmps[i], 320, 0, SkSamplingOptions(), &paint); in onDraw()
132 canvas->drawImage(bmps[i], 400, 0, SkSamplingOptions(), &paint); in onDraw()
Dlocalmatriximageshader.cpp39 sk_sp<SkShader> redImageShader = redImage->makeShader(SkSamplingOptions(), &rotate);
48 sk_sp<SkShader> blueImageShader = blueImage->makeShader(SkSamplingOptions(), &translate);
61 paint.setShader(image->makeShader(mode[0], mode[1], SkSamplingOptions(), &matrix));
64 paint.setShader(image->makeShader(mode[0], mode[1], SkSamplingOptions(), &matrix));
74 p.setShader(image->makeShader(SkSamplingOptions(SkCubicResampler::Mitchell()))
Dbmpfilterqualityrepeat.cpp78 SkSamplingOptions sampling; in drawAll()
80 { "none", SkSamplingOptions(SkFilterMode::kNearest) }, in drawAll()
81 { "low", SkSamplingOptions(SkFilterMode::kLinear) }, in drawAll()
82 { "medium", SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear) }, in drawAll()
83 { "high", SkSamplingOptions(SkCubicResampler::Mitchell()) }, in drawAll()
Dfilterindiabox.cpp30 const SkSamplingOptions& sampling) { in draw_cell()
39 draw_cell(canvas, bm, mat, 0 * dx, SkSamplingOptions()); in draw_row()
40 draw_cell(canvas, bm, mat, 1 * dx, SkSamplingOptions(SkFilterMode::kLinear)); in draw_row()
41 draw_cell(canvas, bm, mat, 2 * dx, SkSamplingOptions(SkFilterMode::kLinear, in draw_row()
43 draw_cell(canvas, bm, mat, 3 * dx, SkSamplingOptions(SkCubicResampler::Mitchell())); in draw_row()
Dkawase_blur_rt.cpp105 blurBuilder.child("src") = input->makeShader(SkSamplingOptions(SkFilterMode::kLinear)); in draw()
116 SkSamplingOptions()); in draw()
131 SkSamplingOptions(SkFilterMode::kLinear)); in draw()
139 canvas->drawImage(drawSurface->makeImageSnapshot(), 0, 0, SkSamplingOptions()); in draw()
159 SkSamplingOptions(SkFilterMode::kLinear)); in draw()
161 input->makeShader(SkSamplingOptions(SkFilterMode::kLinear)); in draw()
Dperspshaders.cpp90 void drawRow(SkCanvas* canvas, const SkSamplingOptions& sampling) { in drawRow()
152 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kNearest)); in onDraw()
154 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kLinear)); in onDraw()
156 this->drawRow(canvas, SkSamplingOptions(SkFilterMode::kLinear, in onDraw()
159 this->drawRow(canvas, SkSamplingOptions(SkCubicResampler::Mitchell())); in onDraw()
161 this->drawRow(canvas, SkSamplingOptions::Aniso(16)); in onDraw()
209 ->makeShader(SkSamplingOptions(), SkMatrix::Scale(3, 3));
Dtilemodes_scaled.cpp29 const SkSamplingOptions gSamplings[] = {
30 SkSamplingOptions(SkFilterMode::kNearest),
31 SkSamplingOptions(SkFilterMode::kLinear),
32 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
33 SkSamplingOptions(SkCubicResampler::Mitchell()),
34 SkSamplingOptions::Aniso(16),
53 static void setup(SkPaint* paint, const SkBitmap& bm, const SkSamplingOptions& sampling, in setup()
172 return bm.makeShader(tx, ty, SkSamplingOptions()); in make_bm()
/external/skia/src/core/
DSkSamplingPriv.h35 static size_t FlatSize(const SkSamplingOptions& options) { in FlatSize()
44 static bool NoChangeWithIdentityMatrix(const SkSamplingOptions& sampling) { in NoChangeWithIdentityMatrix()
55 static SkSamplingOptions AnisoFallback(bool imageIsMipped) { in AnisoFallback()
57 return SkSamplingOptions(SkFilterMode::kLinear, mm); in AnisoFallback()
60 static SkSamplingOptions FromFQ(SkLegacyFQ, SkMediumAs = kNearest_SkMediumAs);
DSkSpecialImage.h83 const SkSamplingOptions& sampling, in draw()
88 this->draw(canvas, x, y, SkSamplingOptions(), nullptr); in draw()
167 sk_sp<SkShader> asShader(SkTileMode, const SkSamplingOptions&, const SkMatrix& lm) const;
168 sk_sp<SkShader> asShader(const SkSamplingOptions& sampling) const;
169 sk_sp<SkShader> asShader(const SkSamplingOptions& sampling, const SkMatrix& lm) const;
214 const SkSamplingOptions&,
244 const SkSamplingOptions&,
/external/skia/docs/examples/
DImage_scalePixels.cpp16 const SkSamplingOptions samplings[] = { in draw()
17 SkSamplingOptions(), in draw()
18 SkSamplingOptions(SkFilterMode::kLinear), in draw()
19 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in draw()
20 SkSamplingOptions({1.0f/3, 1.0f/3}), in draw()
/external/skia/src/shaders/
DSkImageShader.h30 const SkSamplingOptions&,
37 const SkSamplingOptions&,
46 const SkSamplingOptions&,
53 const SkSamplingOptions&,
91 const SkSamplingOptions fSampling;
/external/skia/tests/
DSamplingTest.cpp36 auto dotest = [&](const SkSamplingOptions& sampling, bool expect_same) { in DEF_TEST()
48 dotest(SkSamplingOptions(f, m), true); in DEF_TEST()
56 dotest(SkSamplingOptions({0, C}), true); in DEF_TEST()
60 dotest(SkSamplingOptions({B, C}), false); in DEF_TEST()
/external/skia/src/gpu/graphite/
DImageUtils.cpp39 std::pair<sk_sp<SkImage>, SkSamplingOptions> GetGraphiteBacked(Recorder* recorder, in GetGraphiteBacked()
41 SkSamplingOptions sampling) { in GetGraphiteBacked()
47 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked()
58 sampling = SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in GetGraphiteBacked()
DImageUtils.h14 struct SkSamplingOptions;
20 std::pair<sk_sp<SkImage>, SkSamplingOptions> GetGraphiteBacked(Recorder*,
22 SkSamplingOptions);

12345678910>>...18