Lines Matching defs:scale
137 // Create a strike is source space to calculate scale information.
147 // Calculate the scale that makes the longest edge 1:1 with its side in the cache.
157 SkScalar scale = (corners[1] - corners[0]).length() / rect.width();
158 maxScale = std::max(maxScale, scale);
160 scale = (corners[2] - corners[1]).length() / rect.height();
161 maxScale = std::max(maxScale, scale);
163 scale = (corners[3] - corners[2]).length() / rect.width();
164 maxScale = std::max(maxScale, scale);
166 scale = (corners[0] - corners[3]).length() / rect.height();
167 maxScale = std::max(maxScale, scale);