Home
last modified time | relevance | path

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

/third_party/skia/src/core/
DSkDrawShadowInfo.h61 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument
62 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius()
65 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument
68 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams()
70 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams()
80 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument
84 …GetSpotParams(occluderZ, lightX, lightY, lightZ, lightRadius, blurRadius, scale, translate, false); in GetSpotParams()
87 inline void GetDirectionalParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, in GetDirectionalParams() argument
90 *blurRadius = lightRadius*occluderZ; in GetDirectionalParams()
94 SkScalar zRatio = divide_and_pin(occluderZ, lightZ, 0.0f, kMaxZRatio); in GetDirectionalParams()
DSkDrawShadowInfo.cpp141 SkScalar occluderZ; in GetLocalBounds() local
143 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds()
145 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds()
146 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fTop, in GetLocalBounds()
148 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fLeft, ambientBounds.fBottom, in GetLocalBounds()
150 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fBottom, in GetLocalBounds()
162 ambientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds()
166 SkDrawShadowMetrics::GetDirectionalParams(occluderZ, rec.fLightPos.fX, rec.fLightPos.fY, in GetLocalBounds()
172 SkDrawShadowMetrics::GetSpotParams(occluderZ, devLightPos.fX, devLightPos.fY, in GetLocalBounds()
180 SkScalar devSpaceAmbientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds()
[all …]