/external/skia/samplecode/ |
D | SampleRegion.cpp | 118 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn() argument 123 rgn->debugSetRuns(runs, count); in make_rgn() 124 SkASSERT(rgn->getBounds() == r); in make_rgn() 176 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument 179 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn() 181 SkRegion::Iterator iter(rgn); in paint_rgn() 201 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument 202 rgn->setRect(fBase); in build_base_rgn() 205 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 208 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument [all …]
|
/external/skqp/samplecode/ |
D | SampleRegion.cpp | 118 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn() argument 123 rgn->debugSetRuns(runs, count); in make_rgn() 124 SkASSERT(rgn->getBounds() == r); in make_rgn() 176 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument 179 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn() 181 SkRegion::Iterator iter(rgn); in paint_rgn() 201 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument 202 rgn->setRect(fBase); in build_base_rgn() 205 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 208 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument [all …]
|
/external/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 …]
|
D | DeviceLooperTest.cpp | 75 static void make_rgn(SkRegion* rgn, int w, int h, unsigned mask) { in make_rgn() argument 88 rgn->op(r, SkRegion::kUnion_Op); in make_rgn() 122 SkRegion rgn; in test_complex() local 123 make_rgn(&rgn, w, h, mask); in test_complex() 126 rc.op(rgn, SkRegion::kReplace_Op); in test_complex()
|
/external/skqp/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 | 60 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument 63 if (rgn.isEmpty()) { in copyToMask() 70 mask->fBounds = rgn.getBounds(); in copyToMask() 85 SkRegion tmpRgn(rgn); in copyToMask() 86 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 101 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument 104 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn() 108 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument 111 copyToMask(rgn, &mask0); in operator ==() 120 static bool equalsAAClip(const SkRegion& rgn) { in equalsAAClip() argument [all …]
|
D | DeviceLooperTest.cpp | 75 static void make_rgn(SkRegion* rgn, int w, int h, unsigned mask) { in make_rgn() argument 88 rgn->op(r, SkRegion::kUnion_Op); in make_rgn() 122 SkRegion rgn; in test_complex() local 123 make_rgn(&rgn, w, h, mask); in test_complex() 126 rc.op(rgn, SkRegion::kReplace_Op); in test_complex()
|
/external/skia/src/core/ |
D | SkRegion.cpp | 166 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 169 return this->op(tmp, rgn, op); in op() 172 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 175 return this->op(rgn, tmp, op); in op() 395 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 397 SkDEBUGCODE(rgn.validate();) in contains() 399 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 405 if (rgn.isRect()) { in contains() 406 return this->contains(rgn.getBounds()); in contains() 413 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 | 105 void SkConservativeClip::opRegion(const SkRegion& rgn, SkRegion::Op op) { in opRegion() argument 106 this->opIRect(rgn.getBounds(), op); in opRegion() 143 SkRasterClip::SkRasterClip(const SkRegion& rgn) : fBW(rgn) { in SkRasterClip() argument 312 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { in op() argument 316 (void)fBW.op(rgn, op); in op() 319 tmp.setRegion(rgn); in op()
|
/external/skqp/src/core/ |
D | SkRegion.cpp | 166 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 169 return this->op(tmp, rgn, op); in op() 172 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 175 return this->op(rgn, tmp, op); in op() 395 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 397 SkDEBUGCODE(rgn.validate();) in contains() 399 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 405 if (rgn.isRect()) { in contains() 406 return this->contains(rgn.getBounds()); in contains() 413 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 | 105 void SkConservativeClip::opRegion(const SkRegion& rgn, SkRegion::Op op) { in opRegion() argument 106 this->opIRect(rgn.getBounds(), op); in opRegion() 143 SkRasterClip::SkRasterClip(const SkRegion& rgn) : fBW(rgn) { in SkRasterClip() argument 312 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { in op() argument 316 (void)fBW.op(rgn, op); in op() 319 tmp.setRegion(rgn); in op()
|
D | SkBitmapDevice.cpp | 558 void SkBitmapDevice::onClipRegion(const SkRegion& rgn, SkClipOp op) { in onClipRegion() argument 561 const SkRegion* ptr = &rgn; in onClipRegion() 564 rgn.translate(-origin.fX, -origin.fY, &tmp); in onClipRegion() 573 SkRegion rgn(*mutableClipRestriction); in onSetDeviceClipRestriction() local 574 fRCStack.clipRegion(rgn, SkClipOp::kIntersect); in onSetDeviceClipRestriction() 583 void SkBitmapDevice::onAsRgnClip(SkRegion* rgn) const { in onAsRgnClip() 586 rgn->setRect(rc.getBounds()); in onAsRgnClip() 588 *rgn = rc.bwRgn(); in onAsRgnClip()
|
/external/skia/include/core/ |
D | SkRegion.h | 222 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 223 return this->isEmpty() || rgn.isEmpty() || in quickReject() 224 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 286 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 293 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 300 bool op(const SkRegion& rgn, const SkIRect& rect, Op); 331 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
/external/skqp/include/core/ |
D | SkRegion.h | 222 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 223 return this->isEmpty() || rgn.isEmpty() || in quickReject() 224 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 286 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 293 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 300 bool op(const SkRegion& rgn, const SkIRect& rect, Op); 331 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
/external/libvncserver/rfb/ |
D | rfbregion.h | 26 extern void sraRgnDestroy(sraRegion *rgn); 27 extern void sraRgnMakeEmpty(sraRegion *rgn); 37 extern unsigned long sraRgnCountRects(const sraRegion *rgn); 38 extern rfbBool sraRgnEmpty(const sraRegion *rgn);
|
/external/vulkan-validation-layers/layers/ |
D | buffer_validation.cpp | 2471 const VkImageBlit rgn = regions[i]; in PreCallValidateCmdBlitImage() local 2474 … VerifyImageLayout(device_data, cb_node, src_image_state, rgn.srcSubresource, src_image_layout, in PreCallValidateCmdBlitImage() 2477 … VerifyImageLayout(device_data, cb_node, dst_image_state, rgn.dstSubresource, dst_image_layout, in PreCallValidateCmdBlitImage() 2481 …if ((rgn.srcOffsets[0].x == rgn.srcOffsets[1].x) || (rgn.srcOffsets[0].y == rgn.srcOffsets[1].y) || in PreCallValidateCmdBlitImage() 2482 (rgn.srcOffsets[0].z == rgn.srcOffsets[1].z)) { in PreCallValidateCmdBlitImage() 2489 …if ((rgn.dstOffsets[0].x == rgn.dstOffsets[1].x) || (rgn.dstOffsets[0].y == rgn.dstOffsets[1].y) || in PreCallValidateCmdBlitImage() 2490 (rgn.dstOffsets[0].z == rgn.dstOffsets[1].z)) { in PreCallValidateCmdBlitImage() 2497 if (rgn.srcSubresource.layerCount == 0) { in PreCallValidateCmdBlitImage() 2502 if (rgn.dstSubresource.layerCount == 0) { in PreCallValidateCmdBlitImage() 2509 if (rgn.srcSubresource.layerCount != rgn.dstSubresource.layerCount) { in PreCallValidateCmdBlitImage() [all …]
|
/external/skqp/gm/ |
D | clipdrawdraw.cpp | 56 SkRegion rgn({ 10, 10, 100, 100 }); variable 59 canvas->clipRegion(rgn); 65 canvas->clipRegion(rgn);
|
/external/skia/gm/ |
D | clipdrawdraw.cpp | 56 SkRegion rgn({ 10, 10, 100, 100 }); variable 59 canvas->clipRegion(rgn); 65 canvas->clipRegion(rgn);
|
/external/libvncserver/libvncserver/ |
D | rfbregion.c | 541 sraRgnDestroy(sraRegion *rgn) { in sraRgnDestroy() argument 542 sraSpanListDestroy((sraSpanList*)rgn); in sraRgnDestroy() 546 sraRgnMakeEmpty(sraRegion *rgn) { in sraRgnMakeEmpty() argument 547 sraSpanListMakeEmpty((sraSpanList*)rgn); in sraRgnMakeEmpty() 620 sraRgnPopRect(sraRegion *rgn, sraRect *rect, unsigned long flags) { in sraRgnPopRect() argument 628 vcurr = ((sraSpanList*)rgn)->back._prev; in sraRgnPopRect() 629 vend = &(((sraSpanList*)rgn)->front); in sraRgnPopRect() 631 vcurr = ((sraSpanList*)rgn)->front._next; in sraRgnPopRect() 632 vend = &(((sraSpanList*)rgn)->back); in sraRgnPopRect() 672 sraRgnCountRects(const sraRegion *rgn) { in sraRgnCountRects() argument [all …]
|
/external/skia/src/utils/ |
D | SkCanvasStateUtils.cpp | 182 SkRegion rgn; in CaptureCanvasState() local 183 canvas->temporary_internal_getRgnClip(&rgn); in CaptureCanvasState() 184 setup_MC_state(&canvasState->mcState, canvas->getTotalMatrix(), rgn); in CaptureCanvasState() 225 SkRegion rgn; in CaptureCanvasState() local 226 layer.clip(&rgn); in CaptureCanvasState() 227 setup_MC_state(&layerState->mcState, layer.matrix(), rgn); in CaptureCanvasState()
|
/external/skqp/src/utils/ |
D | SkCanvasStateUtils.cpp | 182 SkRegion rgn; in CaptureCanvasState() local 183 canvas->temporary_internal_getRgnClip(&rgn); in CaptureCanvasState() 184 setup_MC_state(&canvasState->mcState, canvas->getTotalMatrix(), rgn); in CaptureCanvasState() 225 SkRegion rgn; in CaptureCanvasState() local 226 layer.clip(&rgn); in CaptureCanvasState() 227 setup_MC_state(&layerState->mcState, layer.matrix(), rgn); in CaptureCanvasState()
|
/external/python/cpython2/Mac/Modules/qd/ |
D | _Qdmodule.c | 1146 RgnHandle rgn; in GrafObj_QDGetDirtyRegion() local 1151 ResObj_Convert, &rgn)) in GrafObj_QDGetDirtyRegion() 1154 rgn); in GrafObj_QDGetDirtyRegion() 1165 RgnHandle rgn; in GrafObj_QDSetDirtyRegion() local 1170 ResObj_Convert, &rgn)) in GrafObj_QDSetDirtyRegion() 1173 rgn); in GrafObj_QDSetDirtyRegion() 1714 RgnHandle rgn; in Qd_SetClip() local 1719 ResObj_Convert, &rgn)) in Qd_SetClip() 1721 SetClip(rgn); in Qd_SetClip() 1730 RgnHandle rgn; in Qd_GetClip() local [all …]
|