Home
last modified time | relevance | path

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

12345678

/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/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/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/flutter/skia/src/gpu/effects/generated/
DGrRRectBlurEffect.cpp122 SkRect outset = rect; in onSetData() local
123 outset.outset(blurRadiusValue, blurRadiusValue); in onSetData()
124 pdman.set4f(proxyRect, outset.fLeft, outset.fTop, outset.fRight, outset.fBottom); in onSetData()
/third_party/flutter/skia/gm/
Dimagefilterscropexpand.cpp69 for (int outset = -15; outset <= 20; outset += 5) { variable
72 bigRect.outset(outset, outset);
Dimagefilters.cpp110 for (SkScalar outset = 0; outset <= 1; ++outset) { variable
112 canvas->clipRect(r.makeOutset(outset, outset));
/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()
/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()
/third_party/flutter/skia/src/gpu/effects/
DGrRRectBlurEffect.fp202 SkRect outset = rect;
203 outset.outset(blurRadiusValue, blurRadiusValue);
204 pdman.set4f(proxyRect, outset.fLeft, outset.fTop, outset.fRight, outset.fBottom);
/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/flutter/skia/src/utils/
DSkShadowTessellator.cpp54 bool computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip);
64 bool computeConcaveShadow(SkScalar inset, SkScalar outset);
249 bool SkBaseShadowTessellator::computeConvexShadow(SkScalar inset, SkScalar outset, bool doClip) { in computeConvexShadow() argument
313 fFirstOutset *= outset; in computeConvexShadow()
344 normal *= outset; in computeConvexShadow()
345 this->addArc(normal, outset, true); in computeConvexShadow()
353 if (this->addArc(fFirstOutset, outset, false)) { in computeConvexShadow()
556 bool SkBaseShadowTessellator::computeConcaveShadow(SkScalar inset, SkScalar outset) { in computeConcaveShadow() argument
576 if (!SkOffsetSimplePolygon(&fPathPolygon[0], fPathPolygon.count(), fPathBounds, -outset, in computeConcaveShadow()
914 auto outset = SkDrawShadowMetrics::AmbientBlurRadius(baseZ); in SkAmbientShadowTessellator() local
[all …]
/third_party/flutter/skia/src/gpu/geometry/
DGrShape.cpp727 SkVector outset; in attemptToSimplifyStrokedLineToRRect() local
733 outset.fY = fStyle.strokeRec().getWidth() / 2.f; in attemptToSimplifyStrokedLineToRRect()
734 outset.fX = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fY; in attemptToSimplifyStrokedLineToRRect()
739 outset.fX = fStyle.strokeRec().getWidth() / 2.f; in attemptToSimplifyStrokedLineToRRect()
740 outset.fY = SkPaint::kButt_Cap == fStyle.strokeRec().getCap() ? 0.f : outset.fX; in attemptToSimplifyStrokedLineToRRect()
744 rect.outset(outset.fX, outset.fY); in attemptToSimplifyStrokedLineToRRect()
752 SkASSERT(outset.fX == outset.fY); in attemptToSimplifyStrokedLineToRRect()
753 rrect = SkRRect::MakeRectXY(rect, outset.fX, outset.fY); in attemptToSimplifyStrokedLineToRRect()
/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/flutter/skia/src/gpu/ccpr/
DGrOctoBounds.h79 void outset(float radius) { in outset() function
80 fBounds.outset(radius, radius); in outset()
81 fBounds45.outset(radius*SK_ScalarSqrt2, radius*SK_ScalarSqrt2); in outset()
/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/flutter/skia/samplecode/
DSampleDegenerateQuads.cpp37 bool outset, SkPoint line[2]) { in make_aa_line() argument
41 n = outset ? SkVector::Make(v.fY, -v.fX) : SkVector::Make(-v.fY, v.fX); in make_aa_line()
406 void getTessellatedPoints(SkPoint inset[4], SkScalar insetCoverage[4], SkPoint outset[4], in getTessellatedPoints()
438 outset[0] = {vertices[28], vertices[29]}; // TL in getTessellatedPoints()
440 outset[3] = {vertices[35], vertices[36]}; // BL in getTessellatedPoints()
442 outset[1] = {vertices[42], vertices[43]}; // TR in getTessellatedPoints()
444 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()
/third_party/flutter/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp129 static bool get_optimized_outset(const QuadMetadata& metadata, bool rectilinear, V4f* outset) { in get_optimized_outset() argument
131 *outset = 0.5f; in get_optimized_outset()
149 *outset = 0.5f * rsqrt(1.f - cosTheta * cosTheta); // 1/2sin(theta) in get_optimized_outset()
154 V4f halfTanTheta = -cosTheta * (*outset); // cos(pi - theta) = -cos(theta) in get_optimized_outset()
156 nextCCW(metadata.fMask) * nextCCW(*outset) + in get_optimized_outset()
157 nextCW(metadata.fMask) * (*outset); in get_optimized_outset()
165 static AI void outset_vertices(const V4f& outset, const QuadMetadata& metadata, Vertices* quad) { in outset_vertices() argument
168 auto maskedOutset = -outset * nextCW(metadata.fMask); in outset_vertices()
169 auto maskedOutsetCW = outset * metadata.fMask; in outset_vertices()
481 bool outset, Vertices* quad) { in compute_degenerate_quad() argument
[all …]
/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()

12345678