/external/skia/include/core/ |
D | SkSamplingOptions.h | 54 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 …]
|
D | SkOverdrawCanvas.h | 40 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/ |
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/gm/ |
D | imagesource2.cpp | 30 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}));)
|
D | alpha_image.cpp | 49 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()));
|
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 | resizeimagefilter.cpp | 42 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()
|
D | localmatrixshader.cpp | 55 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())
|
D | localmatriximageshader.cpp | 39 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()))
|
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 | mipmap.cpp | 48 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()
|
D | bleed.cpp | 129 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 …]
|
D | filterindiabox.cpp | 31 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()
|
D | imagescalealigned.cpp | 110 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()
|
D | imagefromyuvtextures.cpp | 198 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()
|
D | drawbitmaprect.cpp | 109 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()
|
D | pictureimagefilter.cpp | 81 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/ |
D | SkImageImageFilter.cpp | 24 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/ |
D | SamplingTest.cpp | 30 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()
|
D | ShaderOpacityTest.cpp | 24 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/ |
D | SkMatrixImageFilter.cpp | 20 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()
|
D | SkSamplingPriv.h | 23 static bool NoChangeWithIdentityMatrix(const SkSamplingOptions& sampling) { in NoChangeWithIdentityMatrix() 29 static SkSamplingOptions Read(SkReadBuffer&); 30 static void Write(SkWriteBuffer&, const SkSamplingOptions&);
|
D | SkMatrixImageFilter.h | 33 const SkSamplingOptions& sampling, 40 const SkSamplingOptions&, 52 SkSamplingOptions fSampling;
|
/external/skia/src/gpu/ |
D | SkGpuDevice_nga.h | 54 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/ |
D | SkNoDrawCanvas.h | 57 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
|