Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chromecast/graphics/graphics_properties_default.cc

Issue 2155863002: [Chromecast] Default desktop windows to 720p + switch for 1080p (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698