OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 // Determines whether a certain gpu is prefered in a dual-gpu situation. | 5 // Determines whether a certain gpu is prefered in a dual-gpu situation. |
6 // A valid gpu_switching_list.json file are in the format of | 6 // A valid gpu_switching_list.json file are in the format of |
7 // { | 7 // { |
8 // "version": "x.y", | 8 // "version": "x.y", |
9 // "entries": [ | 9 // "entries": [ |
10 // { // entry 1 | 10 // { // entry 1 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // | 67 // |
68 // STRING includes "op" and "value". "op" can be any of the following values: | 68 // STRING includes "op" and "value". "op" can be any of the following values: |
69 // "contains", "beginwith", "endwith", "=". "value" is a string. | 69 // "contains", "beginwith", "endwith", "=". "value" is a string. |
70 // | 70 // |
71 // FLOAT includes "op" "value", and "value2". "op" can be any of the | 71 // FLOAT includes "op" "value", and "value2". "op" can be any of the |
72 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is | 72 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is |
73 // only used if "op" is "between". "value" is used for all "op" values except | 73 // only used if "op" is "between". "value" is used for all "op" values except |
74 // "any". "value" and "value2" are valid float numbers. | 74 // "any". "value" and "value2" are valid float numbers. |
75 // INT is very much like FLOAT, except that the values need to be integers. | 75 // INT is very much like FLOAT, except that the values need to be integers. |
76 | 76 |
77 #include "content/browser/gpu/gpu_control_list_jsons.h" | 77 #include "gpu/config/gpu_control_list_jsons.h" |
78 | 78 |
79 #define LONG_STRING_CONST(...) #__VA_ARGS__ | 79 #define LONG_STRING_CONST(...) #__VA_ARGS__ |
80 | 80 |
81 namespace content { | 81 namespace gpu { |
82 | 82 |
83 const char kGpuSwitchingListJson[] = LONG_STRING_CONST( | 83 const char kGpuSwitchingListJson[] = LONG_STRING_CONST( |
84 | 84 |
85 { | 85 { |
86 "name": "gpu switching list", | 86 "name": "gpu switching list", |
87 // Please update the version number whenever you change this file. | 87 // Please update the version number whenever you change this file. |
88 "version": "2.0", | 88 "version": "2.0", |
89 "entries": [ | 89 "entries": [ |
90 { | 90 { |
91 "id": 1, | 91 "id": 1, |
(...skipping 22 matching lines...) Expand all Loading... |
114 }, | 114 }, |
115 "features": [ | 115 "features": [ |
116 "force_discrete" | 116 "force_discrete" |
117 ] | 117 ] |
118 } | 118 } |
119 ] | 119 ] |
120 } | 120 } |
121 | 121 |
122 ); // LONG_STRING_CONST macro | 122 ); // LONG_STRING_CONST macro |
123 | 123 |
124 } // namespace content | 124 } // namespace gpu |
125 | 125 |
OLD | NEW |