Home
last modified time | relevance | path

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

/external/skia/gm/
Doffsetimagefilter.cpp112 const SkRect* clipR = nullptr) { in doDraw() argument
115 if (clipR) { in doDraw()
118 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
134 if (clipR) { in doDraw()
136 canvas->clipRect(*clipR); in doDraw()
144 if (clipR) { in doDraw()
173 SkRect clipR = SkRect::MakeXYWH(40, 40, 40, 40); in onDraw() local
175 this->doDraw(canvas, r, SkOffsetImageFilter::Make(20, 20, nullptr, nullptr), &clipR); in onDraw()
Dspritebitmap.cpp30 SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx), in draw_1_bitmap() local
36 clipR.inset(5, 5); in draw_1_bitmap()
42 canvas->clipRect(clipR); in draw_1_bitmap()
Dpathfill.cpp382 SkRect clipR = { 0, 0, SkIntToScalar(100), SkIntToScalar(200) }; in onDraw() local
392 canvas->clipRect(clipR); in onDraw()
394 const SkRect* clipPtr = doclip ? &clipR : nullptr; in onDraw()
396 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw()
397 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
/external/skqp/gm/
Doffsetimagefilter.cpp112 const SkRect* clipR = nullptr) { in doDraw() argument
115 if (clipR) { in doDraw()
118 canvas->drawRect(clipR->makeInset(SK_ScalarHalf, SK_ScalarHalf), p); in doDraw()
134 if (clipR) { in doDraw()
136 canvas->clipRect(*clipR); in doDraw()
144 if (clipR) { in doDraw()
173 SkRect clipR = SkRect::MakeXYWH(40, 40, 40, 40); in onDraw() local
175 this->doDraw(canvas, r, SkOffsetImageFilter::Make(20, 20, nullptr, nullptr), &clipR); in onDraw()
Dspritebitmap.cpp30 SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx), in draw_1_bitmap() local
36 clipR.inset(5, 5); in draw_1_bitmap()
42 canvas->clipRect(clipR); in draw_1_bitmap()
Dpathfill.cpp382 SkRect clipR = { 0, 0, SkIntToScalar(100), SkIntToScalar(200) }; in onDraw() local
392 canvas->clipRect(clipR); in onDraw()
394 const SkRect* clipPtr = doclip ? &clipR : nullptr; in onDraw()
396 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw()
397 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
/external/skqp/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.cpp76 const SkIRect clipR = dev->fRCStack.rc().getBounds(); in SkDrawTiler() local
77 fNeedsTiling = clipR.right() > kMaxDim || clipR.bottom() > kMaxDim; in SkDrawTiler()
93 if (fSrcBounds.intersect(clipR)) { in SkDrawTiler()
101 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()
DSkRasterClip.cpp214 bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse) { in setConservativeRect() argument
221 fBW.setRect(clipR); in setConservativeRect()
DSkBlitter.cpp731 const SkIRect& clipR = clip->getBounds(); in apply() local
733 if (clip->isEmpty() || (ir && !SkIRect::Intersects(clipR, *ir))) { in apply()
736 if (ir == nullptr || !clipR.contains(*ir)) { in apply()
737 fRectBlitter.init(blitter, clipR); in apply()
DSkRasterClip.h169 bool setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse);
/external/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.cpp77 const SkIRect clipR = dev->fRCStack.rc().getBounds(); in SkDrawTiler() local
78 fNeedsTiling = clipR.right() > kMaxDim || clipR.bottom() > kMaxDim; in SkDrawTiler()
94 if (fSrcBounds.intersect(clipR)) { in SkDrawTiler()
102 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()
DSkRasterClip.cpp214 bool SkRasterClip::setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse) { in setConservativeRect() argument
221 fBW.setRect(clipR); in setConservativeRect()
DSkBlitter.cpp732 const SkIRect& clipR = clip->getBounds(); in apply() local
734 if (clip->isEmpty() || (ir && !SkIRect::Intersects(clipR, *ir))) { in apply()
737 if (ir == nullptr || !clipR.contains(*ir)) { in apply()
738 fRectBlitter.init(blitter, clipR); in apply()
DSkRasterClip.h169 bool setConservativeRect(const SkRect& r, const SkIRect& clipR, bool isInverse);
/external/skqp/tests/
DCanvasTest.cpp153 const SkIRect clipR = { 4, 4, 6, 6 }; in test_restriction() local
154 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction()
155 REPORTER_ASSERT(reporter, canvas->getDeviceClipBounds() == clipR); in test_restriction()
/external/skia/tests/
DCanvasTest.cpp153 const SkIRect clipR = { 4, 4, 6, 6 }; in test_restriction() local
154 canvas->clipRect(SkRect::Make(clipR), SkClipOp::kIntersect); in test_restriction()
155 REPORTER_ASSERT(reporter, canvas->getDeviceClipBounds() == clipR); in test_restriction()