/third_party/skia/tests/ |
D | AAClipTest.cpp | 81 mask->fBounds = rgn.getBounds(); in copyToMask() 97 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 160 path.getBounds().round(&ir); in setRgnToPath() 207 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); in test_path_bounds() 208 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds() 209 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); in test_path_bounds() 221 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); in test_path_bounds() 222 clip.setPath(path, path.getBounds().roundOut(), true); in test_path_bounds() 223 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); in test_path_bounds() 230 REPORTER_ASSERT(reporter, clip.getBounds().isEmpty()); in test_empty() [all …]
|
D | PathOpsTightBoundsTest.cpp | 28 SkRect classicBounds = path.getBounds(); in testTightBoundsLines() 78 SkRect classicBounds = path.getBounds(); in testTightBoundsQuads() 133 const SkRect& bounds = path.getBounds(); in DEF_TEST() 142 const SkRect& bounds = path.getBounds(); in DEF_TEST() 152 const SkRect& bounds = path.getBounds(); in DEF_TEST() 162 const SkRect& bounds = path.getBounds(); in DEF_TEST() 174 const SkRect& bounds = path.getBounds(); in DEF_TEST() 184 const SkRect& bounds = path.getBounds(); in DEF_TEST() 194 const SkRect& bounds = path.getBounds(); in DEF_TEST()
|
/third_party/flutter/skia/tests/ |
D | AAClipTest.cpp | 81 mask->fBounds = rgn.getBounds(); in copyToMask() 97 tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop); in copyToMask() 139 path.getBounds().round(&ir); in setRgnToPath() 199 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); in test_path_bounds() 201 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); in test_path_bounds() 213 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); in test_path_bounds() 215 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); in test_path_bounds() 222 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty()); in test_empty() 227 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty()); in test_empty() 233 REPORTER_ASSERT(reporter, !clip0.getBounds().isEmpty()); in test_empty() [all …]
|
D | PathOpsTightBoundsTest.cpp | 29 SkRect classicBounds = path.getBounds(); in testTightBoundsLines() 79 SkRect classicBounds = path.getBounds(); in testTightBoundsQuads() 134 const SkRect& bounds = path.getBounds(); in DEF_TEST() 143 const SkRect& bounds = path.getBounds(); in DEF_TEST() 153 const SkRect& bounds = path.getBounds(); in DEF_TEST() 163 const SkRect& bounds = path.getBounds(); in DEF_TEST() 175 const SkRect& bounds = path.getBounds(); in DEF_TEST() 185 const SkRect& bounds = path.getBounds(); in DEF_TEST() 195 const SkRect& bounds = path.getBounds(); in DEF_TEST()
|
/third_party/flutter/engine/flutter/testing/dart/ |
D | path_test.dart | 11 test('path getBounds', () { 14 expect(p.getBounds(), equals(r)); 16 expect(p.getBounds(), equals(const Rect.fromLTRB(1.0, 3.0, 20.0, 15.0))); 28 expect(difference.getBounds(), equals(c1)); 31 expect(reverseDifference.getBounds(), equals(c2)); 34 expect(union.getBounds(), equals(c1UnionC2)); 37 expect(intersect.getBounds(), equals(c1IntersectC2)); 41 expect(xor.getBounds(), equals(c1UnionC2)); 54 expect(difference.getBounds().top, closeTo(0.88, 0.01)); 57 expect(reverseDifference.getBounds().right, closeTo(14.11, 0.01)); [all …]
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | path_test.dart | 118 expect(emptyPath.getBounds(), Rect.zero); 122 expect(path.getBounds(), Rect.fromLTRB(50, 60, 50, 60)); 129 expect(path.getBounds(), Rect.fromLTRB(25, 30, 100, 200)); 134 expect(path2.getBounds(), Rect.fromLTRB(50, 60, 250, 300)); 142 // path1.getBounds(), 151 // path2.getBounds(), 160 // path3.getBounds(), 170 // path1.getBounds(), 179 // path2.getBounds(), 188 // path3.getBounds(), [all …]
|
/third_party/skia/src/core/ |
D | SkRasterClip.h | 53 const SkIRect& getBounds() const { in getBounds() function 54 return fIsBW ? fBW.getBounds() : fAA.getBounds(); in getBounds() 79 return !SkIRect::Intersects(this->getBounds(), rect); in quickReject() 113 fBW.setRect(fAA.getBounds()); 164 const SkIRect& getBounds() const { in getBounds() function 166 return fClipRgn->getBounds(); in getBounds()
|
D | SkScan_AntiPath.cpp | 607 if (n < kSampleSize || path.getBounds().isEmpty()) { in compute_complexity() 624 SkScalar diagonalSqr = sqr(path.getBounds().width()) + sqr(path.getBounds().height()); in compute_complexity() 631 complexity = sk_ieee_float_divide(intersections, path.getBounds().height()); in compute_complexity() 653 const SkRect& bounds = path.getBounds(); in ShouldUseAAA() 662 if (path.countPoints() >= path.getBounds().height()) { in ShouldUseAAA() 683 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); in SAAFillPath() 721 SkIRect ir = safeRoundOut(path.getBounds()); in AntiFillPath() 736 clippedIR = origClip.getBounds(); in AntiFillPath() 738 if (!clippedIR.intersect(ir, origClip.getBounds())) { in AntiFillPath() 757 const SkIRect& bounds = origClip.getBounds(); in AntiFillPath() [all …]
|
D | SkClipStack.cpp | 90 const SkRect& SkClipStack::Element::getBounds() const { in getBounds() function in SkClipStack::Element 96 return fDeviceSpaceRRect.getBounds(); in getBounds() 98 return fDeviceSpacePath->getBounds(); in getBounds() 132 return this->getDeviceSpaceRect().contains(rrect.getBounds()); in contains() 135 return fDeviceSpaceRRect.contains(rrect.getBounds()) || rrect == fDeviceSpaceRRect; in contains() 137 return fDeviceSpacePath->conservativelyContainsRect(rrect.getBounds()); in contains() 441 fFiniteBound = fDeviceSpaceRRect.getBounds(); in updateBoundAndGenID() 445 fFiniteBound = fDeviceSpacePath->getBounds(); in updateBoundAndGenID() 611 this->getBounds(&r, &bounds); in bounds() 621 void SkClipStack::getBounds(SkRect* canvFiniteBound, in getBounds() function in SkClipStack [all …]
|
D | SkDrawable.cpp | 41 draw_bbox(canvas, this->getBounds()); in draw() 61 SkRect SkDrawable::getBounds() { in getBounds() function in SkDrawable 76 const SkRect bounds = this->getBounds(); in onNewPictureSnapshot()
|
/third_party/flutter/skia/gm/ |
D | sharedcorners.cpp | 123 SkScalar scale = kBoxSize / SkTMax(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes() 130 rot.setRotate(45, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes() 135 rot.setRotate(-45 - 69.38111f, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes() 143 const SkRect& bounds = path.getBounds(); in drawRow()
|
/third_party/skia/gm/ |
D | sharedcorners.cpp | 123 SkScalar scale = kBoxSize / std::max(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes() 130 rot.setRotate(45, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes() 135 rot.setRotate(-45 - 69.38111f, path.getBounds().centerX(), path.getBounds().centerY()); in drawTriangleBoxes() 143 const SkRect& bounds = path.getBounds(); in drawRow()
|
D | convexpolyeffect.cpp | 122 auto rect = p.getBounds().makeOutset(kOutset, kOutset); in onDraw() 126 x += SkScalarCeilToScalar(path.getBounds().width() + kDX); in onDraw() 134 canvas->translate(path.getBounds().width() + 10.f, 0); in onDraw() 139 y += SkScalarCeilToScalar(path.getBounds().height() + 20.f); in onDraw()
|
/third_party/flutter/skia/src/core/ |
D | SkScan_AntiPath.cpp | 608 if (n < kSampleSize || path.getBounds().isEmpty()) { in compute_complexity() 625 SkScalar diagonalSqr = sqr(path.getBounds().width()) + sqr(path.getBounds().height()); in compute_complexity() 632 complexity = sk_ieee_float_divide(intersections, path.getBounds().height()); in compute_complexity() 654 const SkRect& bounds = path.getBounds(); in ShouldUseAAA() 663 if (path.countPoints() >= path.getBounds().height()) { in ShouldUseAAA() 684 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); in SAAFillPath() 722 SkIRect ir = safeRoundOut(path.getBounds()); in AntiFillPath() 737 clippedIR = origClip.getBounds(); in AntiFillPath() 739 if (!clippedIR.intersect(ir, origClip.getBounds())) { in AntiFillPath() 758 const SkIRect& bounds = origClip.getBounds(); in AntiFillPath() [all …]
|
D | SkRasterClip.cpp | 84 this->opRect(rrect.getBounds(), ctm, devBounds, op, doAA); in opRRect() 97 SkRect bounds = path.getBounds(); in opPath() 107 this->opIRect(rgn.getBounds(), op); in opRegion() 122 fBounds = result.getBounds(); in opIRect() 187 const SkIRect& SkRasterClip::getBounds() const { in getBounds() function in SkRasterClip 188 return fIsBW ? fBW.getBounds() : fAA.getBounds(); in getBounds() 282 base.setRect(this->getBounds()); in op() 439 fBW.setRect(fAA.getBounds()); in forceGetBW() 487 fBWRgn.setRect(aaclip->getBounds()); in SkAAClipBlitterWrapper() 501 fBWRgn.setRect(aaclip.getBounds()); in init()
|
D | SkRasterClip.h | 35 const SkIRect& getBounds() const { return fBounds; } in getBounds() function 90 const SkIRect& getBounds() const; 117 return !SkIRect::Intersects(this->getBounds(), rect); in quickReject() 155 fBW.setRect(fAA.getBounds()); 228 const SkIRect& getBounds() const { in getBounds() function 230 return fClipRgn->getBounds(); in getBounds()
|
D | SkClipStack.cpp | 78 const SkRect& SkClipStack::Element::getBounds() const { in getBounds() function in SkClipStack::Element 83 return fDeviceSpaceRRect.getBounds(); in getBounds() 85 return fDeviceSpacePath.get()->getBounds(); in getBounds() 113 return this->getDeviceSpaceRect().contains(rrect.getBounds()); in contains() 116 return fDeviceSpaceRRect.contains(rrect.getBounds()) || rrect == fDeviceSpaceRRect; in contains() 118 return fDeviceSpacePath.get()->conservativelyContainsRect(rrect.getBounds()); in contains() 493 fFiniteBound = fDeviceSpaceRRect.getBounds(); in updateBoundAndGenID() 497 fFiniteBound = fDeviceSpacePath.get()->getBounds(); in updateBoundAndGenID() 667 this->getBounds(&r, &bounds); in bounds() 677 void SkClipStack::getBounds(SkRect* canvFiniteBound, in getBounds() function in SkClipStack [all …]
|
D | SkDrawable.cpp | 41 draw_bbox(canvas, this->getBounds()); in draw() 61 SkRect SkDrawable::getBounds() { in getBounds() function in SkDrawable 76 const SkRect bounds = this->getBounds(); in onNewPictureSnapshot()
|
/third_party/flutter/skia/bench/ |
D | RegionBench.cpp | 29 return result.op(a, b.getBounds(), SkRegion::kDifference_Op); in diffrect_proc() 34 return result.op(a, a.getBounds(), SkRegion::kDifference_Op); in diffrectbig_proc() 38 SkIRect r = a.getBounds(); in containsrect_proc() 42 r = b.getBounds(); in containsrect_proc() 52 SkIRect r = a.getBounds(); in sectsrect_proc() 58 const SkIRect& r = a.getBounds(); in containsxy_proc()
|
/third_party/skia/bench/ |
D | RegionBench.cpp | 29 return result.op(a, b.getBounds(), SkRegion::kDifference_Op); in diffrect_proc() 34 return result.op(a, a.getBounds(), SkRegion::kDifference_Op); in diffrectbig_proc() 38 SkIRect r = a.getBounds(); in containsrect_proc() 42 r = b.getBounds(); in containsrect_proc() 52 SkIRect r = a.getBounds(); in sectsrect_proc() 58 const SkIRect& r = a.getBounds(); in containsxy_proc()
|
/third_party/flutter/engine/flutter/third_party/txt/tests/ |
D | LayoutTest.cpp | 84 layout.getBounds(&rect); in TEST_F() 103 layout.getBounds(&rect); in TEST_F() 122 layout.getBounds(&rect); in TEST_F() 141 layout.getBounds(&rect); in TEST_F() 176 layout.getBounds(&rect); in TEST_F() 195 layout.getBounds(&rect); in TEST_F() 218 layout.getBounds(&rect); in TEST_F() 239 layout.getBounds(&rect); in TEST_F() 275 layout.getBounds(&rect); in TEST_F() 294 layout.getBounds(&rect); in TEST_F() [all …]
|
/third_party/flutter/skia/src/gpu/ |
D | GrReducedClip.cpp | 57 stack.getBounds(&stackBounds, &stackBoundsType, &iior); in GrReducedClip() 185 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 199 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 221 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 233 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 255 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 263 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 279 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 285 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() 302 } else if (GrClip::IsOutsideClip(element->getBounds(), queryBounds)) { in walkStack() [all …]
|
/third_party/skia/modules/pathkit/tests/ |
D | path.spec.js | 100 expect(path.getBounds()).toEqual(PathKit.LTRBRect(0, 0, 0, 0)); 102 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, -5, -8)); 104 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, 3, 4)); 106 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, 3, 4)); 118 expect(path.getBounds()).toEqual(PathKit.LTRBRect(1, 1, 4, 3));
|
/third_party/flutter/skia/modules/pathkit/tests/ |
D | path.spec.js | 100 expect(path.getBounds()).toEqual(PathKit.LTRBRect(0, 0, 0, 0)); 102 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, -5, -8)); 104 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, 3, 4)); 106 expect(path.getBounds()).toEqual(PathKit.LTRBRect(-5, -8, 3, 4)); 118 expect(path.getBounds()).toEqual(PathKit.LTRBRect(1, 1, 4, 3));
|
/third_party/flutter/engine/flutter/flow/layers/ |
D | physical_shape_layer.cc | 47 frameRRect_ = SkRRect::MakeRect(path.getBounds()); in PhysicalShapeLayer() 62 set_paint_bounds(path_.getBounds()); in Preroll() 101 SkRect bounds(path_.getBounds()); in Preroll() 203 const SkRect& bounds = path.getBounds(); in DrawShadow()
|