Searched refs:occluderZ (Results 1 - 2 of 2) sorted by relevance
/third_party/skia/src/core/ |
H A D | SkDrawShadowInfo.h | 61 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 83 GetSpotParams(occluderZ, lightX, lightY, lightZ, lightRadius, blurRadius, scale, translate, false); in GetSpotParams() 86 inline void GetDirectionalParams(SkScalar occluderZ, SkScala argument [all...] |
H A D | SkDrawShadowInfo.cpp | 144 SkScalar occluderZ; in GetLocalBounds() local 146 occluderZ = rec.fZPlaneParams.fZ; in GetLocalBounds() 148 occluderZ = compute_z(ambientBounds.fLeft, ambientBounds.fTop, rec.fZPlaneParams); in GetLocalBounds() 149 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fTop, in GetLocalBounds() 151 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fLeft, ambientBounds.fBottom, in GetLocalBounds() 153 occluderZ = std::max(occluderZ, compute_z(ambientBounds.fRight, ambientBounds.fBottom, in GetLocalBounds() 165 ambientBlur = SkDrawShadowMetrics::AmbientBlurRadius(occluderZ); in GetLocalBounds() [all...] |
Completed in 2 milliseconds