Home
last modified time | relevance | path

Searched refs:outset (Results 1 – 25 of 104) sorted by relevance

12345

/third_party/skia/tests/sksl/shared/
DSampleLocations.glsl10 float outset = 0.03125;
11 outset = 0 == (x + y) % 2 ? -outset : outset;
12 float l = float(ileft) / 16.0 - outset;
13 float r = float(iright) / 16.0 + outset;
14 float t = float(itop) / 16.0 - outset;
15 float b = float(ibot) / 16.0 + outset;
DSampleLocations.metal20 float outset = 0.03125;
21 outset = 0 == (x + y) % 2 ? -outset : outset;
22 float l = float(ileft) / 16.0 - outset;
23 float r = float(iright) / 16.0 + outset;
24 float t = float(itop) / 16.0 - outset;
25 float b = float(ibot) / 16.0 + outset;
DSampleLocations.asm.vert18 OpName %outset "outset"
73 %outset = OpVariable %_ptr_Function_float Function
114 OpStore %outset %float_0_03125
123 %74 = OpLoad %float %outset
128 %75 = OpLoad %float %outset
133 OpStore %outset %76
137 %82 = OpLoad %float %outset
143 %88 = OpLoad %float %outset
149 %94 = OpLoad %float %outset
155 %100 = OpLoad %float %outset
/third_party/skia/resources/sksl/shared/
DSampleLocations.vert10 float outset = 1/32.0;
11 outset = (0 == (x + y) % 2) ? -outset : +outset;
12 float l = float(ileft)/16.0 - outset;
13 float r = float(iright)/16.0 + outset;
14 float t = float(itop)/16.0 - outset;
15 float b = float(ibot)/16.0 + outset;
/third_party/skia/experimental/graphite/src/geom/
DRect.h125 AI Rect makeOutset(float outset) const { return fVals - outset; } in makeOutset() argument
126 AI Rect makeOutset(float2 outset) const { return fVals - outset.xyxy(); } in makeOutset() argument
136 AI Rect& outset(float outset) { return *this = this->makeOutset(outset); } in outset() function
137 AI Rect& outset(float2 outset) { return *this = this->makeOutset(outset); } in outset() argument
/third_party/skia/gm/
Dimagefilterscropexpand.cpp67 for (int outset = -15; outset <= 20; outset += 5) { variable
70 bigRect.outset(outset, outset);
Dimagefilters.cpp114 for (SkScalar outset = 0; outset <= 1; ++outset) { variable
116 canvas->clipRect(r.makeOutset(outset, outset));
Dgpu_blur_utils.cpp77 SkIPoint outset = {SkGpuBlurUtils::SigmaRadius(sigmaX), SkGpuBlurUtils::SigmaRadius(sigmaY)}; in slow_blur() local
78 SkISize size = {dstB.width() + 2*outset.x(), dstB.height() + 2*outset.y()}; in slow_blur()
79 src = tileInto(std::move(src), srcB, size, outset - dstB.topLeft(), mode); in slow_blur()
83 dstB = SkIRect::MakePtSize(outset, dstB.size()); in slow_blur()
121 return tileInto(std::move(src), srcRect, dstB.size(), -outset, SkTileMode::kClamp); in slow_blur()
263 testArea.outset(testArea.width(), testArea.height()); in run()
Dcolorfilterimagefilter.cpp120 float outset = 0.0f) { in draw_clipped_rect() argument
123 clip.outset(outset, outset); in draw_clipped_rect()
Dtessellation.cpp358 SkPath outset; in build_outset_triangle() local
368 outset.moveTo(p); in build_outset_triangle()
370 outset.lineTo(p); in build_outset_triangle()
373 return outset; in build_outset_triangle()
/third_party/skia/src/gpu/geometry/
DGrStyledShape.cpp645 fShape.rect().outset(r, r); in simplifyStroke()
744 r.outset(w, w); in simplifyStroke()
756 SkVector outset; in simplifyStroke() local
761 outset.fY = fStyle.strokeRec().getWidth() / 2.f; in simplifyStroke()
762 outset.fX = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fY; in simplifyStroke()
767 outset.fX = fStyle.strokeRec().getWidth() / 2.f; in simplifyStroke()
768 outset.fY = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fX; in simplifyStroke()
775 rect.outset(outset.fX, outset.fY); in simplifyStroke()
779 SkASSERT(outset.fX == outset.fY); in simplifyStroke()
780 fShape.setRRect(SkRRect::MakeRectXY(rect, outset.fX, outset.fY)); in simplifyStroke()
DGrAAConvexTessellator.cpp516 void GrAAConvexTessellator::createOuterRing(const Ring& previousRing, SkScalar outset, in createOuterRing() argument
526 const SkScalar outsetSq = outset * outset; in createOuterRing()
527 SkScalar miterLimitSq = outset * fMiterLimit; in createOuterRing()
539 perp1.scale(outset); in createOuterRing()
545 perp2.scale(outset); in createOuterRing()
552 int perp1Idx = this->addPt(perp1, -outset, coverage, false, curve); in createOuterRing()
560 perp2Idx = this->addPt(perp2, -outset, coverage, false, curve); in createOuterRing()
573 miter.setLength(-outset); in createOuterRing()
579 miterIdx = this->addPt(miter, -outset, coverage, false, kSharp_CurveState); in createOuterRing()
609 miterIdx = this->addPt(miter, -outset, coverage, false, in createOuterRing()
DGrQuadUtils.h80 void outset(const skvx::Vec<4, float>& edgeDistances,
223 outsetter.outset(edgeDistances, quad, nullptr); in Outset()
/third_party/skia/src/utils/
DSkShadowTessellator.cpp55 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
310 fFirstOutset *= outset; in computeConvexShadow()
341 normal *= outset; in computeConvexShadow()
342 this->addArc(normal, outset, true); in computeConvexShadow()
350 if (this->addArc(fFirstOutset, outset, false)) { in computeConvexShadow()
553 bool SkBaseShadowTessellator::computeConcaveShadow(SkScalar inset, SkScalar outset) { in computeConcaveShadow() argument
573 if (!SkOffsetSimplePolygon(&fPathPolygon[0], fPathPolygon.count(), fPathBounds, -outset, in computeConcaveShadow()
911 auto outset = SkDrawShadowMetrics::AmbientBlurRadius(baseZ); in SkAmbientShadowTessellator() local
[all …]
/third_party/skia/src/gpu/tessellate/
DStrokeIterator.h226 SkPoint outset; in finishOpenContour() local
229 outset = {fStroke->getWidth() * .5f, 0}; in finishOpenContour()
251 outset = SkVector{d, -c} * (.5f / det); in finishOpenContour()
253 outset = {1, 0}; in finishOpenContour()
256 fEndingCapPts = {*fLastDegenerateStrokePt - outset, in finishOpenContour()
257 *fLastDegenerateStrokePt + outset}; in finishOpenContour()
/third_party/skia/samplecode/
DSampleDegenerateQuads.cpp43 bool outset, SkPoint line[2]) { in make_aa_line() argument
47 n = outset ? SkVector::Make(v.fY, -v.fX) : SkVector::Make(-v.fY, v.fX); in make_aa_line()
412 void getTessellatedPoints(SkPoint inset[4], SkScalar insetCoverage[4], SkPoint outset[4], in getTessellatedPoints()
445 outset[0] = {vertices[28], vertices[29]}; // TL in getTessellatedPoints()
447 outset[3] = {vertices[35], vertices[36]}; // BL in getTessellatedPoints()
449 outset[1] = {vertices[42], vertices[43]}; // TR in getTessellatedPoints()
451 outset[2] = {vertices[49], vertices[50]}; // BR in getTessellatedPoints()
/third_party/skia/src/gpu/v1/
DDevice_drawTexture.cpp75 innerTransformedRect.outset(kColorBleedTolerance, kColorBleedTolerance); in may_color_bleed()
220 inline void clamped_outset_with_offset(SkIRect* iRect, int outset, SkPoint* offset, in clamped_outset_with_offset() argument
222 iRect->outset(outset, outset); in clamped_outset_with_offset()
226 offset->fX -= outset - leftClampDelta; in clamped_outset_with_offset()
229 offset->fX -= outset; in clamped_outset_with_offset()
234 offset->fY -= outset - topClampDelta; in clamped_outset_with_offset()
237 offset->fY -= outset; in clamped_outset_with_offset()
621 int outset = sampling.useCubic ? GrBicubicEffect::kFilterTexelPad : 1; in draw_tiled_bitmap() local
622 clamped_outset_with_offset(&iTileR, outset, &offset, iClampRect); in draw_tiled_bitmap()
/third_party/skia/tests/
DCullTestTest.cpp63 devBounds3.outset(1e-3f, 1e-3f); in DEF_TEST()
73 devBounds4.outset(1e-3f, 1e-3f); in DEF_TEST()
DRecordDrawTest.cpp127 SkRect inset(a), outset(a); in sloppy_rect_eq() local
129 outset.outset(1, 1); in sloppy_rect_eq()
130 return outset.contains(b) && !inset.contains(b); in sloppy_rect_eq()
/third_party/skia/src/gpu/ops/
DStrokeRectOp.cpp141 bounds.outset(rad, rad); in NonAAStrokeRectOp()
338 devOutside->outset(rx, ry); in compute_aa_rects()
362 devOutsideAssist->outset(0, ry); in compute_aa_rects()
835 float outset = 1 - inset; in generateAAStrokeRectGeometry() local
839 float interiorOutset = outset; in generateAAStrokeRectGeometry()
846 outset += msaaExtraBloat; in generateAAStrokeRectGeometry()
866 vertices.writeQuad(inset_fan(devOutside, -outset, -outset), in generateAAStrokeRectGeometry()
872 vertices.writeQuad(inset_fan(devOutsideAssist, -outset, -outset), in generateAAStrokeRectGeometry()
/third_party/skia/src/core/
DSkDrawShadowInfo.cpp205 ambientBounds.outset(ambientBlur, ambientBlur); in GetLocalBounds()
211 spotBounds.outset(spotBlur, spotBlur); in GetLocalBounds()
217 bounds->outset(1, 1); in GetLocalBounds()
/third_party/skia/docs/examples/
DRect_outset.cpp8 rect.outset(5, 13); in draw()
DIRect_outset.cpp8 rect.outset(5, 13); in draw()
DRRect_outset_2.cpp13 rrect.outset(3, 3); in draw()
DRRect_outset.cpp13 rrect.outset(-3, 3, &rrect); in draw()

12345