Lines Matching refs:scale
38 // scale when mapping to screen coordinates.
191 double scale = 1.0/det;
206 // then does the scale by 1/det afterwards to improve precision
207 m[SkMatrix::kMScaleX] = (float)((0.5*a3 + a6)*scale);
208 m[SkMatrix::kMSkewX] = (float)((0.5*a4 + a7)*scale);
209 m[SkMatrix::kMTransX] = (float)((0.5*a5 + a8)*scale);
211 m[SkMatrix::kMSkewY] = (float)(a6*scale);
212 m[SkMatrix::kMScaleY] = (float)(a7*scale);
213 m[SkMatrix::kMTransY] = (float)(a8*scale);
218 m[SkMatrix::kMPersp2] = (float)((a2 + a5 + a8)*scale);
261 // scale the max absolute value of coeffs to 10
262 SkScalar scale = 0.f;
264 scale = std::max(scale, SkScalarAbs(klm[i]));
266 SkASSERT(scale > 0.f);
267 scale = 10.f / scale;
269 klm[i] *= scale;
345 ab.scale(kLengthScale);
346 dc.scale(kLengthScale);
437 mid.scale(SK_ScalarHalf);
460 ab.scale(kLengthScale);
461 dc.scale(kLengthScale);
597 // NOTE: We only need the roots, so a uniform scale factor does not affect the solution.