/external/chromium_org/third_party/skia/tests/ |
RegionTest.cpp | 12 static void Union(SkRegion* rgn, const SkIRect& rect) { 13 rgn->op(rect, SkRegion::kUnion_Op); 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 72 SkRegion rgn; local 73 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)) [all...] |
AAClipTest.cpp | 59 static void copyToMask(const SkRegion& rgn, SkMask* mask) { 62 if (rgn.isEmpty()) { 69 mask->fBounds = rgn.getBounds(); 82 // so we translate the rgn to match that before drawing into the mask. 84 SkRegion tmpRgn(rgn); 85 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); 100 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { 103 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); 107 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) 135 SkRegion rgn; local 141 SkRegion rgn; local [all...] |
DeviceLooperTest.cpp | 75 static void make_rgn(SkRegion* rgn, int w, int h, unsigned mask) { 88 rgn->op(r, SkRegion::kUnion_Op); 122 SkRegion rgn; local 123 make_rgn(&rgn, w, h, mask); 126 rc.op(rgn, SkRegion::kReplace_Op);
|
/external/skia/tests/ |
RegionTest.cpp | 12 static void Union(SkRegion* rgn, const SkIRect& rect) { 13 rgn->op(rect, SkRegion::kUnion_Op); 16 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect)) 17 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect)) 18 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect)) 72 SkRegion rgn; local 73 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)) [all...] |
AAClipTest.cpp | 59 static void copyToMask(const SkRegion& rgn, SkMask* mask) { 62 if (rgn.isEmpty()) { 69 mask->fBounds = rgn.getBounds(); 82 // so we translate the rgn to match that before drawing into the mask. 84 SkRegion tmpRgn(rgn); 85 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); 100 static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) { 103 rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op); 107 static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) 135 SkRegion rgn; local 141 SkRegion rgn; local [all...] |
DeviceLooperTest.cpp | 75 static void make_rgn(SkRegion* rgn, int w, int h, unsigned mask) { 88 rgn->op(r, SkRegion::kUnion_Op); 122 SkRegion rgn; local 123 make_rgn(&rgn, w, h, mask); 126 rc.op(rgn, SkRegion::kReplace_Op);
|
/external/chromium_org/third_party/skia/samplecode/ |
SampleRegion.cpp | 124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, 129 rgn->debugSetRuns(runs, count); 130 SkASSERT(rgn->getBounds() == r); 182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, 185 scale_rgn(&scaled, rgn, 0.5f); 187 SkRegion::Iterator iter(rgn); 207 void build_base_rgn(SkRegion* rgn) { 208 rgn->setRect(fBase); 211 rgn->op(r, SkRegion::kUnion_Op); 214 void build_rgn(SkRegion* rgn, SkRegion::Op op) 240 SkRegion rgn; local 255 SkRegion rgn; local 264 SkRegion rgn; local 306 SkRegion rgn; local [all...] |
/external/skia/samplecode/ |
SampleRegion.cpp | 124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom, 129 rgn->debugSetRuns(runs, count); 130 SkASSERT(rgn->getBounds() == r); 182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, 185 scale_rgn(&scaled, rgn, 0.5f); 187 SkRegion::Iterator iter(rgn); 207 void build_base_rgn(SkRegion* rgn) { 208 rgn->setRect(fBase); 211 rgn->op(r, SkRegion::kUnion_Op); 214 void build_rgn(SkRegion* rgn, SkRegion::Op op) 240 SkRegion rgn; local 255 SkRegion rgn; local 264 SkRegion rgn; local 306 SkRegion rgn; local [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkRegion.h | 217 * Return true if this region, or rgn, is empty, or if their bounds do not 221 bool quickReject(const SkRegion& rgn) const { 222 return this->isEmpty() || rgn.isEmpty() || 223 !SkIRect::Intersects(fBounds, rgn.fBounds); 274 * specified region: this = (this op rgn). 277 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } 281 * rectangle and region: this = (rect op rgn). 284 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 288 * region and rectangle: this = (rgn op rect) 322 const SkRegion* rgn() const { return fRgn; } function in class:SkRegion::Iterator [all...] |
SkWriter32.h | 153 void writeRegion(const SkRegion& rgn) { 154 size_t size = rgn.writeToMemory(NULL); 156 rgn.writeToMemory(this->reserve(size));
|
/external/chromium_org/third_party/skia/src/images/ |
SkPageFlipper.cpp | 53 void SkPageFlipper::inval(const SkRegion& rgn) { 56 if (r.op(rgn, SkRegion::kIntersect_Op)) {
|
/external/skia/include/core/ |
SkRegion.h | 217 * Return true if this region, or rgn, is empty, or if their bounds do not 221 bool quickReject(const SkRegion& rgn) const { 222 return this->isEmpty() || rgn.isEmpty() || 223 !SkIRect::Intersects(fBounds, rgn.fBounds); 274 * specified region: this = (this op rgn). 277 bool op(const SkRegion& rgn, Op op) { return this->op(*this, rgn, op); } 281 * rectangle and region: this = (rect op rgn). 284 bool op(const SkIRect& rect, const SkRegion& rgn, Op); 288 * region and rectangle: this = (rgn op rect) 322 const SkRegion* rgn() const { return fRgn; } function in class:SkRegion::Iterator [all...] |
SkReader32.h | 121 bool readRegion(SkRegion* rgn) { 122 return readObjectFromMemory(rgn);
|
SkWriter32.h | 153 void writeRegion(const SkRegion& rgn) { 154 size_t size = rgn.writeToMemory(NULL); 156 rgn.writeToMemory(this->reserve(size));
|
/external/skia/src/images/ |
SkPageFlipper.cpp | 53 void SkPageFlipper::inval(const SkRegion& rgn) { 56 if (r.op(rgn, SkRegion::kIntersect_Op)) {
|
/external/chromium_org/third_party/skia/src/core/ |
SkRegion.cpp | 171 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { 174 return this->op(tmp, rgn, op); 177 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { 180 return this->op(rgn, tmp, op); 393 bool SkRegion::contains(const SkRegion& rgn) const { 395 SkDEBUGCODE(rgn.validate();) 397 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { 403 if (rgn.isRect()) { 404 return this->contains(rgn.getBounds()) [all...] |
SkReader32.h | 121 bool readRegion(SkRegion* rgn) { 122 return this->readObjectFromMemory(rgn);
|
SkRasterClip.cpp | 228 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { 232 (void)fBW.op(rgn, op); 235 tmp.setRegion(rgn);
|
/external/skia/src/core/ |
SkRegion.cpp | 171 bool SkRegion::op(const SkIRect& rect, const SkRegion& rgn, Op op) { 174 return this->op(tmp, rgn, op); 177 bool SkRegion::op(const SkRegion& rgn, const SkIRect& rect, Op op) { 180 return this->op(rgn, tmp, op); 393 bool SkRegion::contains(const SkRegion& rgn) const { 395 SkDEBUGCODE(rgn.validate();) 397 if (this->isEmpty() || rgn.isEmpty() || !fBounds.contains(rgn.fBounds)) { 403 if (rgn.isRect()) { 404 return this->contains(rgn.getBounds()) [all...] |
SkRasterClip.cpp | 102 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) { 106 (void)fBW.op(rgn, op); 109 tmp.setRegion(rgn);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Regions.java | 68 Region rgn = new Region(); local 69 rgn.set(mRect1); 70 rgn.op(mRect2, op); 73 RegionIterator iter = new RegionIterator(rgn);
|
/frameworks/base/core/jni/android/graphics/ |
Region.cpp | 157 SkRegion* rgn = GetSkRegion(env, region); local 159 rgn->translate(x, y, GetSkRegion(env, dst)); 161 rgn->translate(x, y); 187 SkRegion* rgn = GetSkRegion(env, region); local 189 scale_rgn(GetSkRegion(env, dst), *rgn, scale); local 191 scale_rgn(rgn, *rgn, scale); 253 RgnIterPair(const SkRegion& rgn) : fRgn(rgn) {
|
/external/chromium_org/third_party/skia/src/effects/ |
Sk2DPathEffect.cpp | 34 SkRegion rgn; local 35 rgn.setPath(tmp, SkRegion(ir)); 36 SkRegion::Iterator iter(rgn);
|
/external/skia/src/effects/ |
Sk2DPathEffect.cpp | 34 SkRegion rgn; local 35 rgn.setPath(tmp, SkRegion(ir)); 36 SkRegion::Iterator iter(rgn);
|
/external/chromium_org/remoting/host/ |
disconnect_window_win.cc | 383 HRGN rgn = CreateRoundRectRgn(0, 0, width, height, kWindowBorderRadius, local 385 if (!rgn) 387 if (!SetWindowRgn(hwnd_, rgn, TRUE))
|