Lines Matching full:fixed
59 // stretchy areas and scale the fixed areas to fit within the target bounds.
64 delta = SkScalarMul(delta, -stretchFactor); // scale fixed areas
66 // fixed and scale the stretchable areas to fill the target bounds.
160 const SkScalar fixed = SkIntToScalar(bitmap.width() - stretchSize);
161 if (bounds.width() >= fixed)
162 stretchX = (bounds.width() - fixed) / stretchSize;
164 stretchX = SkScalarDiv(-bounds.width(), fixed);
172 const SkScalar fixed = SkIntToScalar(bitmap.height() - stretchSize);
173 if (bounds.height() >= fixed)
174 stretchY = (bounds.height() - fixed) / stretchSize;
176 stretchY = SkScalarDiv(-bounds.height(), fixed);
224 } else { // shrink fixed sections, and collaps stretchy sections