/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()
|
D | ClipStackTest.cpp | 383 stack.getBounds(&bounds, &boundsType); in test_rect_inverse_fill() 441 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_replace() 519 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 532 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 545 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 558 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 571 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 584 stack.getBounds(&bound, &type, &isIntersectionOfRects); in test_rect_merging() 804 stack.getBounds(&stackBounds, &stackBoundsType); in test_invfill_diff_bug()
|
/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()
|
D | SkRasterClip.cpp | 193 fBW.setPath(devPath, SkRegion(this->getBounds())); in op() 195 fAA.setPath(devPath, this->getBounds(), doAA); in op() 199 return this->op(SkRasterClip(devPath, this->getBounds(), doAA), op); in op() 308 fBWRgn.setRect(aaclip->getBounds()); in SkAAClipBlitterWrapper() 322 fBWRgn.setRect(aaclip.getBounds()); in init()
|
D | SkScan_Path.cpp | 479 const SkIRect& cr = clip.getBounds(); in sk_blit_above() 492 const SkIRect& cr = clip.getBounds(); in sk_blit_below() 517 fClipRect = &clip->getBounds(); in SkScanClipper() 559 if (limitR.contains(orig.getBounds())) { in clip_to_limit() 635 SkRect bounds = path.getBounds(); in FillPath() 662 *clipper.getClipRect() == clipPtr->getBounds()); in FillPath() 663 sk_fill_path(path, clipPtr->getBounds(), blitter, ir.fTop, ir.fBottom, in FillPath() 765 if (ir.isEmpty() || !SkIRect::Intersects(ir, clip.getBounds())) { in FillTriangle()
|
D | SkBitmapDevice.cpp | 78 const SkIRect clipR = dev->fRCStack.rc().getBounds(); in SkDrawTiler() 380 LOOP_TILER( drawRRect(rrect, paint), Bounder(rrect.getBounds(), paint)) in drawRRect() 389 bounds = &path.getBounds(); in drawPath() 685 rc.bwRgn().getBounds() == SkIRect{0, 0, this->width(), this->height()}; in onClipIsWideOpen() 696 rgn->setRect(rc.getBounds()); in onAsRgnClip() 704 const SkIRect& stackBounds = fRCStack.rc().getBounds(); in validateDevBounds() 721 return fRCStack.rc().getBounds(); in onDevClipBounds()
|
D | SkAAClip.h | 28 const SkIRect& getBounds() const { return fBounds; } in getBounds() function 95 fAAClipBounds = aaclip->getBounds(); in init()
|
/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()
|
D | pathmaskcache.cpp | 41 SkRect bounds = path.getBounds(); in onDraw() 105 r.setRotate(60.f, path.getBounds().centerX(), path.getBounds().centerY()); in onDraw()
|
D | convex_all_line_paths.cpp | 263 SkRect bounds = path.getBounds(); in GetPath() 277 if (offset->fX+path.getBounds().width() > kGMWidth) { in drawPath() 285 center = { offset->fX + SkScalarHalf(path.getBounds().width()), offset->fY}; in drawPath() 286 offset->fX += path.getBounds().width(); in drawPath()
|
/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/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/skia/tools/skiaserve/ |
D | Request.cpp | 88 SkIRect bounds = this->getBounds(); in writeOutSkp() 108 SkIRect Request::getBounds() { in getBounds() function in Request 144 SkIRect bounds = this->getBounds(); in createCPUSurface() 156 SkIRect bounds = this->getBounds(); in createGPUSurface() 213 SkIRect bounds = this->getBounds(); in initPictureFromStream()
|
/third_party/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 269 SkPoint pivot = SkPoint::Make(fWideRectPath.getBounds().width()/2, in onDrawContent() 270 fWideRectPath.getBounds().height()/2); in onDrawContent() 288 pivot = SkPoint::Make(fWideOvalPath.getBounds().width() / 2, in onDrawContent() 289 fWideOvalPath.getBounds().height() / 2); in onDrawContent() 304 pivot = SkPoint::Make(fStarPath.getBounds().width() / 2, in onDrawContent() 305 fStarPath.getBounds().height() / 2); in onDrawContent()
|
D | SampleAnimatedImage.cpp | 57 canvas->drawDrawable(fDrawable.get(), fImage->getBounds().width(), 0); in onDrawContent() 95 auto canvas = recorder.beginRecording(fImage->getBounds()); in onOnceBeforeDraw()
|
D | SampleStrokePath.cpp | 78 const SkRect& bounds = path->getBounds(); in scale_to_width() 118 const SkRect& bounds = fPath.getBounds(); in onOnceBeforeDraw() 196 canvas->translate(0, fPath.getBounds().height() * 5 / 4); in onDrawContent()
|
/third_party/skia/docs/examples/ |
D | Path_copy_operator.cpp | 10 const SkRect& b1 = path1.getBounds(); in draw() 12 const SkRect& b2 = path2.getBounds(); in draw()
|
D | Path_swap.cpp | 10 const SkRect& b1 = path1.getBounds(); in draw() 12 const SkRect& b2 = path2.getBounds(); in draw()
|
D | Bitmap_extractSubset.cpp | 8 source.getBounds(&bounds); in draw() 18 subset.getBounds(&s); in draw()
|
/third_party/skia/fuzz/ |
D | FuzzTriangulation.cpp | 21 SkMatrix::I(), path.getBounds()); in DEF_FUZZ() 26 SkRect clipBounds = path.getBounds(); in DEF_FUZZ()
|