/third_party/skia/tests/ |
D | RegionTest.cpp | 14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() argument 15 rgn->op(rect, SkRegion::kUnion_Op); in Union() 18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) argument 19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) argument 20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) argument 74 SkRegion rgn; in test_fromchrome() local 75 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome() 76 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome() 77 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome() 118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument [all …]
|
D | AAClipTest.cpp | 71 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument 74 if (rgn.isEmpty()) { in copyToMask() 81 mask->fBounds = rgn.getBounds(); in copyToMask() 96 SkRegion tmpRgn(rgn); in copyToMask() 97 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 133 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument 136 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn() 140 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument 143 copyToMask(rgn, &mask0); in operator ==() 152 static bool equalsAAClip(const SkRegion& rgn) { in equalsAAClip() argument [all …]
|
/third_party/flutter/skia/tests/ |
D | RegionTest.cpp | 14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() argument 15 rgn->op(rect, SkRegion::kUnion_Op); in Union() 18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) argument 19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) argument 20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) argument 74 SkRegion rgn; in test_fromchrome() local 75 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome() 76 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome() 77 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome() 118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument [all …]
|
D | AAClipTest.cpp | 71 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument 74 if (rgn.isEmpty()) { in copyToMask() 81 mask->fBounds = rgn.getBounds(); in copyToMask() 96 SkRegion tmpRgn(rgn); in copyToMask() 97 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 112 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument 115 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn() 119 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument 122 copyToMask(rgn, &mask0); in operator ==() 131 static bool equalsAAClip(const SkRegion& rgn) { in equalsAAClip() argument [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleRegion.cpp | 140 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument 143 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn() 145 SkRegion::Iterator iter(rgn); in paint_rgn() 165 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument 166 rgn->setRect(fBase); in build_base_rgn() 169 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 172 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument 173 build_base_rgn(rgn); in build_rgn() 174 rgn->op(fRect, op); in build_rgn() 191 SkRegion rgn; in drawPredicates() local [all …]
|
/third_party/skia/src/core/ |
D | SkRegion.cpp | 209 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 212 return this->op(tmp, rgn, op); in op() 215 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 218 return this->op(rgn, tmp, op); in op() 438 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 440 SkDEBUGCODE(SkRegionPriv::Validate(rgn)); in contains() 442 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 448 if (rgn.isRect()) { in contains() 449 return this->contains(rgn.getBounds()); in contains() 456 return !Oper(rgn, *this, kDifference_Op, nullptr); in contains() [all …]
|
D | SkClipStackDevice.cpp | 46 void SkClipStackDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument 50 rgn.getBoundaryPath(&path); in onClipRegion() 76 void SkClipStackDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip() 82 rgn->setRect(bounds.round()); in onAsRgnClip() 87 *rgn = boundsRgn; in onAsRgnClip() 99 rgn->setRect(elem->getDeviceSpaceRect().round()); in onAsRgnClip() 101 rgn->op(tmpRgn, static_cast<SkRegion::Op>(elem->getOp())); in onAsRgnClip()
|
D | SkRasterClip.cpp | 46 SkRasterClip::SkRasterClip(const SkRegion& rgn) : fBW(rgn) { in SkRasterClip() argument 118 bool SkRasterClip::op(const SkRegion& rgn, SkClipOp op) { in op() argument 122 (void)fBW.op(rgn, (SkRegion::Op) op); in op() 125 tmp.setRegion(rgn); in op()
|
D | SkWriter32.h | 145 void writeRegion(const SkRegion& rgn) { in writeRegion() argument 146 size_t size = rgn.writeToMemory(nullptr); in writeRegion() 148 rgn.writeToMemory(this->reserve(size)); in writeRegion()
|
D | SkRasterClipStack.h | 73 void clipRegion(const SkRegion& rgn, SkClipOp op) { in clipRegion() argument 74 this->writable_rc().op(rgn, op); in clipRegion()
|
D | SkBitmapDevice.cpp | 663 void SkBitmapDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument 666 const SkRegion* ptr = &rgn; in onClipRegion() 669 rgn.translate(-origin.fX, -origin.fY, &tmp); in onClipRegion() 693 void SkBitmapDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip() 696 rgn->setRect(rc.getBounds()); in onAsRgnClip() 698 *rgn = rc.bwRgn(); in onAsRgnClip()
|
/third_party/flutter/skia/src/core/ |
D | SkRegion.cpp | 210 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 213 return this->op(tmp, rgn, op); in op() 216 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 219 return this->op(rgn, tmp, op); in op() 439 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 441 SkDEBUGCODE(SkRegionPriv::Validate(rgn)); in contains() 443 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 449 if (rgn.isRect()) { in contains() 450 return this->contains(rgn.getBounds()); in contains() 457 return !Oper(rgn, *this, kDifference_Op, nullptr); in contains() [all …]
|
D | SkClipStackDevice.cpp | 42 void SkClipStackDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument 45 const SkRegion* ptr = &rgn; in onClipRegion() 48 rgn.translate(-origin.fX, -origin.fY, &tmp); in onClipRegion() 77 void SkClipStackDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip() 83 rgn->setRect(bounds.round()); in onAsRgnClip() 87 rgn->setPath(path, SkRegion(SkIRect::MakeWH(this->width(), this->height()))); in onAsRgnClip()
|
D | SkRasterClip.cpp | 106 void SkConservativeClip::opRegion(const SkRegion& rgn, SkRegion::Op op) { in opRegion() argument 107 this->opIRect(rgn.getBounds(), op); in opRegion() 144 SkRasterClip::SkRasterClip(const SkRegion& rgn) : fBW(rgn) { in SkRasterClip() argument 313 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { in op() argument 317 (void)fBW.op(rgn, op); in op() 320 tmp.setRegion(rgn); in op()
|
D | SkWriter32.h | 151 void writeRegion(const SkRegion& rgn) { in writeRegion() argument 152 size_t size = rgn.writeToMemory(nullptr); in writeRegion() 154 rgn.writeToMemory(this->reserve(size)); in writeRegion()
|
D | SkBitmapDevice.cpp | 761 void SkBitmapDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument 764 const SkRegion* ptr = &rgn; in onClipRegion() 767 rgn.translate(-origin.fX, -origin.fY, &tmp); in onClipRegion() 776 SkRegion rgn(*mutableClipRestriction); in onSetDeviceClipRestriction() local 777 fRCStack.clipRegion(rgn, SkClipOp::kIntersect); in onSetDeviceClipRestriction() 786 void SkBitmapDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip() 789 rgn->setRect(rc.getBounds()); in onAsRgnClip() 791 *rgn = rc.bwRgn(); in onAsRgnClip()
|
D | SkReader32.h | 122 bool readRegion(SkRegion* rgn) { in readRegion() argument 123 return this->readObjectFromMemory(rgn); in readRegion()
|
/third_party/skia/include/core/ |
D | SkRegion.h | 332 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 333 return this->isEmpty() || rgn.isEmpty() || in quickReject() 334 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 393 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 404 bool op(const SkIRect& rect, const SkRegion& rgn, Op op); 415 bool op(const SkRegion& rgn, const SkIRect& rect, Op op); 500 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
/third_party/flutter/skia/include/core/ |
D | SkRegion.h | 324 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 325 return this->isEmpty() || rgn.isEmpty() || in quickReject() 326 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 407 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 419 bool op(const SkIRect& rect, const SkRegion& rgn, Op op); 431 bool op(const SkRegion& rgn, const SkIRect& rect, Op op); 509 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
/third_party/skia/gm/ |
D | clipdrawdraw.cpp | 58 SkRegion rgn({ 10, 10, 100, 100 }); variable 61 canvas->clipRegion(rgn); 67 canvas->clipRegion(rgn);
|
/third_party/flutter/skia/gm/ |
D | clipdrawdraw.cpp | 58 SkRegion rgn({ 10, 10, 100, 100 }); variable 61 canvas->clipRegion(rgn); 67 canvas->clipRegion(rgn);
|
/third_party/flutter/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 35 SkRegion rgn; in onFilterPath() local 36 rgn.setPath(tmp, SkRegion(ir)); in onFilterPath() 37 SkRegion::Iterator iter(rgn); in onFilterPath()
|
/third_party/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 80 SkRegion rgn; in onFilterPath() local 81 rgn.setPath(tmp, SkRegion(ir)); in onFilterPath() 82 SkRegion::Iterator iter(rgn); in onFilterPath()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkAlphaThresholdImageFilter.cpp | 89 SkRegion rgn; in CreateProc() local 90 buffer.readRegion(&rgn); in CreateProc() 91 return SkImageFilters::AlphaThreshold(rgn, inner, outer, common.getInput(0), common.cropRect()); in CreateProc()
|
/third_party/flutter/skia/src/effects/imagefilters/ |
D | SkAlphaThresholdFilter.cpp | 89 SkRegion rgn; in CreateProc() local 90 buffer.readRegion(&rgn); in CreateProc() 91 return SkAlphaThresholdFilter::Make(rgn, inner, outer, common.getInput(0), in CreateProc()
|