Home
last modified time | relevance | path

Searched refs:edgeDistances (Results 1 – 4 of 4) sorted by relevance

/external/skia/src/gpu/geometry/
DGrQuadUtils.h49 inline void Outset(const skvx::Vec<4, float>& edgeDistances, GrQuad* quad);
71 skvx::Vec<4, float> inset(const skvx::Vec<4, float>& edgeDistances,
78 void outset(const skvx::Vec<4, float>& edgeDistances,
144 const skvx::Vec<4, float>& edgeDistances);
195 const OutsetRequest& getOutsetRequest(const skvx::Vec<4, float>& edgeDistances);
211 void GrQuadUtils::Outset(const skvx::Vec<4, float>& edgeDistances, GrQuad* quad) { in Outset() argument
214 outsetter.outset(edgeDistances, quad, nullptr); in Outset()
DGrQuadUtils.cpp856 const skvx::Vec<4, float>& edgeDistances) { in reset() argument
857 fEdgeDistances = edgeDistances; in reset()
867 float widthChange = edgeDistances[0] + edgeDistances[3]; in reset()
868 float heightChange = edgeDistances[1] + edgeDistances[2]; in reset()
893 V4f edgeAdjust = edgeDistances * (halfTanTheta + next_ccw(halfTanTheta)) + in reset()
894 next_ccw(edgeDistances) * next_ccw(edgeVectors.fInvSinTheta) + in reset()
895 next_cw(edgeDistances) * edgeVectors.fInvSinTheta; in reset()
1105 V4f TessellationHelper::inset(const skvx::Vec<4, float>& edgeDistances, in inset() argument
1110 const OutsetRequest& request = this->getOutsetRequest(edgeDistances); in inset()
1130 void TessellationHelper::outset(const skvx::Vec<4, float>& edgeDistances, in outset() argument
[all …]
/external/skqp/src/gpu/ccpr/
DGrCCStroker.cpp118 GrGLSLVarying edgeDistances(kFloat4_GrSLType); in onEmitCode() local
119 varyingHandler->addVarying("edge_distances", &edgeDistances); in onEmitCode()
121 edgeDistances.vsOut()); in onEmitCode()
123 edgeDistances.vsOut(), edgeDistances.vsOut(), edgeDistances.vsOut()); in onEmitCode()
131 v->codeAppendf("%s.yw = float2(-.5, 2*stroke_radius / nwidth + .5);", edgeDistances.vsOut()); in onEmitCode()
133 edgeDistances.vsOut(), edgeDistances.vsOut(), edgeDistances.vsOut()); in onEmitCode()
142 edgeDistances.fsIn(), edgeDistances.fsIn()); in onEmitCode()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp358 skvx::Vec<4, float> edgeDistances; in append() local
360 edgeDistances = 0.5f; in append()
362 edgeDistances = { (aaFlags & GrQuadAAFlags::kLeft) ? 0.5f : 0.f, in append()
370 fAAHelper.inset(edgeDistances, deviceQuad, localQuad).store(coverage); in append()
386 edgeDistances *= max(1.f, 2.f - maxWH); in append()
388 fAAHelper.outset(edgeDistances, deviceQuad, localQuad); in append()