Lines Matching refs:try_scale
404 try_scale = SkTPin(1.0f, min_scale, max_scale); // current probe in ShapeToFit() local
413 SkASSERT(try_scale >= in_scale && try_scale <= out_scale); in ShapeToFit()
414 desc.fTextSize = try_scale * orig_desc.fTextSize; in ShapeToFit()
415 desc.fLineHeight = try_scale * orig_desc.fLineHeight; in ShapeToFit()
416 desc.fLineShift = try_scale * orig_desc.fLineShift; in ShapeToFit()
417 desc.fAscent = try_scale * orig_desc.fAscent; in ShapeToFit()
422 const auto prev_scale = try_scale; in ShapeToFit()
424 out_scale = try_scale; in ShapeToFit()
425 try_scale = (in_scale == min_scale) in ShapeToFit()
427 ? std::max(min_scale, try_scale * 0.5f) in ShapeToFit()
434 in_scale = try_scale; in ShapeToFit()
435 try_scale = (out_scale == max_scale) in ShapeToFit()
437 ? std::min(max_scale, try_scale * 2) in ShapeToFit()
442 if (try_scale == prev_scale) { in ShapeToFit()