Home
last modified time | relevance | path

Searched refs:try_scale (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/modules/skottie/src/text/
DSkottieShaper.cpp403 try_scale = SkTPin(1.0f, min_scale, max_scale); // current probe in ShapeToFit() local
412 SkASSERT(try_scale >= in_scale && try_scale <= out_scale); in ShapeToFit()
413 desc.fTextSize = try_scale * orig_desc.fTextSize; in ShapeToFit()
414 desc.fLineHeight = try_scale * orig_desc.fLineHeight; in ShapeToFit()
415 desc.fLineShift = try_scale * orig_desc.fLineShift; in ShapeToFit()
416 desc.fAscent = try_scale * orig_desc.fAscent; in ShapeToFit()
421 const auto prev_scale = try_scale; in ShapeToFit()
423 out_scale = try_scale; in ShapeToFit()
424 try_scale = (in_scale == min_scale) in ShapeToFit()
426 ? std::max(min_scale, try_scale * 0.5f) in ShapeToFit()
[all …]
/third_party/flutter/skia/modules/skottie/src/text/
DSkottieShaper.cpp364 try_scale = 1; // current probe in ShapeToFit()
373 SkASSERT(try_scale >= in_scale && try_scale <= out_scale); in ShapeToFit()
374 desc.fTextSize = try_scale * orig_desc.fTextSize; in ShapeToFit()
375 desc.fLineHeight = try_scale * orig_desc.fLineHeight; in ShapeToFit()
376 desc.fAscent = try_scale * orig_desc.fAscent; in ShapeToFit()
382 out_scale = try_scale; in ShapeToFit()
383 try_scale = (in_scale == 0) in ShapeToFit()
384 ? try_scale * 0.5f // initial in_scale not found yet - search exponentially in ShapeToFit()
395 in_scale = try_scale; in ShapeToFit()
396 try_scale = (out_scale == std::numeric_limits<float>::max()) in ShapeToFit()
[all …]