Searched refs:occluderZ (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/core/ |
D | SkDrawShadowInfo.h | 53 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 54 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 57 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument 60 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() 62 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams() 66 inline void GetDirectionalParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, in GetDirectionalParams() argument 69 *blurRadius = lightRadius*occluderZ; in GetDirectionalParams() 73 SkScalar zRatio = divide_and_pin(occluderZ, lightZ, 0.0f, kMaxZRatio); in GetDirectionalParams()
|
D | SkDrawShadowInfo.cpp | 126 SkScalar occluderZ; in GetLocalBounds() local 128 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds() 130 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds() 131 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fTop, in GetLocalBounds() 133 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fLeft, ambientBounds.fBottom, in GetLocalBounds() 135 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fBottom, in GetLocalBounds() 147 ambientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() 151 SkDrawShadowMetrics::GetDirectionalParams(occluderZ, rec.fLightPos.fX, rec.fLightPos.fY, in GetLocalBounds() 157 SkDrawShadowMetrics::GetSpotParams(occluderZ, devLightPos.fX, devLightPos.fY, in GetLocalBounds() 165 SkScalar devSpaceAmbientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() [all …]
|