Home
last modified time | relevance | path

Searched refs:clipR (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/src/core/
DSkMaskFilter.cpp52 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 …]
DSkBitmapDevice.cpp78 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()
DSkScan_Hairline.cpp49 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()
DSkBlitter.cpp625 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/
Doffsetimagefilter.cpp117 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()
Dspritebitmap.cpp39 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()
Dpathfill.cpp394 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/
DCanvasTest.cpp151 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()