Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: content/browser/gpu/gpu_switching_list_json.cc

Issue 15094006: Change gpu blacklists from json resource to const string. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
1 // 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.
2 // 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
3 // { 7 // {
4 // "version": "x.y", 8 // "version": "x.y",
5 // "entries": [ 9 // "entries": [
6 // { // entry 1 10 // { // entry 1
7 // }, 11 // },
8 // ... 12 // ...
9 // { // entry n 13 // { // entry n
10 // } 14 // }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // 66 //
63 // STRING includes "op" and "value". "op" can be any of the following values: 67 // STRING includes "op" and "value". "op" can be any of the following values:
64 // "contains", "beginwith", "endwith", "=". "value" is a string. 68 // "contains", "beginwith", "endwith", "=". "value" is a string.
65 // 69 //
66 // FLOAT includes "op" "value", and "value2". "op" can be any of the 70 // FLOAT includes "op" "value", and "value2". "op" can be any of the
67 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is 71 // following values: "=", "<", "<=", ">", ">=", "any", "between". "value2" is
68 // only used if "op" is "between". "value" is used for all "op" values except 72 // only used if "op" is "between". "value" is used for all "op" values except
69 // "any". "value" and "value2" are valid float numbers. 73 // "any". "value" and "value2" are valid float numbers.
70 // INT is very much like FLOAT, except that the values need to be integers. 74 // INT is very much like FLOAT, except that the values need to be integers.
71 75
76 #include "content/browser/gpu/gpu_control_list_jsons.h"
77
78 #define LONG_STRING_CONST(...) #__VA_ARGS__
79
80 namespace content {
81
82 const char kGpuSwitchingListJson[] = LONG_STRING_CONST(
83
72 { 84 {
73 "name": "gpu switching list", 85 "name": "gpu switching list",
74 // Please update the version number whenever you change this file. 86 // Please update the version number whenever you change this file.
75 "version": "1.0", 87 "version": "1.0",
76 "entries": [ 88 "entries": [
77 { 89 {
78 "id": 1, 90 "id": 1,
79 "description": "Force to use discrete GPU on older MacBookPro models.", 91 "description": "Force to use discrete GPU on older MacBookPro models.",
80 "cr_bugs": [113703], 92 "cr_bugs": [113703],
81 "os": { 93 "os": {
(...skipping 16 matching lines...) Expand all
98 "gpu_count": { 110 "gpu_count": {
99 "op": "=", 111 "op": "=",
100 "value": "2" 112 "value": "2"
101 }, 113 },
102 "features": [ 114 "features": [
103 "force_discrete" 115 "force_discrete"
104 ] 116 ]
105 } 117 }
106 ] 118 ]
107 } 119 }
120
121 ); // LONG_STRING_CONST macro
122
123 } // namespace content
124
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_switching_list.json ('k') | content/browser/gpu/gpu_switching_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698