OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 this.refresh(); | 30 this.refresh(); |
31 }, | 31 }, |
32 | 32 |
33 /** | 33 /** |
34 * Updates the view based on its currently known data | 34 * Updates the view based on its currently known data |
35 */ | 35 */ |
36 refresh: function(data) { | 36 refresh: function(data) { |
37 // Client info | 37 // Client info |
38 if (browserBridge.clientInfo) { | 38 if (browserBridge.clientInfo) { |
39 var clientInfo = browserBridge.clientInfo; | 39 var clientInfo = browserBridge.clientInfo; |
| 40 |
| 41 var commandLineParts = clientInfo.command_line.split(' '); |
| 42 commandLineParts.shift(); // Pop off the exe path |
| 43 var commandLineString = commandLineParts.join(' ') |
| 44 |
40 this.setTable_('client-info', [ | 45 this.setTable_('client-info', [ |
41 { | 46 { |
42 description: 'Data exported', | 47 description: 'Data exported', |
43 value: (new Date()).toLocaleString() | 48 value: (new Date()).toLocaleString() |
44 }, | 49 }, |
45 { | 50 { |
46 description: 'Chrome version', | 51 description: 'Chrome version', |
47 value: clientInfo.version | 52 value: clientInfo.version |
48 }, | 53 }, |
49 { | 54 { |
50 description: 'Operating system', | 55 description: 'Operating system', |
51 value: clientInfo.operating_system | 56 value: clientInfo.operating_system |
52 }, | 57 }, |
53 { | 58 { |
54 description: 'Software rendering list version', | 59 description: 'Software rendering list version', |
55 value: clientInfo.blacklist_version | 60 value: clientInfo.blacklist_version |
56 }, | 61 }, |
57 { | 62 { |
58 description: 'Driver bug list version', | 63 description: 'Driver bug list version', |
59 value: clientInfo.driver_bug_list_version | 64 value: clientInfo.driver_bug_list_version |
60 }, | 65 }, |
61 { | 66 { |
62 description: 'ANGLE revision', | 67 description: 'ANGLE revision', |
63 value: clientInfo.angle_revision | 68 value: clientInfo.angle_revision |
64 }, | 69 }, |
65 { | 70 { |
66 description: '2D graphics backend', | 71 description: '2D graphics backend', |
67 value: clientInfo.graphics_backend | 72 value: clientInfo.graphics_backend |
| 73 }, |
| 74 { |
| 75 description: 'Command Line Args', |
| 76 value: commandLineString |
68 }]); | 77 }]); |
69 } else { | 78 } else { |
70 this.setText_('client-info', '... loading...'); | 79 this.setText_('client-info', '... loading...'); |
71 } | 80 } |
72 | 81 |
73 // Feature map | 82 // Feature map |
74 var featureLabelMap = { | 83 var featureLabelMap = { |
75 '2d_canvas': 'Canvas', | 84 '2d_canvas': 'Canvas', |
76 '3d_css': '3D CSS', | 85 '3d_css': '3D CSS', |
77 'css_animation': 'CSS Animation', | 86 'css_animation': 'CSS Animation', |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 321 |
313 peg.innerHTML = ''; | 322 peg.innerHTML = ''; |
314 peg.appendChild(template); | 323 peg.appendChild(template); |
315 } | 324 } |
316 }; | 325 }; |
317 | 326 |
318 return { | 327 return { |
319 InfoView: InfoView | 328 InfoView: InfoView |
320 }; | 329 }; |
321 }); | 330 }); |
OLD | NEW |