Home
last modified time | relevance | path

Searched refs:kHeightFactor (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/utils/
DSkShadowTessellator.cpp347 static constexpr auto kHeightFactor = 1.0f / 128.0f; member in SkAmbientShadowTessellator
353 return z * kHeightFactor * kGeomFactor; in offset()
356 SkScalar umbraAlpha = SkScalarInvert((1.0f + SkTMax(z*kHeightFactor, 0.0f))); in umbraColor()
376 SkScalar umbraAlpha = SkScalarInvert((1.0f + SkTMax(occluderHeight*kHeightFactor, 0.0f))); in SkAmbientShadowTessellator()
/external/skia/src/gpu/
DGrRenderTargetContext.cpp1015 static constexpr float kHeightFactor = 1.0f / 128.0f; in drawFastShadow() local
1018 SkScalar devSpaceInsetWidth = occluderHeight * kHeightFactor * kGeomFactor; in drawFastShadow()
1019 const float umbraAlpha = (1.0f + SkTMax(occluderHeight * kHeightFactor, 0.0f)); in drawFastShadow()