Lines Matching refs:pathBounds
22 const SkRect& pathBounds, SkMatrix* shadowTransform, SkScalar* radius) { in GetSpotShadowTransform() argument
26 SkScalar occluderHeight = heightFunc(pathBounds.centerX(), pathBounds.centerY()); in GetSpotShadowTransform()
36 if (SkScalarNearlyZero(pathBounds.width()) || SkScalarNearlyZero(pathBounds.height())) { in GetSpotShadowTransform()
42 ctm.mapRectToQuad(pts, pathBounds); in GetSpotShadowTransform()
48 SkScalar z = heightFunc(pathBounds.fLeft, pathBounds.fTop); in GetSpotShadowTransform()
50 z = heightFunc(pathBounds.fRight, pathBounds.fTop); in GetSpotShadowTransform()
52 z = heightFunc(pathBounds.fRight, pathBounds.fBottom); in GetSpotShadowTransform()
54 z = heightFunc(pathBounds.fLeft, pathBounds.fBottom); in GetSpotShadowTransform()
103 SkScalar xScale = 2/(pathBounds.fRight - pathBounds.fLeft); in GetSpotShadowTransform()
104 SkScalar yScale = 2/(pathBounds.fBottom - pathBounds.fTop); in GetSpotShadowTransform()
105 toHomogeneous.setAll(xScale, 0, -xScale*pathBounds.fLeft - 1, in GetSpotShadowTransform()
106 0, yScale, -yScale*pathBounds.fTop - 1, in GetSpotShadowTransform()