OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/ozone/platform_selection.h" |
| 6 |
5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
6 #include "base/logging.h" | 8 #include "base/logging.h" |
7 #include "ui/ozone/ozone_switches.h" | 9 #include "ui/ozone/ozone_switches.h" |
8 #include "ui/ozone/platform_list.h" | 10 #include "ui/ozone/platform_list.h" |
9 | 11 |
10 namespace ui { | 12 namespace ui { |
11 | 13 |
12 namespace { | 14 namespace { |
13 | 15 |
14 // Returns the name of the platform to use (value of --ozone-platform flag). | 16 // Returns the name of the platform to use (value of --ozone-platform flag). |
(...skipping 26 matching lines...) Expand all Loading... |
41 | 43 |
42 LOG(FATAL) << "Invalid ozone platform: " << platform_name; | 44 LOG(FATAL) << "Invalid ozone platform: " << platform_name; |
43 return -1; // not reached | 45 return -1; // not reached |
44 } | 46 } |
45 | 47 |
46 const char* GetOzonePlatformName() { | 48 const char* GetOzonePlatformName() { |
47 return kPlatformNames[GetOzonePlatformId()]; | 49 return kPlatformNames[GetOzonePlatformId()]; |
48 } | 50 } |
49 | 51 |
50 } // namespace ui | 52 } // namespace ui |
OLD | NEW |