/external/chromium_org/third_party/skia/samplecode/ |
D | SampleRegion.cpp | 124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn() argument 129 rgn->debugSetRuns(runs, count); in make_rgn() 130 SkASSERT(rgn->getBounds() == r); in make_rgn() 182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument 185 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn() 187 SkRegion::Iterator iter(rgn); in paint_rgn() 207 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument 208 rgn->setRect(fBase); in build_base_rgn() 211 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 214 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument [all …]
|
/external/skia/samplecode/ |
D | SampleRegion.cpp | 124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, in make_rgn() argument 129 rgn->debugSetRuns(runs, count); in make_rgn() 130 SkASSERT(rgn->getBounds() == r); in make_rgn() 182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument 185 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn() 187 SkRegion::Iterator iter(rgn); in paint_rgn() 207 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument 208 rgn->setRect(fBase); in build_base_rgn() 211 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn() 214 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | RegionTest.cpp | 12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() argument 13 rgn->op(rect, SkRegion::kUnion_Op); in Union() 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) argument 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) argument 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) argument 72 SkRegion rgn; in test_fromchrome() local 73 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome() 74 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome() 75 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome() 109 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument [all …]
|
D | AAClipTest.cpp | 59 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument 62 if (rgn.isEmpty()) { in copyToMask() 69 mask->fBounds = rgn.getBounds(); in copyToMask() 84 SkRegion tmpRgn(rgn); in copyToMask() 85 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 100 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument 103 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn() 107 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument 110 copyToMask(rgn, &mask0); in operator ==() 119 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/tests/ |
D | RegionTest.cpp | 12 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union() argument 13 rgn->op(rect, SkRegion::kUnion_Op); in Union() 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) argument 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) argument 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) argument 72 SkRegion rgn; in test_fromchrome() local 73 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome() 74 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome() 75 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome() 109 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument [all …]
|
D | AAClipTest.cpp | 59 static void copyToMask(const SkRegion& rgn, SkMask* mask) { in copyToMask() argument 62 if (rgn.isEmpty()) { in copyToMask() 69 mask->fBounds = rgn.getBounds(); in copyToMask() 84 SkRegion tmpRgn(rgn); in copyToMask() 85 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 100 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { in make_rand_rgn() argument 103 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); in make_rand_rgn() 107 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) { in operator ==() argument 110 copyToMask(rgn, &mask0); in operator ==() 119 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/chromium_org/third_party/skia/src/core/ |
D | SkRegion.cpp | 171 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 174 return this->op(tmp, rgn, op); in op() 177 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 180 return this->op(rgn, tmp, op); in op() 393 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 395 SkDEBUGCODE(rgn.validate();) in contains() 397 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 403 if (rgn.isRect()) { in contains() 404 return this->contains(rgn.getBounds()); in contains() 411 return !Oper(rgn, *this, kDifference_Op, NULL); in contains() [all …]
|
D | SkReader32.h | 121 bool readRegion(SkRegion* rgn) { in readRegion() argument 122 return this->readObjectFromMemory(rgn); in readRegion()
|
D | SkRasterClip.cpp | 228 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { in op() argument 232 (void)fBW.op(rgn, op); in op() 235 tmp.setRegion(rgn); in op()
|
/external/skia/src/core/ |
D | SkRegion.cpp | 171 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { in op() argument 174 return this->op(tmp, rgn, op); in op() 177 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { in op() argument 180 return this->op(rgn, tmp, op); in op() 393 bool SkRegion::contains(const SkRegion& rgn) const { in contains() 395 SkDEBUGCODE(rgn.validate();) in contains() 397 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { in contains() 403 if (rgn.isRect()) { in contains() 404 return this->contains(rgn.getBounds()); in contains() 411 return !Oper(rgn, *this, kDifference_Op, NULL); in contains() [all …]
|
D | SkRasterClip.cpp | 102 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { in op() argument 106 (void)fBW.op(rgn, op); in op() 109 tmp.setRegion(rgn); in op()
|
/external/skia/include/core/ |
D | SkRegion.h | 221 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 222 return this->isEmpty() || rgn.isEmpty() || in quickReject() 223 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 277 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 284 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 291 bool op(const SkRegion& rgn, const SkIRect& rect, Op); 322 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
D | SkWriter32.h | 153 void writeRegion(const SkRegion& rgn) { in writeRegion() argument 154 size_t size = rgn.writeToMemory(NULL); in writeRegion() 156 rgn.writeToMemory(this->reserve(size)); in writeRegion()
|
D | SkReader32.h | 121 bool readRegion(SkRegion* rgn) { in readRegion() argument 122 return readObjectFromMemory(rgn); in readRegion()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkRegion.h | 221 bool quickReject(const SkRegion& rgn) const { in quickReject() argument 222 return this->isEmpty() || rgn.isEmpty() || in quickReject() 223 !SkIRect::Intersects(fBounds, rgn.fBounds); in quickReject() 277 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } in op() argument 284 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 291 bool op(const SkRegion& rgn, const SkIRect& rect, Op); 322 const SkRegion* rgn() const { return fRgn; } in rgn() function
|
D | SkWriter32.h | 153 void writeRegion(const SkRegion& rgn) { in writeRegion() argument 154 size_t size = rgn.writeToMemory(NULL); in writeRegion() 156 rgn.writeToMemory(this->reserve(size)); in writeRegion()
|
/external/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 34 SkRegion rgn; in filterPath() local 35 rgn.setPath(tmp, SkRegion(ir)); in filterPath() 36 SkRegion::Iterator iter(rgn); in filterPath()
|
/external/chromium_org/third_party/skia/src/effects/ |
D | Sk2DPathEffect.cpp | 34 SkRegion rgn; in filterPath() local 35 rgn.setPath(tmp, SkRegion(ir)); in filterPath() 36 SkRegion::Iterator iter(rgn); in filterPath()
|
D | SkAlphaThresholdFilter.cpp | 255 SkRegion rgn; in CreateProc() local 256 buffer.readRegion(&rgn); in CreateProc() 257 return SkAlphaThresholdFilter::Create(rgn, inner, outer, common.getInput(0)); in CreateProc()
|
/external/skia/src/images/ |
D | SkPageFlipper.cpp | 53 void SkPageFlipper::inval(const SkRegion& rgn) { in inval() argument 56 if (r.op(rgn, SkRegion::kIntersect_Op)) { in inval()
|
/external/chromium_org/third_party/skia/src/images/ |
D | SkPageFlipper.cpp | 53 void SkPageFlipper::inval(const SkRegion& rgn) { in inval() argument 56 if (r.op(rgn, SkRegion::kIntersect_Op)) { in inval()
|
/external/chromium_org/remoting/host/ |
D | disconnect_window_win.cc | 383 HRGN rgn = CreateRoundRectRgn(0, 0, width, height, kWindowBorderRadius, in SetStrings() local 385 if (!rgn) in SetStrings() 387 if (!SetWindowRgn(hwnd_, rgn, TRUE)) in SetStrings()
|
/external/skia/src/utils/ |
D | SkCullPoints.cpp | 202 SkRegion rgn; in SkHitTestPath() local 203 return rgn.setPath(*pathPtr, clip) ^ isInverse; in SkHitTestPath()
|