OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "base/command_line.h" |
| 6 #include "base/logging.h" |
| 7 #include "chromecast/base/chromecast_switches.h" |
| 8 #include "chromecast/base/init_command_line_shlib.h" |
5 #include "chromecast/public/graphics_properties_shlib.h" | 9 #include "chromecast/public/graphics_properties_shlib.h" |
6 | 10 |
7 namespace chromecast { | 11 namespace chromecast { |
8 | 12 |
9 bool GraphicsPropertiesShlib::IsSupported( | 13 bool GraphicsPropertiesShlib::IsSupported( |
10 Resolution resolution, | 14 Resolution resolution, |
11 const std::vector<std::string>& argv) { | 15 const std::vector<std::string>& argv) { |
12 return true; | 16 InitCommandLineShlib(argv); |
| 17 switch (resolution) { |
| 18 case Resolution::k1080p: |
| 19 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 20 switches::kDesktopWindow1080p); |
| 21 case Resolution::kUHDTV: |
| 22 return false; |
| 23 default: |
| 24 NOTREACHED(); |
| 25 return false; |
| 26 } |
13 } | 27 } |
14 | 28 |
15 } // namespace chromecast | 29 } // namespace chromecast |
OLD | NEW |