Chromium Code Reviews| Index: ui/base/layout.cc |
| diff --git a/ui/base/layout.cc b/ui/base/layout.cc |
| index 5aaa7aa4e0006ec99b5b4791f631bb13b99b157b..781ab64d4309868c73b2e2d1062b6391e4ff8533 100644 |
| --- a/ui/base/layout.cc |
| +++ b/ui/base/layout.cc |
| @@ -92,6 +92,13 @@ float GetScaleForScaleFactor(ScaleFactor scale_factor) { |
| return kScaleFactorScales[scale_factor]; |
| } |
| +bool IsSupportedScale(float scale) { |
| + const std::vector<float>& supported_scales = |
| + gfx::ImageSkia::GetSupportedScales(); |
|
sky
2015/03/25 14:49:10
Why are you using ImageSkia and not g_supported_sc
ananta
2015/03/25 16:56:05
Done.
|
| + return std::find(supported_scales.begin(), supported_scales.end(), scale) |
| + != supported_scales.end(); |
| +} |
| + |
| namespace test { |
| ScopedSetSupportedScaleFactors::ScopedSetSupportedScaleFactors( |