/third_party/skia/src/core/ |
D | SkMaskFilter.cpp | 52 const SkIRect& bounds, const SkIRect& clipR) { in blitClippedMask() argument 54 if (r.intersect(bounds, clipR)) { in blitClippedMask() 59 static void blitClippedRect(SkBlitter* blitter, const SkIRect& rect, const SkIRect& clipR) { in blitClippedRect() argument 61 if (r.intersect(rect, clipR)) { in blitClippedRect() 80 const SkIRect& clipR, SkBlitter* blitter) { in draw_nine_clipped() argument 92 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 102 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 112 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 123 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 132 blitClippedRect(blitter, innerR, clipR); in draw_nine_clipped() [all …]
|
D | SkBitmapDevice.cpp | 78 const SkIRect clipR = dev->fRCStack.rc().getBounds(); in SkDrawTiler() local 79 fNeedsTiling = clipR.right() > kMaxDim || clipR.bottom() > kMaxDim; in SkDrawTiler() 95 if (fSrcBounds.intersect(clipR)) { in SkDrawTiler() 103 fSrcBounds = clipR; in SkDrawTiler()
|
D | SkScan_Hairline.cpp | 49 SkIRect clipR, ptsR; in HairLineRgn() local 92 clipR.setLTRB(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn() 103 if (!SkIRect::Intersects(ptsR, clipR)) { in HairLineRgn() 106 if (!clip->isRect() || !clipR.contains(ptsR)) { in HairLineRgn()
|
D | SkBlitter.cpp | 625 const SkIRect& clipR = clip->getBounds(); in apply() local 627 if (clip->isEmpty() || (ir && !SkIRect::Intersects(clipR, *ir))) { in apply() 630 if (ir == nullptr || !clipR.contains(*ir)) { in apply() 631 fRectBlitter.init(blitter, clipR); in apply()
|
/third_party/skia/gm/ |
D | offsetimagefilter.cpp | 117 const SkIRect* cropR = nullptr, const SkRect* clipR = nullptr) { in doDraw() argument 120 if (clipR) { in doDraw() 123 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw() 140 if (clipR) { in doDraw() 142 canvas->clipRect(*clipR); in doDraw() 150 if (clipR) { in doDraw() 179 SkRect clipR = SkRect::MakeXYWH(40, 40, 40, 40); in onDraw() local 181 … this->doDraw(canvas, r, SkImageFilters::Offset(20, 20, nullptr), /* cropR */ nullptr, &clipR); in onDraw()
|
D | spritebitmap.cpp | 39 SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx), in draw_1_bitmap() local 45 clipR.inset(5, 5); in draw_1_bitmap() 51 canvas->clipRect(clipR); in draw_1_bitmap()
|
D | pathfill.cpp | 394 SkRect clipR = {0, 0, 100, 200}; in onDraw() local 404 canvas->clipRect(clipR); in onDraw() 406 const SkRect* clipPtr = doclip ? &clipR : nullptr; in onDraw() 408 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw() 409 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
|
/third_party/skia/tests/ |
D | CanvasTest.cpp | 151 const SkIRect clipR = { 4, 4, 6, 6 }; in test_restriction() local 152 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction() 153 REPORTER_ASSERT(reporter, canvas->getDeviceClipBounds() == clipR); in test_restriction()
|