Lines Matching defs:limit
21 // Scale must be less than or equal to the ratio limit / (*a + *b).
23 static void AdjustRadii(double limit, double scale, SkScalar* a, SkScalar* b) {
29 if (*a + *b > limit) {
40 // The newMinRadius will always be smaller than limit. The largest that minRadius can be
42 // division, minRadius can be no larger than 1/2 limit + ULP.
45 float newMaxRadius = (float)(limit - newMinRadius);
50 while (newMaxRadius + newMinRadius > limit) {
56 SkASSERTF(*a >= 0.0f && *b >= 0.0f, "a: %g, b: %g, limit: %g, scale: %g", *a, *b, limit,
59 SkASSERTF(*a + *b <= limit,
61 limit, *a + *b, *a, *b, scale);