/third_party/skia/docs/examples/ |
D | ImageInfo_makeWH.cpp | 13 SkBitmap inset; in draw() local 14 inset.allocPixels(insetImageInfo); in draw() 15 SkCanvas offscreen(inset); in draw() 16 offscreen.drawImageRect(image, SkRect::Make(source.bounds()), SkRect::Make(inset.bounds()), in draw() 18 canvas->drawImage(inset.asImage(), canvasBounds.width() / 4, canvasBounds.height() / 4); in draw()
|
D | Pixmap_addr.cpp | 13 SkPixmap inset; in draw() local 14 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw() 15 SkDebugf("inset address: 0x%p\n", inset.addr()); in draw()
|
D | Pixmap_extractSubset.cpp | 12 SkPixmap inset; in draw() local 13 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw() 15 bitmap.installPixels(inset); in draw()
|
D | Pixmap_info.cpp | 12 SkPixmap inset; in draw() local 13 if (pixmap.extractSubset(&inset, {128, 128, 512, 512})) { in draw() 14 const SkImageInfo& info = inset.info(); in draw()
|
/third_party/skia/experimental/graphite/src/geom/ |
D | Rect.h | 123 AI Rect makeInset(float inset) const { return fVals + inset; } in makeInset() argument 124 AI Rect makeInset(float2 inset) const { return fVals + inset.xyxy(); } in makeInset() argument 134 AI Rect& inset(float inset) { return *this = this->makeInset(inset); } in inset() function 135 AI Rect& inset(float2 inset) { return *this = this->makeInset(inset); } in inset() argument
|
/third_party/skia/src/effects/imagefilters/ |
D | SkMagnifierImageFilter.cpp | 30 SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in SkMagnifierImageFilter() argument 34 , fInset(inset) { in SkMagnifierImageFilter() 35 SkASSERT(srcRect.left() >= 0 && srcRect.top() >= 0 && inset >= 0); in SkMagnifierImageFilter() 56 const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input, in Magnifier() argument 58 if (!SkScalarIsFinite(inset) || !SkIsValidRect(srcRect)) { in Magnifier() 61 if (inset < 0) { in Magnifier() 68 return sk_sp<SkImageFilter>(new SkMagnifierImageFilter(srcRect, inset, std::move(input), in Magnifier()
|
/third_party/skia/gm/ |
D | pathinterior.cpp | 19 static SkRect inset(const SkRect& r) { in inset() function 21 rect.inset(r.width() / 8, r.height() / 8); in inset() 82 SkRect r = insetFirst ? inset(rect) : rect; in onDraw() 88 r = insetFirst ? rect : inset(rect); in onDraw()
|
D | addarc.cpp | 44 const SkScalar inset = paint.getStrokeWidth() + 4; in onDraw() local 60 r.inset(inset, inset); in onDraw() 144 r.inset(delta, delta); in onDraw() 197 r.inset(delta, delta); in onDraw()
|
D | rrect.cpp | 26 r.inset(dx, dy); in inset0() 46 r.inset(dx, dy); in inset1() 62 r.inset(dx, dy); in inset2() 90 r.inset(dx, dy); in inset3()
|
D | strokes.cpp | 339 static SkRect inset(const SkRect& r) { in inset() function 341 rr.inset(r.width()/10, r.height()/10); in inset() 348 path->addRect(inset(bounds), SkPathDirection::kCW); in make0() 354 path->addRect(inset(bounds), SkPathDirection::kCCW); in make1() 360 path->addOval(inset(bounds), SkPathDirection::kCW); in make2() 366 path->addOval(inset(bounds), SkPathDirection::kCCW); in make3() 373 r.inset(bounds.width() / 10, -bounds.height() / 10); in make4() 381 r.inset(bounds.width() / 10, -bounds.height() / 10); in make5()
|
D | aaclip.cpp | 40 target.inset(SkIntToScalar(-2), SkIntToScalar(-2)); in draw() 42 target.inset(SkIntToScalar(2), SkIntToScalar(2)); in draw() 45 target.inset(SkIntToScalar(-4), SkIntToScalar(-4)); in draw()
|
D | simple_magnification.cpp | 97 void draw(SkCanvas* canvas, sk_sp<SkImage> image, const SkIPoint& offset, int inset) { in draw() argument 101 sk_sp<SkImageFilter> magFilter(SkImageFilters::Magnifier(srcRect, inset, imgSrc)); in draw()
|
D | resizeimagefilter.cpp | 62 ovalRect.inset(SkIntToScalar(4), SkIntToScalar(4)); in draw() 103 ovalRect.inset(SkIntToScalar(2)/3, SkIntToScalar(2)/3); in onDraw()
|
/third_party/skia/src/utils/ |
D | SkShadowTessellator.cpp | 55 bool computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip); 65 bool computeConcaveShadow(SkScalar inset, SkScalar outset); 246 bool SkBaseShadowTessellator::computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip) { in computeConvexShadow() argument 273 if (inset > SK_ScalarNearlyZero) { in computeConvexShadow() 275 if (minDistSq < (inset + kTolerance)*(inset + kTolerance)) { in computeConvexShadow() 278 auto ratio = 128 * (newInset / inset + 1); in computeConvexShadow() 282 inset = newInset; in computeConvexShadow() 286 if (!SkInsetConvexPolygon(&fPathPolygon[0], fPathPolygon.count(), inset, in computeConvexShadow() 292 const SkTDArray<SkPoint>& umbraPolygon = (inset > SK_ScalarNearlyZero) ? insetPolygon in computeConvexShadow() 553 bool SkBaseShadowTessellator::computeConcaveShadow(SkScalar inset, SkScalar outset) { in computeConcaveShadow() argument [all …]
|
/third_party/skia/fuzz/ |
D | FuzzPolyUtils.cpp | 29 SkScalar inset; in DEF_FUZZ() local 30 fuzz->next(&inset); in DEF_FUZZ() 32 ignoreResult(SkInsetConvexPolygon(polygon, count, inset, &output)); in DEF_FUZZ()
|
/third_party/skia/include/core/ |
D | SkRRect.h | 321 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const; 337 void inset(SkScalar dx, SkScalar dy) { in inset() function 338 this->inset(dx, dy, this); in inset() 357 this->inset(-dx, -dy, dst); in outset() 375 this->inset(-dx, -dy, this); in outset()
|
/third_party/skia/src/gpu/ops/ |
D | StrokeRectOp.cpp | 339 devInside->inset(rx, ry); in compute_aa_rects() 361 devOutside->inset(0, ry); in compute_aa_rects() 826 float inset = std::min(0.5f, std::min(devHalfStrokeSize.fX, devHalfStrokeSize.fY)); in generateAAStrokeRectGeometry() local 828 if (inset < 0.5f) { in generateAAStrokeRectGeometry() 830 innerCoverage = 2 * inset / (inset + .5f); in generateAAStrokeRectGeometry() 835 float outset = 1 - inset; in generateAAStrokeRectGeometry() 850 std::min(inset + msaaExtraBloat, in generateAAStrokeRectGeometry() 851 std::min(devHalfStrokeSize.fX, devHalfStrokeSize.fY)) - inset; in generateAAStrokeRectGeometry() 852 inset += insetExtraBloat; in generateAAStrokeRectGeometry() 878 vertices.writeQuad(inset_fan(devOutside, inset, inset), in generateAAStrokeRectGeometry() [all …]
|
D | ShadowRRectOp.cpp | 493 SkScalar inset = umbraInset + args.fInnerRadius; in fillInRRectVerts() local 496 (*verts)->fPos = SkPoint::Make(bounds.fLeft + inset, bounds.fTop + inset); in fillInRRectVerts() 503 (*verts)->fPos = SkPoint::Make(bounds.fRight - inset, bounds.fTop + inset); in fillInRRectVerts() 510 (*verts)->fPos = SkPoint::Make(bounds.fLeft + inset, bounds.fBottom - inset); in fillInRRectVerts() 517 (*verts)->fPos = SkPoint::Make(bounds.fRight - inset, bounds.fBottom - inset); in fillInRRectVerts()
|
/third_party/glfw/docs/ |
D | extra.css | 1 …inset 0 0 32px #f60;text-shadow:0 -1px 1px #b34700;color:#fff}.contents{min-height:590px}div.conte…
|
/third_party/skia/tests/ |
D | DefaultPathRendererTest.cpp | 55 static SkPath make_path(const SkRect& outer, int inset, SkPathFillType fill) { in make_path() argument 59 p.addRect(outer.makeInset(inset, inset), SkPathDirection::kCCW); in make_path()
|
D | PaintTest.cpp | 73 SkScalar inset = paint.getStrokeJoin() == SkPaint::kMiter_Join ? in DEF_TEST() local 76 maxR.inset(-inset, -inset); in DEF_TEST()
|
D | RecordDrawTest.cpp | 127 SkRect inset(a), outset(a); in sloppy_rect_eq() local 128 inset.inset(1, 1); in sloppy_rect_eq() 130 return outset.contains(b) && !inset.contains(b); in sloppy_rect_eq()
|
D | RRectInPathTest.cpp | 220 rr.inset(-20, -20, &rr2); in test_inset() 223 rr.inset(20, 20, &rr2); in test_inset() 226 rr.inset(r.width()/2, r.height()/2, &rr2); in test_inset() 230 rr.inset(19, 19, &rr2); in test_inset() 232 rr.inset(20, 20, &rr2); in test_inset()
|
/third_party/skia/bench/ |
D | RegionBench.cpp | 39 r.inset(r.width()/4, r.height()/4); in containsrect_proc() 43 r.inset(r.width()/4, r.height()/4); in containsrect_proc() 53 r.inset(r.width()/4, r.height()/4); in sectsrect_proc()
|
/third_party/skia/samplecode/ |
D | SampleDegenerateQuads.cpp | 319 pixelRect.inset(0.1f, 0.1f); in onDrawContent() 326 pixelRect.inset(0.38f, 0.38f); in onDrawContent() 412 void getTessellatedPoints(SkPoint inset[4], SkScalar insetCoverage[4], SkPoint outset[4], in getTessellatedPoints() 436 inset[0] = {vertices[0], vertices[1]}; // TL in getTessellatedPoints() 438 inset[3] = {vertices[7], vertices[8]}; // BL in getTessellatedPoints() 440 inset[1] = {vertices[14], vertices[15]}; // TR in getTessellatedPoints() 442 inset[2] = {vertices[21], vertices[22]}; // BR in getTessellatedPoints()
|