Searched refs:occluderZ (Results 1 – 4 of 4) sorted by relevance
/external/skqp/src/core/ |
D | SkDrawShadowInfo.h | 52 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 53 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 56 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument 59 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() 61 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams()
|
D | SkDrawShadowInfo.cpp | 119 SkScalar occluderZ; in GetLocalBounds() local 121 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds() 123 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds() 124 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fTop, in GetLocalBounds() 126 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fLeft, ambientBounds.fBottom, in GetLocalBounds() 128 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fBottom, in GetLocalBounds() 140 ambientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() 145 SkDrawShadowMetrics::GetSpotParams(occluderZ, devLightPos.fX, devLightPos.fY, in GetLocalBounds() 152 SkScalar devSpaceAmbientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() 156 SkDrawShadowMetrics::GetSpotParams(occluderZ, rec.fLightPos.fX, rec.fLightPos.fY, in GetLocalBounds()
|
/external/skia/src/core/ |
D | SkDrawShadowInfo.h | 52 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 53 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 56 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument 59 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() 61 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams()
|
D | SkDrawShadowInfo.cpp | 119 SkScalar occluderZ; in GetLocalBounds() local 121 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds() 123 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds() 124 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fTop, in GetLocalBounds() 126 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fLeft, ambientBounds.fBottom, in GetLocalBounds() 128 occluderZ = SkTMax(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fBottom, in GetLocalBounds() 140 ambientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() 145 SkDrawShadowMetrics::GetSpotParams(occluderZ, devLightPos.fX, devLightPos.fY, in GetLocalBounds() 152 SkScalar devSpaceAmbientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() 156 SkDrawShadowMetrics::GetSpotParams(occluderZ, rec.fLightPos.fX, rec.fLightPos.fY, in GetLocalBounds()
|