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 26 matching lines...) Expand all Loading... |
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). |
44 // 12. "gl_vendor" is a string pattern. | 44 // 12. "gl_vendor" is a string pattern. |
45 // 13. "gl_renderer" is a string pattern. | 45 // 13. "gl_renderer" is a string pattern. |
46 // 14. "gl_extensions" is a string pattern. | 46 // 14. "gl_extensions" is a string pattern. |
47 // 15. "perf_graphics" is a FLOAT structure (defined below). | 47 // 15. "machine_model_name" is an array of string patterns. |
48 // 16. "perf_gaming" is a FLOAT structure (defined below). | 48 // 16. "machine_model_version" is a VERSION structure (defined below). |
49 // 17. "perf_overall" is a FLOAT structure (defined below). | 49 // 17. "gpu_count" is a INT structure (defined below). |
50 // 18. "machine_model_name" is an array of string patterns. | 50 // 18. "cpu_info" is a string pattern. |
51 // 19. "machine_model_version" is a VERSION structure (defined below). | 51 // 19. "exceptions" is a list of entries. |
52 // 20. "gpu_count" is a INT structure (defined below). | 52 // 20. "features" is a list of gpu control list options, which can be |
53 // 21 "cpu_info" is a string pattern. | |
54 // 22. "exceptions" is a list of entries. | |
55 // 23. "features" is a list of gpu control list options, which can be | |
56 // configured by a specific list. See its *_json.cc file for a list of | 53 // configured by a specific list. See its *_json.cc file for a list of |
57 // supported features. This field is mandatory. | 54 // supported features. This field is mandatory. |
58 // 24. "description" has the description of the entry. | 55 // 21. "description" has the description of the entry. |
59 // 25. "webkit_bugs" is an array of associated webkit bug numbers. | 56 // 22. "webkit_bugs" is an array of associated webkit bug numbers. |
60 // 26. "cr_bugs" is an array of associated webkit bug numbers. | 57 // 23. "cr_bugs" is an array of associated webkit bug numbers. |
61 // 27. "disabled" is a boolean. If it is present, the entry will be skipped. | 58 // 24. "disabled" is a boolean. If it is present, the entry will be skipped. |
62 // This can not be used in exceptions. | 59 // This can not be used in exceptions. |
63 // 28. "direct_rendering" is a boolean. If present, this will filter on whether | 60 // 25. "direct_rendering" is a boolean. If present, this will filter on whether |
64 // the GL contexts are direct or indirect based on the value. | 61 // the GL contexts are direct or indirect based on the value. |
65 // | 62 // |
66 // VERSION includes "op", "style", "value", and "value2". "op" can be any of | 63 // VERSION includes "op", "style", "value", and "value2". "op" can be any of |
67 // the following values: "=", "<", "<=", ">", ">=", "any", "between". "style" | 64 // the following values: "=", "<", "<=", ">", ">=", "any", "between". "style" |
68 // is optional and can be "lexical" or "numerical"; if it's not specified, it | 65 // is optional and can be "lexical" or "numerical"; if it's not specified, it |
69 // defaults to "numerical". "value2" is only used if "op" is "between". | 66 // defaults to "numerical". "value2" is only used if "op" is "between". |
70 // "between" is "value <= * <= value2". | 67 // "between" is "value <= * <= value2". |
71 // "value" is used for all "op" values except "any". "value" and "value2" | 68 // "value" is used for all "op" values except "any". "value" and "value2" |
72 // are in the format of x, x.x, x.x.x, etc. | 69 // are in the format of x, x.x, x.x.x, etc. |
73 // Only "driver_version" supports lexical style if the format is major.minor; | 70 // Only "driver_version" supports lexical style if the format is major.minor; |
74 // in that case, major is still numerical, but minor is lexical. | 71 // in that case, major is still numerical, but minor is lexical. |
75 // | 72 // |
76 // FLOAT includes "op" "value", and "value2". "op" can be any of the | 73 // FLOAT includes "op" "value", and "value2". "op" can be any of the |
77 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is | 74 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is |
78 // only used if "op" is "between". "value" is used for all "op" values except | 75 // only used if "op" is "between". "value" is used for all "op" values except |
79 // "any". "value" and "value2" are valid float numbers. | 76 // "any". "value" and "value2" are valid float numbers. |
80 // INT is very much like FLOAT, except that the values need to be integers. | 77 // INT is very much like FLOAT, except that the values need to be integers. |
81 // | 78 // |
82 // String pattern syntax can be found at | 79 // String pattern syntax can be found at |
83 // https://code.google.com/p/re2/wiki/Syntax. | 80 // https://code.google.com/p/re2/wiki/Syntax. |
OLD | NEW |