Lines Matching refs:scale_factor
83 const ScaleFactor scale_factor = static_cast<ScaleFactor>(i);
84 float diff = std::abs(kScaleFactorScales[scale_factor] - scale);
86 closest_match = scale_factor;
157 ScaleFactor scale_factor = supported[i];
158 float diff = std::abs(kScaleFactorScales[scale_factor] - scale);
160 closest_match = scale_factor;
168 float GetScaleFactorScale(ScaleFactor scale_factor) {
169 return kScaleFactorScales[scale_factor];
184 bool IsScaleFactorSupported(ScaleFactor scale_factor) {
187 return std::find(supported.begin(), supported.end(), scale_factor) !=