/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/flutter/skia/gm/ |
D | offsetimagefilter.cpp | 119 const SkRect* clipR = nullptr) { in doDraw() argument 122 if (clipR) { in doDraw() 125 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw() 142 if (clipR) { in doDraw() 144 canvas->clipRect(*clipR); in doDraw() 152 if (clipR) { in doDraw() 181 SkRect clipR = SkRect::MakeXYWH(40, 40, 40, 40); in onDraw() local 183 this->doDraw(canvas, r, SkImageFilters::Offset(20, 20, nullptr, 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 | 389 SkRect clipR = { 0, 0, SkIntToScalar(100), SkIntToScalar(200) }; in onDraw() local 399 canvas->clipRect(clipR); in onDraw() 401 const SkRect* clipPtr = doclip ? &clipR : nullptr; in onDraw() 403 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw() 404 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
|
/third_party/flutter/skia/src/core/ |
D | SkMaskFilter.cpp | 53 const SkIRect& bounds, const SkIRect& clipR) { in blitClippedMask() argument 55 if (r.intersect(bounds, clipR)) { in blitClippedMask() 60 static void blitClippedRect(SkBlitter* blitter, const SkIRect& rect, const SkIRect& clipR) { in blitClippedRect() argument 62 if (r.intersect(rect, clipR)) { in blitClippedRect() 81 const SkIRect& clipR, SkBlitter* blitter) { in draw_nine_clipped() argument 93 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 103 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 113 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 124 blitClippedMask(blitter, m, m.fBounds, clipR); in draw_nine_clipped() 133 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 | 48 SkIRect clipR, ptsR; in HairLineRgn() local 91 clipR.set(SkIntToFDot6(bounds.fLeft), SkIntToFDot6(bounds.fTop), in HairLineRgn() 102 if (!SkIRect::Intersects(ptsR, clipR)) { in HairLineRgn() 105 if (!clip->isRect() || !clipR.contains(ptsR)) { in HairLineRgn()
|
D | SkBlitter.cpp | 619 const SkIRect& clipR = clip->getBounds(); in apply() local 621 if (clip->isEmpty() || (ir && !SkIRect::Intersects(clipR, *ir))) { in apply() 624 if (ir == nullptr || !clipR.contains(*ir)) { in apply() 625 fRectBlitter.init(blitter, clipR); in apply()
|
D | SkRasterClip.cpp | 214 bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse) { in setConservativeRect() argument 221 fBW.setRect(clipR); in setConservativeRect()
|
D | SkRasterClip.h | 169 bool setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse);
|
/third_party/flutter/skia/tests/ |
D | CanvasTest.cpp | 114 const SkIRect clipR = { 4, 4, 6, 6 }; in test_restriction() local 115 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction() 116 REPORTER_ASSERT(reporter, canvas->getDeviceClipBounds() == clipR); in test_restriction()
|
/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()
|