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

Side by Side Diff: content/browser/resources/gpu/info_view.js

Issue 337783002: Remove EnableThreadedCompositing from the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thread: . Created 6 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 5
6 /** 6 /**
7 * @fileoverview This view displays information on the current GPU 7 * @fileoverview This view displays information on the current GPU
8 * hardware. Its primary usefulness is to allow users to copy-paste 8 * hardware. Its primary usefulness is to allow users to copy-paste
9 * their data in an easy to read format for bug reports. 9 * their data in an easy to read format for bug reports.
10 */ 10 */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 }; 98 };
99 var statusLabelMap = { 99 var statusLabelMap = {
100 'disabled_software': 'Software only. Hardware acceleration disabled.', 100 'disabled_software': 'Software only. Hardware acceleration disabled.',
101 'disabled_software_animated': 'Software animated.', 101 'disabled_software_animated': 'Software animated.',
102 'disabled_software_multithreaded': 'Software only, multi-threaded', 102 'disabled_software_multithreaded': 'Software only, multi-threaded',
103 'disabled_off': 'Unavailable. Hardware acceleration disabled.', 103 'disabled_off': 'Unavailable. Hardware acceleration disabled.',
104 'software': 'Software rendered. Hardware acceleration not enabled.', 104 'software': 'Software rendered. Hardware acceleration not enabled.',
105 'unavailable_off': 'Unavailable. Hardware acceleration unavailable', 105 'unavailable_off': 'Unavailable. Hardware acceleration unavailable',
106 'unavailable_software': 106 'unavailable_software':
107 'Software only, hardware acceleration unavailable', 107 'Software only, hardware acceleration unavailable',
108 'unavailable_software_threaded':
109 'Software only and threaded. Hardware acceleration unavailable.',
110 'enabled_readback': 'Hardware accelerated, but at reduced performance', 108 'enabled_readback': 'Hardware accelerated, but at reduced performance',
111 'enabled_force': 'Hardware accelerated', 109 'enabled_force': 'Hardware accelerated',
112 'enabled_threaded': 'Hardware accelerated and threaded.',
113 'enabled': 'Hardware accelerated', 110 'enabled': 'Hardware accelerated',
114 'accelerated': 'Accelerated', 111 'accelerated': 'Accelerated',
115 'accelerated_threaded': 'Accelerated and threaded',
116 // GPU Switching 112 // GPU Switching
117 'gpu_switching_automatic': 'Automatic switching', 113 'gpu_switching_automatic': 'Automatic switching',
118 'gpu_switching_force_discrete': 'Always on discrete GPU', 114 'gpu_switching_force_discrete': 'Always on discrete GPU',
119 'gpu_switching_force_integrated': 'Always on integrated GPU', 115 'gpu_switching_force_integrated': 'Always on integrated GPU',
120 }; 116 };
121 117
122 var statusClassMap = { 118 var statusClassMap = {
123 'disabled_software': 'feature-yellow', 119 'disabled_software': 'feature-yellow',
124 'disabled_software_animated': 'feature-yellow', 120 'disabled_software_animated': 'feature-yellow',
125 'disabled_software_multithreaded': 'feature-yellow', 121 'disabled_software_multithreaded': 'feature-yellow',
126 'disabled_off': 'feature-red', 122 'disabled_off': 'feature-red',
127 'software': 'feature-yellow', 123 'software': 'feature-yellow',
128 'unavailable_off': 'feature-red', 124 'unavailable_off': 'feature-red',
129 'unavailable_software': 'feature-yellow', 125 'unavailable_software': 'feature-yellow',
130 'unavailable_software_threaded': 'feature-yellow',
131 'enabled_force': 'feature-green', 126 'enabled_force': 'feature-green',
132 'enabled_readback': 'feature-yellow', 127 'enabled_readback': 'feature-yellow',
133 'enabled_threaded': 'feature-green',
134 'enabled': 'feature-green', 128 'enabled': 'feature-green',
135 'accelerated': 'feature-green', 129 'accelerated': 'feature-green',
136 'accelerated_threaded': 'feature-green',
137 // GPU Switching 130 // GPU Switching
138 'gpu_switching_automatic': 'feature-green', 131 'gpu_switching_automatic': 'feature-green',
139 'gpu_switching_force_discrete': 'feature-red', 132 'gpu_switching_force_discrete': 'feature-red',
140 'gpu_switching_force_integrated': 'feature-red', 133 'gpu_switching_force_integrated': 'feature-red',
141 }; 134 };
142 135
143 // GPU info, basic 136 // GPU info, basic
144 var diagnosticsDiv = this.querySelector('.diagnostics'); 137 var diagnosticsDiv = this.querySelector('.diagnostics');
145 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); 138 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading');
146 var featureStatusList = this.querySelector('.feature-status-list'); 139 var featureStatusList = this.querySelector('.feature-status-list');
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 340
348 peg.innerHTML = ''; 341 peg.innerHTML = '';
349 peg.appendChild(template); 342 peg.appendChild(template);
350 } 343 }
351 }; 344 };
352 345
353 return { 346 return {
354 InfoView: InfoView 347 InfoView: InfoView
355 }; 348 };
356 }); 349 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698