Home
last modified time | relevance | path

Searched refs:outset (Results 1 - 25 of 89) sorted by relevance

1234

/third_party/skia/experimental/graphite/src/geom/
H A DRect.h125 AI Rect makeOutset(float outset) const { return fVals - outset; } in makeOutset()
126 AI Rect makeOutset(float2 outset) const { return fVals - outset.xyxy(); } in makeOutset()
136 AI Rect& outset(float outset) { return *this = this->makeOutset(outset); } in outset() argument
137 AI Rect& outset(float2 outset) { return *this = this->makeOutset(outset); } in outset() argument
[all...]
/third_party/skia/gm/
H A Dimagefilterscropexpand.cpp67 for (int outset = -15; outset <= 20; outset += 5) { in DEF_SIMPLE_GM()
70 bigRect.outset(outset, outset); in DEF_SIMPLE_GM()
H A Dimagefilters.cpp112 // we outset the clip by 1, to fall out of the fast-case in drawImage in DEF_SIMPLE_GM()
114 for (SkScalar outset = 0; outset <= 1; ++outset) { in DEF_SIMPLE_GM()
116 canvas->clipRect(r.makeOutset(outset, outset)); in DEF_SIMPLE_GM()
H A 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()
H A 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()
H A Dcolorfilterimagefilter.cpp120 float outset = 0.0f) { in draw_clipped_rect()
123 clip.outset(outset, outset); in draw_clipped_rect()
/third_party/skia/src/gpu/geometry/
H A 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(outse in simplifyStroke()
[all...]
H A DGrAAConvexTessellator.cpp516 void GrAAConvexTessellator::createOuterRing(const Ring& previousRing, SkScalar outset,
526 const SkScalar outsetSq = outset * outset;
527 SkScalar miterLimitSq = outset * fMiterLimit;
532 // outset polygon - one extending perpendicular to each impinging edge. Connecting these
539 perp1.scale(outset);
545 perp2.scale(outset);
552 int perp1Idx = this->addPt(perp1, -outset, coverage, false, curve);
560 perp2Idx = this->addPt(perp2, -outset, coverage, false, curve);
573 miter.setLength(-outset);
[all...]
H A DGrQuadUtils.h55 // Set the original device and (optional) local coordinates that are inset or outset
79 // consecutive calls to inset() and outset() (in any order).
80 void outset(const skvx::Vec<4, float>& edgeDistances,
86 // matching edge distances passed to inset() and outset().
92 // edge lengths are ordered LBTR to match distances passed to inset() and outset().
143 // shortest (perpendicular) distance between the original edge and the inset or outset
196 // Validity of outset request (true after calling getOutsetRequest() until next set() call
197 // or next inset/outset() with different edge distances).
203 // and outset calls.
208 // outset i
[all...]
/third_party/skia/src/utils/
H A 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 in SkAmbientShadowTessellator() local
1008 SkScalar outset; SkSpotShadowTessellator() local
[all...]
/third_party/skia/src/gpu/tessellate/
H A DStrokeIterator.h226 SkPoint outset; in finishOpenContour() local
229 outset = {fStroke->getWidth() * .5f, 0}; in finishOpenContour()
234 // outset = inverse(fViewMatrix).mapVector(.5, 0) in finishOpenContour()
243 // outset = inverse(|a b|) * |.5| 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/
H A DSampleDegenerateQuads.cpp24 // Draw a line through the two points, outset by a fixed length in screen space
43 bool outset, SkPoint line[2]) { in make_aa_line()
47 n = outset ? SkVector::Make(v.fY, -v.fX) : SkVector::Make(-v.fY, v.fX); in make_aa_line()
122 // every outset line. When that happens, calculate coverage using the "inset" lines and flip in get_edge_dist_coverage()
280 // Calculate inset and outset lines for edge-distance visualization
296 // of the "outer" rect since some quad edges can be outset extra far.
332 // Draw the inset/outset "infinite" lines
341 // Both outset and inset are the same line, so only draw one in cyan
412 void getTessellatedPoints(SkPoint inset[4], SkScalar insetCoverage[4], SkPoint outset[4],
434 // The first quad in vertices is the inset, then the outset, bu
42 make_aa_line(const SkPoint& p0, const SkPoint& p1, bool aaOn, bool outset, SkPoint line[2]) make_aa_line() argument
[all...]
/third_party/skia/tests/
H A DCullTestTest.cpp63 devBounds3.outset(1e-3f, 1e-3f); in DEF_TEST()
73 devBounds4.outset(1e-3f, 1e-3f); in DEF_TEST()
H A DRecordDrawTest.cpp127 SkRect inset(a), outset(a); in sloppy_rect_eq()
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/v1/
H A DDevice_drawTexture.cpp75 innerTransformedRect.outset(kColorBleedTolerance, kColorBleedTolerance); in may_color_bleed()
217 // This method outsets 'iRect' by 'outset' all around and then clamps its extents to
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; draw_tiled_bitmap() local
[all...]
/third_party/skia/src/gpu/ops/
H A 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()
833 // How much do we outset away from the outside of the strokes? in generateAAStrokeRectGeometry()
835 float outset = 1 - inset; in generateAAStrokeRectGeometry() local
838 // How much do we outset away from the interior side of the stroke (toward the center)? in generateAAStrokeRectGeometry()
839 float interiorOutset = outset; in generateAAStrokeRectGeometry()
846 outset += msaaExtraBloat; in generateAAStrokeRectGeometry()
865 // Exterior outset rect (away from stroke). in generateAAStrokeRectGeometry()
866 vertices.writeQuad(inset_fan(devOutside, -outset, in generateAAStrokeRectGeometry()
[all...]
/third_party/skia/src/core/
H A DSkDrawShadowInfo.cpp208 ambientBounds.outset(ambientBlur, ambientBlur); in GetLocalBounds()
214 spotBounds.outset(spotBlur, spotBlur); in GetLocalBounds()
219 // outset a bit to account for floating point error in GetLocalBounds()
220 bounds->outset(1, 1); in GetLocalBounds()
/third_party/skia/docs/examples/
H A DRect_outset.cpp8 rect.outset(5, 13); in REG_FIDDLE()
H A DIRect_outset.cpp8 rect.outset(5, 13); in REG_FIDDLE()
H A DRect_MakeEmpty.cpp13 rect.outset(20, 20); in REG_FIDDLE()
14 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); in REG_FIDDLE()
H A DRRect_outset_2.cpp13 rrect.outset(3, 3); in REG_FIDDLE()
H A DRRect_outset.cpp13 rrect.outset(-3, 3, &rrect); in REG_FIDDLE()
H A DIRect_MakeEmpty.cpp13 rect.outset(20, 20); in REG_FIDDLE()
14 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); in REG_FIDDLE()
H A Dskpaint_line_2d_path_effect.cpp13 bounds.outset(8.0f, 8.0f); in REG_FIDDLE()
H A DIRect_size.cpp17 rect.outset(20, 20); in REG_FIDDLE()
18 debugster(" outset", rect); in REG_FIDDLE()

Completed in 16 milliseconds

1234