/external/skia/include/core/ |
D | SkSamplingOptions.h | 58 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() argument 77 explicit constexpr SkSamplingOptions(SkFilterMode fm) in SkSamplingOptions() argument 81 explicit constexpr SkSamplingOptions(const SkCubicResampler& c) in SkSamplingOptions() argument 85 static constexpr SkSamplingOptions Aniso(int maxAniso) { in Aniso() argument [all …]
|
/external/skia/gm/ |
D | resizeimagefilter.cpp | 41 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()
|
D | alpha_image.cpp | 50 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);
|
D | imagesource2.cpp | 29 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}));)
|
D | bitmapshader.cpp | 78 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()));
|
D | bicubic.cpp | 18 const SkSamplingOptions gSamplings[] = { 19 SkSamplingOptions(SkFilterMode::kNearest), 20 SkSamplingOptions(SkFilterMode::kLinear), 21 SkSamplingOptions(SkCubicResampler::Mitchell()), 51 SkSamplingOptions(c)));
|
D | coordclampshader.cpp | 27 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)
|
D | localmatrixshader.cpp | 60 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 …]
|
D | rectangletexture.cpp | 158 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()
|
D | bleed.cpp | 129 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 …]
|
D | mipmap.cpp | 47 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()
|
D | colormatrix.cpp | 101 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()
|
D | localmatriximageshader.cpp | 39 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()))
|
D | bmpfilterqualityrepeat.cpp | 78 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()
|
D | filterindiabox.cpp | 30 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()
|
D | kawase_blur_rt.cpp | 105 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()
|
D | perspshaders.cpp | 90 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));
|
D | tilemodes_scaled.cpp | 29 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/ |
D | SkSamplingPriv.h | 35 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);
|
D | SkSpecialImage.h | 83 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/ |
D | Image_scalePixels.cpp | 16 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/ |
D | SkImageShader.h | 30 const SkSamplingOptions&, 37 const SkSamplingOptions&, 46 const SkSamplingOptions&, 53 const SkSamplingOptions&, 91 const SkSamplingOptions fSampling;
|
/external/skia/tests/ |
D | SamplingTest.cpp | 36 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/ |
D | ImageUtils.cpp | 39 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()
|
D | ImageUtils.h | 14 struct SkSamplingOptions; 20 std::pair<sk_sp<SkImage>, SkSamplingOptions> GetGraphiteBacked(Recorder*, 22 SkSamplingOptions);
|