Home
last modified time | relevance | path

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

12345678910>>...15

/external/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() argument
73 explicit SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions() argument
78 explicit SkSamplingOptions(const SkCubicResampler& c) in SkSamplingOptions() argument
86 explicit SkSamplingOptions(SkFilterQuality, MediumBehavior = kMedium_asMipmapNearest); argument
[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;
/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/gm/
Dimagesource2.cpp30 ImageSourceGM(const char* suffix, const SkSamplingOptions& sampling) in ImageSourceGM()
91 SkSamplingOptions fSampling;
99 DEF_GM(return new ImageSourceGM("none", SkSamplingOptions());)
100 DEF_GM(return new ImageSourceGM("low", SkSamplingOptions(SkFilterMode::kLinear));)
101 DEF_GM(return new ImageSourceGM("med", SkSamplingOptions(SkFilterMode::kLinear,
103 DEF_GM(return new ImageSourceGM("high", SkSamplingOptions({1/3.0f, 1/3.0f}));)
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()));
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()));
Dresizeimagefilter.cpp42 const SkSamplingOptions& sampling, in draw()
76 const SkSamplingOptions samplings[] = { in onDraw()
77 SkSamplingOptions(), in onDraw()
78 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
79 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in onDraw()
80 SkSamplingOptions(SkCubicResampler::Mitchell()), in onDraw()
112 SkSamplingOptions({1/3.0f, 1/3.0f}))); in onDraw()
Dlocalmatrixshader.cpp55 return img->makeShader(SkSamplingOptions(), inner)->makeWithLocalMatrix(outer); in __anonbb83141a0102()
60 …return img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)->makeWithLocalMatrix(outer… in __anonbb83141a0202()
67 img->makeShader(SkSamplingOptions(), inner)) in __anonbb83141a0302()
75 … img->makeShader(SkSamplingOptions())->makeWithLocalMatrix(inner)) in __anonbb83141a0402()
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())
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()))
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.cpp48 const SkSamplingOptions samplings[] = {
49 SkSamplingOptions(SkFilterMode::kNearest),
50 SkSamplingOptions(SkFilterMode::kLinear),
51 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear),
52 SkSamplingOptions(SkCubicResampler::Mitchell()),
82 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips()
131 SkSamplingOptions sampling(SkFilterMode::kLinear, in show_mips_only()
Dbleed.cpp129 const SkSamplingOptions& sampling, SkPaint* paint) { in drawImage()
148 const SkSamplingOptions& sampling) { in drawCase1()
161 const SkSamplingOptions& sampling) { in drawCase2()
174 const SkSamplingOptions& sampling) { in drawCase3()
191 const SkSamplingOptions& sampling) { in drawCase4()
206 const SkSamplingOptions& sampling) { in drawCase5()
247 const SkSamplingOptions none(SkFilterMode::kNearest); in onDraw()
248 const SkSamplingOptions low(SkFilterMode::kLinear); in onDraw()
249 const SkSamplingOptions high(SkCubicResampler::Mitchell()); in onDraw()
378 const SkSamplingOptions samplings[] = {
[all …]
Dfilterindiabox.cpp31 const SkSamplingOptions& sampling) { in draw_cell()
40 draw_cell(canvas, bm, mat, 0 * dx, SkSamplingOptions()); in draw_row()
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()
44 draw_cell(canvas, bm, mat, 3 * dx, SkSamplingOptions(SkCubicResampler::Mitchell())); in draw_row()
Dimagescalealigned.cpp110 const SkSamplingOptions samplings[] = { in drawSets()
111 SkSamplingOptions(SkFilterMode::kNearest), in drawSets()
112 SkSamplingOptions(SkFilterMode::kLinear), in drawSets()
113 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kLinear), in drawSets()
114 SkSamplingOptions(SkCubicResampler::Mitchell()), in drawSets()
135 SkPoint drawSet(SkCanvas* canvas, const ImageSet& set, const SkSamplingOptions& sampling, in drawSet()
Dimagefromyuvtextures.cpp198 auto draw_image = [canvas](SkImage* image, const SkSamplingOptions& sampling) -> SkSize { in onDraw()
207 const SkSamplingOptions& sampling) -> SkSize { in onDraw()
220 const SkSamplingOptions& sampling) -> SkSize { in onDraw()
236 using DrawSig = SkSize(SkImage* image, const SkSamplingOptions&); in onDraw()
243 SkSamplingOptions(SkFilterMode::kNearest), in onDraw()
244 SkSamplingOptions(SkFilterMode::kLinear), in onDraw()
245 SkSamplingOptions(SkFilterMode::kLinear, SkMipmapMode::kNearest), in onDraw()
246 SkSamplingOptions(SkCubicResampler::Mitchell())}) in onDraw()
Ddrawbitmaprect.cpp109 const SkRect& dstR, const SkSamplingOptions& sampling, in bitmapproc()
116 const SkRect& dstR, const SkSamplingOptions& sampling, in bitmapsubsetproc()
130 const SkRect& dstR, const SkSamplingOptions& sampling, const SkPaint* paint) { in imageproc()
137 const SkSamplingOptions& sampling, const SkPaint* paint) { in imagesubsetproc()
150 const SkSamplingOptions&, const SkPaint*);
190 canvas->drawImageRect(fImage, SkRect::MakeIWH(gSize, gSize), SkSamplingOptions(), &paint); in onDraw()
211 fProc(canvas, fImage.get(), fLargeBitmap, srcRect, dstRect, SkSamplingOptions(), in onDraw()
250 SkSamplingOptions(SkFilterMode::kLinear), &paint); in onDraw()
Dpictureimagefilter.cpp81 sk_sp<SkImageFilter> make(sk_sp<SkPicture> pic, SkRect r, const SkSamplingOptions& sampling) { in make()
87 sk_sp<SkImageFilter> make(const SkSamplingOptions& sampling) { in make()
101 … sk_sp<SkImageFilter> pictureSourceResampled = make(SkSamplingOptions(SkFilterMode::kLinear)); in onDraw()
102 sk_sp<SkImageFilter> pictureSourcePixelated = make(SkSamplingOptions()); in onDraw()
125 paint.setImageFilter(make(fLCDPicture, fPicture->cullRect(), SkSamplingOptions())); in onDraw()
/external/skia/src/effects/imagefilters/
DSkImageImageFilter.cpp24 const SkSamplingOptions& sampling) in SkImageImageFilter()
47 SkSamplingOptions fSampling;
57 const SkSamplingOptions& sampling) { in Image()
73 SkSamplingOptions sampling; in CreateProc()
75 sampling = SkSamplingOptions(buffer.checkFilterQuality(), in CreateProc()
76 SkSamplingOptions::kMedium_asMipmapLinear); in CreateProc()
145 SkSamplingOptions sampling = fSampling; in onFilterImage()
148 sampling = SkSamplingOptions(); in onFilterImage()
/external/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()
DShaderOpacityTest.cpp24 auto shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap()
32 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap()
38 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap()
44 shader = bmp.makeShader(SkSamplingOptions()); in test_bitmap()
/external/skia/src/core/
DSkMatrixImageFilter.cpp20 const SkSamplingOptions& sampling, in SkMatrixImageFilter()
30 const SkSamplingOptions& sampling, in Make()
38 const SkMatrix& transform, const SkSamplingOptions& sampling, sk_sp<SkImageFilter> input) { in MatrixTransform()
49 return SkSamplingOptions(buffer.read32LE(kLast_SkFilterQuality), in CreateProc()
50 SkSamplingOptions::kMedium_asMipmapLinear); in CreateProc()
142 if (kReverse_MapDirection == dir && SkSamplingOptions() != fSampling) { in onFilterNodeBounds()
DSkSamplingPriv.h23 static bool NoChangeWithIdentityMatrix(const SkSamplingOptions& sampling) { in NoChangeWithIdentityMatrix()
29 static SkSamplingOptions Read(SkReadBuffer&);
30 static void Write(SkWriteBuffer&, const SkSamplingOptions&);
DSkMatrixImageFilter.h33 const SkSamplingOptions& sampling,
40 const SkSamplingOptions&,
52 SkSamplingOptions fSampling;
/external/skia/src/gpu/
DSkGpuDevice_nga.h54 const SkSamplingOptions&, const SkPaint&,
63 int count, SkBlendMode, const SkSamplingOptions&, const SkPaint&) override;
68 const SkMatrix[], const SkSamplingOptions&, const SkPaint&,
72 void drawDevice(SkBaseDevice*, const SkSamplingOptions&, const SkPaint&) override;
73 void drawSpecial(SkSpecialImage*, const SkMatrix& localToDevice, const SkSamplingOptions&,
/external/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

12345678910>>...15