Lines Matching refs:limit
19 // Scale must be less than or equal to the ratio limit / (*a + *b).
21 static void AdjustRadii(double limit, double scale, SkScalar* a, SkScalar* b) {
27 if (*a + *b > limit) {
37 // The newMinRadius will always be smaller than limit. The largest that minRadius can be
39 // division, minRadius can be no larger than 1/2 limit + ULP. The newMinRadius can be
44 // than limit, but only by one ULP.
45 float newMaxRadius = (float)(limit - newMinRadius);
48 // sum is greater than the limit then newMaxRadius may have to be reduced twice.
51 if (newMaxRadius + newMinRadius > limit) {
53 if (newMaxRadius + newMinRadius > limit) {
60 SkASSERTF(*a >= 0.0f && *b >= 0.0f, "a: %g, b: %g, limit: %g, scale: %g", *a, *b, limit,
63 SkASSERTF(*a + *b <= limit,
65 limit, *a + *b, *a, *b, scale);