OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Determines whether a certain gpu is prefered in a dual-gpu situation. | |
6 // The format of a valid gpu_switching_list.json file is defined in | |
7 // <gpu/config/gpu_control_list_format.txt>. | |
8 // The supported "features" can be found in <gpu/config/gpu_switching_list.cc>. | |
9 | |
10 #include "gpu/config/gpu_control_list_jsons.h" | |
11 | |
12 #define LONG_STRING_CONST(...) #__VA_ARGS__ | |
13 | |
14 namespace gpu { | |
15 | |
16 const char kGpuSwitchingListJson[] = LONG_STRING_CONST( | |
17 | |
18 { | |
19 "name": "gpu switching list", | |
20 // Please update the version number whenever you change this file. | |
21 "version": "2.0", | |
22 "entries": [ | |
23 { | |
24 "id": 1, | |
25 "description": "Force to use discrete GPU on older MacBookPro models.", | |
26 "cr_bugs": [113703], | |
27 "os": { | |
28 "type": "macosx", | |
29 "version": { | |
30 "op": ">=", | |
31 "value": "10.7" | |
32 } | |
33 }, | |
34 "machine_model": { | |
35 "name": { | |
36 "op": "=", | |
37 "value": "MacBookPro" | |
38 }, | |
39 "version": { | |
40 "op": "<", | |
41 "value": "8" | |
42 } | |
43 }, | |
44 "gpu_count": { | |
45 "op": "=", | |
46 "value": "2" | |
47 }, | |
48 "features": [ | |
49 "force_discrete" | |
50 ] | |
51 } | |
52 ] | |
53 } | |
54 | |
55 ); // LONG_STRING_CONST macro | |
56 | |
57 } // namespace gpu | |
58 | |
OLD | NEW |