Home
last modified time | relevance | path

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

12345678910>>...16

/third_party/skia/include/core/
DSkSamplingOptions.h54 struct SK_API SkSamplingOptions { struct
60 SkSamplingOptions() = default; argument
61 SkSamplingOptions(const SkSamplingOptions&) = default;
62 SkSamplingOptions& operator=(const SkSamplingOptions& that) {
63 this->~SkSamplingOptions(); // A pedantic no-op.
64 new (this) SkSamplingOptions(that);
68 SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm) in SkSamplingOptions() function
73 explicit SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions() function
78 explicit SkSamplingOptions(const SkCubicResampler& c) in SkSamplingOptions() function
82 bool operator==(const SkSamplingOptions& other) const {
[all …]
DSkOverdrawCanvas.h40 void onDrawImage2(const SkImage*, SkScalar, SkScalar, const SkSamplingOptions&,
42 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&,
47 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*) override;
58 const SkSamplingOptions&,const SkPaint*, SrcRectConstraint) override;
/third_party/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()
/third_party/skia/gm/
Dalpha_image.cpp49 canvas->drawImage(image.get(), 16, 16, SkSamplingOptions(), &paint);
53 canvas->drawImage(image.get(), 144, 16, SkSamplingOptions(), &paint);
56 canvas->drawImage(image.get(), 16, 144, SkSamplingOptions(), &paint);
59 canvas->drawImage(image.get(), 144, 144, SkSamplingOptions(), &paint);
81 canvas->drawImage(image.get(), 0, 0, SkSamplingOptions(), &paint);
84 paint.setShader(image->makeShader(SkSamplingOptions()));
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.cpp15 const SkSamplingOptions gSamplings[] = {
16 SkSamplingOptions(SkFilterMode::kNearest),
17 SkSamplingOptions(SkFilterMode::kLinear),
18 SkSamplingOptions(SkCubicResampler::Mitchell()),
48 SkSamplingOptions(c)));
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()
111 SkSamplingOptions({1/3.0f, 1/3.0f}))); in onDraw()
Drectangletexture.cpp152 const SkSamplingOptions kSamplings[] = { in onDraw()
153 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
154 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
155 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
156 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
204 const SkSamplingOptions gSamplings[] = { in onDraw()
205 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
206 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
207 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
208 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
Dlocalmatrixshader.cpp55 return img->makeShader(SkSamplingOptions(), inner)->makeWithLocalMatrix(outer); in __anon739f6e840102()
60 …return img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)->makeWithLocalMatrix(outer… in __anon739f6e840202()
67 img->makeShader(SkSamplingOptions(), inner)) in __anon739f6e840302()
75 … img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)) in __anon739f6e840402()
121 image->scalePixels(downsized.pixmap(), SkSamplingOptions(SkFilterMode::kLinear));
160 SkSamplingOptions(), &scale);
166 SkSamplingOptions(), &persp)
172 SkSamplingOptions(), &perspScale);
176 auto s4 = image->makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat, SkSamplingOptions())
Dbleed.cpp128 const SkSamplingOptions& sampling, SkPaint* paint) { in drawImage()
147 const SkSamplingOptions& sampling) { in drawCase1()
160 const SkSamplingOptions& sampling) { in drawCase2()
173 const SkSamplingOptions& sampling) { in drawCase3()
190 const SkSamplingOptions& sampling) { in drawCase4()
205 const SkSamplingOptions& sampling) { in drawCase5()
245 const SkSamplingOptions none(SkFilterMode::kNearest); in onDraw()
246 const SkSamplingOptions low(SkFilterMode::kLinear); in onDraw()
247 const SkSamplingOptions high(SkCubicResampler::Mitchell()); in onDraw()
376 const SkSamplingOptions samplings[] = {
[all …]
Dlocalmatriximageshader.cpp39 sk_sp<SkShader> redImageShader = redImage->makeShader(SkSamplingOptions(), &translate);
48 sk_sp<SkShader> blueImageShader = blueImage->makeShader(SkSamplingOptions(), &rotate);
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()
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()
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()
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()
Ddrawbitmaprect.cpp108 const SkRect& dstR, const SkSamplingOptions& sampling, in bitmapproc()
115 const SkRect& dstR, const SkSamplingOptions& sampling, in bitmapsubsetproc()
129 const SkRect& dstR, const SkSamplingOptions& sampling, const SkPaint* paint) { in imageproc()
136 const SkSamplingOptions& sampling, const SkPaint* paint) { in imagesubsetproc()
149 const SkSamplingOptions&, const SkPaint*);
189 canvas->drawImageRect(fImage, SkRect::MakeIWH(gSize, gSize), SkSamplingOptions(), in onDraw()
211 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, SkSamplingOptions(), in onDraw()
250 SkSamplingOptions(SkFilterMode::kLinear), &maskPaint); in onDraw()
Dimagefromyuvtextures.cpp197 auto draw_image = [canvas](SkImage* image, const SkSamplingOptions& sampling) -> SkSize { in onDraw()
206 const SkSamplingOptions& sampling) -> SkSize { in onDraw()
219 const SkSamplingOptions& sampling) -> SkSize { in onDraw()
235 using DrawSig = SkSize(SkImage* image, const SkSamplingOptions&); in onDraw()
242 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
243 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
244 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNearest), in onDraw()
245 SkSamplingOptions(SkCubicResampler::Mitchell())}) in onDraw()
Dimagescalealigned.cpp109 const SkSamplingOptions samplings[] = { in drawSets()
110 SkSamplingOptions(SkFilterMode::kNearest), in drawSets()
111 SkSamplingOptions(SkFilterMode::kLinear), in drawSets()
112 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in drawSets()
113 SkSamplingOptions(SkCubicResampler::Mitchell()), in drawSets()
134 SkPoint drawSet(SkCanvas* canvas, const ImageSet& set, const SkSamplingOptions& sampling, in drawSet()
Dpictureimagefilter.cpp80 sk_sp<SkImageFilter> make(sk_sp<SkPicture> pic, SkRect r, const SkSamplingOptions& sampling) { in make()
86 sk_sp<SkImageFilter> make(const SkSamplingOptions& sampling) { in make()
100 … sk_sp<SkImageFilter> pictureSourceResampled = make(SkSamplingOptions(SkFilterMode::kLinear)); in onDraw()
101 sk_sp<SkImageFilter> pictureSourcePixelated = make(SkSamplingOptions()); in onDraw()
124 paint.setImageFilter(make(fLCDPicture, fPicture->cullRect(), SkSamplingOptions())); in onDraw()
/third_party/skia/src/core/
DSkSamplingPriv.h40 static bool NoChangeWithIdentityMatrix(const SkSamplingOptions& sampling) { in NoChangeWithIdentityMatrix()
46 static SkSamplingOptions Read(SkReadBuffer&);
47 static void Write(SkWriteBuffer&, const SkSamplingOptions&);
49 static SkSamplingOptions FromFQ(SkLegacyFQ, SkMediumAs = kNearest_SkMediumAs);
DSkMatrixImageFilter.h33 const SkSamplingOptions& sampling,
40 const SkSamplingOptions&,
52 SkSamplingOptions fSampling;
/third_party/skia/tests/
DSamplingTest.cpp30 auto dotest = [&](const SkSamplingOptions& sampling, bool expect_same) { in DEF_TEST()
42 dotest(SkSamplingOptions(f, m), true); in DEF_TEST()
50 dotest(SkSamplingOptions({0, C}), true); in DEF_TEST()
54 dotest(SkSamplingOptions({B, C}), false); in DEF_TEST()
/third_party/skia/include/utils/
DSkNoDrawCanvas.h57 void onDrawImage2(const SkImage*, SkScalar, SkScalar, const SkSamplingOptions&, in onDrawImage2() argument
59 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&, in onDrawImageRect2() argument
64 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*) override {} in onDrawAtlas2() argument
73 const SkSamplingOptions&, const SkPaint*, in onDrawEdgeAAImageSet2() argument
/third_party/skia/src/image/
DSkImage.cpp111 bool SkImage::scalePixels(const SkPixmap& dst, const SkSamplingOptions& sampling, in scalePixels()
145 const SkSamplingOptions& sampling, in makeShader()
314 SkSamplingOptions sampling, in asFragmentProcessor()
327 sampling = SkSamplingOptions(sampling.filter); in asFragmentProcessor()
336 SkSamplingOptions sampling, in MakeFragmentProcessorFromView()
381 sampling = SkSamplingOptions(sampling.filter); in MakeFragmentProcessorFromView()
721 SkSamplingOptions SkSamplingPriv::FromFQ(SkLegacyFQ fq, SkMediumAs behavior) { in FromFQ()
724 return SkSamplingOptions(SkCubicResampler{1/3.0f, 1/3.0f}); in FromFQ()
726 return SkSamplingOptions(SkFilterMode::kLinear, in FromFQ()
730 return SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNone); in FromFQ()
[all …]

12345678910>>...16