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

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

Issue 344703002: Revert of Remove EnableThreadedCompositing from the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.',
108 'enabled_readback': 'Hardware accelerated, but at reduced performance', 110 'enabled_readback': 'Hardware accelerated, but at reduced performance',
109 'enabled_force': 'Hardware accelerated', 111 'enabled_force': 'Hardware accelerated',
112 'enabled_threaded': 'Hardware accelerated and threaded.',
110 'enabled': 'Hardware accelerated', 113 'enabled': 'Hardware accelerated',
111 'accelerated': 'Accelerated', 114 'accelerated': 'Accelerated',
115 'accelerated_threaded': 'Accelerated and threaded',
112 // GPU Switching 116 // GPU Switching
113 'gpu_switching_automatic': 'Automatic switching', 117 'gpu_switching_automatic': 'Automatic switching',
114 'gpu_switching_force_discrete': 'Always on discrete GPU', 118 'gpu_switching_force_discrete': 'Always on discrete GPU',
115 'gpu_switching_force_integrated': 'Always on integrated GPU', 119 'gpu_switching_force_integrated': 'Always on integrated GPU',
116 }; 120 };
117 121
118 var statusClassMap = { 122 var statusClassMap = {
119 'disabled_software': 'feature-yellow', 123 'disabled_software': 'feature-yellow',
120 'disabled_software_animated': 'feature-yellow', 124 'disabled_software_animated': 'feature-yellow',
121 'disabled_software_multithreaded': 'feature-yellow', 125 'disabled_software_multithreaded': 'feature-yellow',
122 'disabled_off': 'feature-red', 126 'disabled_off': 'feature-red',
123 'software': 'feature-yellow', 127 'software': 'feature-yellow',
124 'unavailable_off': 'feature-red', 128 'unavailable_off': 'feature-red',
125 'unavailable_software': 'feature-yellow', 129 'unavailable_software': 'feature-yellow',
130 'unavailable_software_threaded': 'feature-yellow',
126 'enabled_force': 'feature-green', 131 'enabled_force': 'feature-green',
127 'enabled_readback': 'feature-yellow', 132 'enabled_readback': 'feature-yellow',
133 'enabled_threaded': 'feature-green',
128 'enabled': 'feature-green', 134 'enabled': 'feature-green',
129 'accelerated': 'feature-green', 135 'accelerated': 'feature-green',
136 'accelerated_threaded': 'feature-green',
130 // GPU Switching 137 // GPU Switching
131 'gpu_switching_automatic': 'feature-green', 138 'gpu_switching_automatic': 'feature-green',
132 'gpu_switching_force_discrete': 'feature-red', 139 'gpu_switching_force_discrete': 'feature-red',
133 'gpu_switching_force_integrated': 'feature-red', 140 'gpu_switching_force_integrated': 'feature-red',
134 }; 141 };
135 142
136 // GPU info, basic 143 // GPU info, basic
137 var diagnosticsDiv = this.querySelector('.diagnostics'); 144 var diagnosticsDiv = this.querySelector('.diagnostics');
138 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading'); 145 var diagnosticsLoadingDiv = this.querySelector('.diagnostics-loading');
139 var featureStatusList = this.querySelector('.feature-status-list'); 146 var featureStatusList = this.querySelector('.feature-status-list');
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 347
341 peg.innerHTML = ''; 348 peg.innerHTML = '';
342 peg.appendChild(template); 349 peg.appendChild(template);
343 } 350 }
344 }; 351 };
345 352
346 return { 353 return {
347 InfoView: InfoView 354 InfoView: InfoView
348 }; 355 };
349 }); 356 });
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698