/third_party/skia/gm/ |
D | drawbitmaprect.cpp | 107 static void bitmapproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapproc() argument 110 canvas->drawImageRect(bm.asImage(), SkRect::Make(srcR), dstR, sampling, paint, in bitmapproc() 114 static void bitmapsubsetproc(SkCanvas* canvas, SkImage*, const SkBitmap& bm, const SkIRect& srcR, in bitmapsubsetproc() argument 117 if (!bm.bounds().contains(srcR)) { in bitmapsubsetproc() 118 bitmapproc(canvas, nullptr, bm, srcR, dstR, sampling, paint); in bitmapsubsetproc() 123 if (bm.extractSubset(&subset, srcR)) { in bitmapsubsetproc() 128 static void imageproc(SkCanvas* canvas, SkImage* image, const SkBitmap&, const SkIRect& srcR, in imageproc() argument 130 canvas->drawImageRect(image, SkRect::Make(srcR), dstR, sampling, paint, in imageproc() 135 const SkIRect& srcR, const SkRect& dstR, in imagesubsetproc() argument 137 if (!image->bounds().contains(srcR)) { in imagesubsetproc() [all …]
|
D | bitmaprect.cpp | 76 SkRect srcR; in onDraw() local 77 srcR.set(src[i]); in onDraw() 81 canvas->drawImageRect(image.get(), srcR, dstR, sampling, &paint, in onDraw() 89 canvas->drawRect(srcR, paint); in onDraw() 152 SkRect srcR = { 0.5f, 0.5f, 2.5f, 2.5f }; in onDraw() local 155 canvas->drawImageRect(bitmap.asImage(), srcR, dstR, SkSamplingOptions(), in onDraw()
|
D | bleed.cpp | 346 static sk_sp<SkImage> make_image(SkCanvas* canvas, SkRect* srcR) { in make_image() argument 362 *srcR = r.makeInset(2, 2); in make_image()
|
D | gpu_blur_utils.cpp | 341 auto srcR = SkRect::Make(srcRect).makeOutset(0.5f, 0.5f); in run() local 342 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, srcR, &style); in run()
|
/third_party/skia/src/core/ |
D | SkImageInfo.cpp | 156 SkIRect srcR = SkIRect::MakeXYWH(x, y, fInfo.width(), fInfo.height()); in trim() local 157 if (!srcR.intersect({0, 0, srcWidth, srcHeight})) { in trim() 172 fInfo = fInfo.makeDimensions(srcR.size()); in trim() 173 fX = srcR.x(); in trim() 174 fY = srcR.y(); in trim()
|
D | SkBlitter_ARGB32.cpp | 27 static inline SkPMColor blend_lcd16(int srcA, int srcR, int srcG, int srcB, in blend_lcd16() argument 57 blend_32(srcR, dstR, maskR), in blend_lcd16() 62 static inline SkPMColor blend_lcd16_opaque(int srcR, int srcG, int srcB, in blend_lcd16_opaque() argument 92 blend_32(srcR, dstR, maskR), in blend_lcd16_opaque() 305 int srcR = SkColorGetR(src); in blit_row_lcd16() local 314 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 322 __m128i src_sse = _mm_set1_epi32(SkPackARGB32(0xFF, srcR, srcG, srcB)); in blit_row_lcd16() 363 *dst = blend_lcd16(srcA, srcR, srcG, srcB, *dst, *mask); in blit_row_lcd16() 376 int srcR = SkColorGetR(src); in blit_row_lcd16_opaque() local 383 *dst = blend_lcd16_opaque(srcR, srcG, srcB, *dst, *mask, opaqueDst); in blit_row_lcd16_opaque() [all …]
|
D | SkDevice.cpp | 175 SkRect srcR, dstR; in drawImageLattice() local 180 while (iter.next(&srcR, &dstR, &isFixedColor, &c)) { in drawImageLattice() 182 if (isFixedColor || (srcR.width() <= 1.0f && srcR.height() <= 1.0f && in drawImageLattice() 183 image->readPixels(nullptr, info, &c, 4, srcR.fLeft, srcR.fTop))) { in drawImageLattice() 193 this->drawImageRect(image, &srcR, dstR, SkSamplingOptions(filter), paint, in drawImageLattice()
|
D | SkDraw.cpp | 1047 const SkRect& srcR) { in clipped_out() argument 1049 m.mapRect(&dstR, srcR); in clipped_out()
|
/third_party/skia/tests/ |
D | BitmapCopyTest.cpp | 198 const SkIRect srcR = gRec[i].fExpectedSrcR; in DEF_TEST() local 206 int sx = x - dstX + srcR.x(); in DEF_TEST() 207 int sy = y - dstY + srcR.y(); in DEF_TEST() 208 if (srcR.contains(sx, sy)) { in DEF_TEST()
|
D | DrawBitmapRectTest.cpp | 251 SkRect srcR = { gWidth, 0, gWidth + 16, 16 }; in DEF_TEST() local 254 canvas.drawImageRect(src.asImage(), srcR, dstR, SkSamplingOptions(), nullptr, in DEF_TEST()
|
/third_party/skia/src/gpu/ops/ |
D | LatticeOp.cpp | 270 SkIRect srcR; in onPrepareDraws() local 277 while (patch.fIter->next(&srcR, &dstR)) { in onPrepareDraws() 278 Sk4f coords(SkIntToScalar(srcR.fLeft), SkIntToScalar(srcR.fTop), in onPrepareDraws() 279 SkIntToScalar(srcR.fRight), SkIntToScalar(srcR.fBottom)); in onPrepareDraws()
|
/third_party/skia/modules/skottie/src/ |
D | Skottie.cpp | 486 const SkRect srcR = SkRect::MakeSize(this->size()); in render() local 488 canvas->concat(SkMatrix::RectToRect(srcR, *dstR, SkMatrix::kCenter_ScaleToFit)); in render() 492 canvas->clipRect(srcR); in render() 499 canvas->saveLayer(srcR, nullptr); in render()
|
/third_party/skia/src/image/ |
D | SkSurface.cpp | 300 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels() local 302 if (SkIRect::Intersects(srcR, dstR)) { in writePixels() 304 if (srcR.contains(dstR)) { in writePixels()
|
/third_party/skia/samplecode/ |
D | SampleStrokePath.cpp | 20 SkRect srcR = { 0, 0, 72000, 54000 }; in test_huge_stroke() local 38 canvas->concat(SkMatrix::RectToRect(srcR, dstR, SkMatrix::kCenter_ScaleToFit)); in test_huge_stroke()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkArithmeticImageFilter.cpp | 174 SkIRect srcR = SkIRect::MakeXYWH(srcDx, srcDy, src->width(), src->height()); in intersect() local 176 if (!sect.intersect(dstR, srcR)) { in intersect()
|
/third_party/skia/src/ports/ |
D | SkFontHost_FreeType_common.cpp | 175 const uint8_t* srcR = src; in copyFT2LCD16() local 176 const uint8_t* srcG = srcR + bitmap.pitch; in copyFT2LCD16() 180 swap(srcR, srcB); in copyFT2LCD16() 183 dst[x] = packTriple(sk_apply_lut_if<APPLY_PREBLEND>(*srcR++, tableR), in copyFT2LCD16()
|