Searched refs:try_scale (Results 1 – 1 of 1) sorted by relevance
404 try_scale = SkTPin(1.0f, min_scale, max_scale); // current probe in ShapeToFit() local413 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()[all …]