Home
last modified time | relevance | path

Searched refs:clipR (Results 1 – 18 of 18) 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/flutter/skia/gm/
Doffsetimagefilter.cpp119 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()
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.cpp389 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/
DSkMaskFilter.cpp53 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 …]
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.cpp48 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()
DSkBlitter.cpp619 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()
DSkRasterClip.cpp214 bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse) { in setConservativeRect() argument
221 fBW.setRect(clipR); in setConservativeRect()
DSkRasterClip.h169 bool setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse);
/third_party/flutter/skia/tests/
DCanvasTest.cpp114 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/
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()