Home | History | Annotate | Download | only in host

Lines Matching refs:preferred

26                       const ScreenResolution& preferred)
30 DCHECK(!preferred.IsEmpty());
32 // The client scale factor is the smaller of the candidate:preferred ratios
34 if ((candidate.dimensions().width() > preferred.dimensions().width()) ||
35 (candidate.dimensions().height() > preferred.dimensions().height())) {
37 static_cast<float>(preferred.dimensions().width()) /
40 static_cast<float>(preferred.dimensions().height()) /
49 // of the two aspect ratios (candidate and preferred) to the larger. The
50 // best aspect ratio is the one that most closely matches the preferred
58 static_cast<float>(preferred.dimensions().width()) /
59 preferred.dimensions().height();