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 // A valid gpu control list json file is in the format of | 5 // A valid gpu control list json file is in the format of |
6 // { | 6 // { |
7 // "version": "x.y", | 7 // "version": "x.y", |
8 // "entries": [ | 8 // "entries": [ |
9 // { // entry 1 | 9 // { // entry 1 |
10 // }, | 10 // }, |
(...skipping 12 matching lines...) Expand all Loading... |
23 // "version" is a VERSION structure (defined below). | 23 // "version" is a VERSION structure (defined below). |
24 // 3. "vendor_id" is a string. 0 is reserved. | 24 // 3. "vendor_id" is a string. 0 is reserved. |
25 // 4. "device_id" is an array of strings. 0 is reserved. | 25 // 4. "device_id" is an array of strings. 0 is reserved. |
26 // 5. "multi_gpu_style" is a string, valid values include: | 26 // 5. "multi_gpu_style" is a string, valid values include: |
27 // a) "optimus": NVIDIA dual GPU | 27 // a) "optimus": NVIDIA dual GPU |
28 // b) "amd_switchable": AMD dual GPU | 28 // b) "amd_switchable": AMD dual GPU |
29 // c) "amd_switchable_integrated": AMD dual GPU, integrated GPU is active | 29 // c) "amd_switchable_integrated": AMD dual GPU, integrated GPU is active |
30 // d) "amd_switchable_discrete": AMD dual GPU, discrete GPU is active | 30 // d) "amd_switchable_discrete": AMD dual GPU, discrete GPU is active |
31 // c) and d) are only valid on Win, as on Mac we can switch GPU on the fly. | 31 // c) and d) are only valid on Win, as on Mac we can switch GPU on the fly. |
32 // 6. "multi_gpu_category" is a string, valid values include "any", "primary", | 32 // 6. "multi_gpu_category" is a string, valid values include "any", "primary", |
33 // "secondary", and "active". If unspecified, the default value is "primary". | 33 // "secondary", and "active". If unspecified, the default value is "active". |
34 // See gpu_control_list.h for more details on the meanings of the strings. | 34 // See gpu_control_list.h for more details on the meanings of the strings. |
35 // 7. "driver_vendor" is a string pattern. | 35 // 7. "driver_vendor" is a string pattern. |
36 // 8. "driver_version" is a VERSION structure (defined below). | 36 // 8. "driver_version" is a VERSION structure (defined below). |
37 // 9. "driver_date" is a VERSION structure (defined below). | 37 // 9. "driver_date" is a VERSION structure (defined below). |
38 // The version is interpreted as "year.month.day". | 38 // The version is interpreted as "year.month.day". |
39 // 10. "gl_type" is a string, valid values include "gl", "gles", and "angle". | 39 // 10. "gl_type" is a string, valid values include "gl", "gles", and "angle". |
40 // If "gl_version" is specified and "gl_type" is not, use the default value. | 40 // If "gl_version" is specified and "gl_type" is not, use the default value. |
41 // The default value on Android is "gles", on Windows is "angle", on other | 41 // The default value on Android is "gles", on Windows is "angle", on other |
42 // platforms is "gl". | 42 // platforms is "gl". |
43 // 11. "gl_version" is a VERSION structure (defined below). | 43 // 11. "gl_version" is a VERSION structure (defined below). |
(...skipping 29 matching lines...) Expand all Loading... |
73 // in that case, major is still numerical, but minor is lexical. | 73 // in that case, major is still numerical, but minor is lexical. |
74 // | 74 // |
75 // FLOAT includes "op" "value", and "value2". "op" can be any of the | 75 // FLOAT includes "op" "value", and "value2". "op" can be any of the |
76 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is | 76 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is |
77 // only used if "op" is "between". "value" is used for all "op" values except | 77 // only used if "op" is "between". "value" is used for all "op" values except |
78 // "any". "value" and "value2" are valid float numbers. | 78 // "any". "value" and "value2" are valid float numbers. |
79 // INT is very much like FLOAT, except that the values need to be integers. | 79 // INT is very much like FLOAT, except that the values need to be integers. |
80 // | 80 // |
81 // String pattern syntax can be found at | 81 // String pattern syntax can be found at |
82 // https://code.google.com/p/re2/wiki/Syntax. | 82 // https://code.google.com/p/re2/wiki/Syntax. |
OLD | NEW |