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

Side by Side Diff: chrome/browser/dom_ui/gpu_internals_ui.cc

Issue 6346007: Refactor and improve gpu_info_collector: collect information on linux;... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: This should turn three trybots green Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/dom_ui/gpu_internals_ui.h" 5 #include "chrome/browser/dom_ui/gpu_internals_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 DictionaryValue* GpuInfoToDict(const GPUInfo& gpu_info) { 275 DictionaryValue* GpuInfoToDict(const GPUInfo& gpu_info) {
276 ListValue* basic_info = new ListValue(); 276 ListValue* basic_info = new ListValue();
277 basic_info->Append(NewDescriptionValuePair("Initialization time", 277 basic_info->Append(NewDescriptionValuePair("Initialization time",
278 base::Int64ToString(gpu_info.initialization_time().InMilliseconds()))); 278 base::Int64ToString(gpu_info.initialization_time().InMilliseconds())));
279 basic_info->Append(NewDescriptionValuePair("Vendor Id", 279 basic_info->Append(NewDescriptionValuePair("Vendor Id",
280 base::StringPrintf("0x%04x", gpu_info.vendor_id()))); 280 base::StringPrintf("0x%04x", gpu_info.vendor_id())));
281 basic_info->Append(NewDescriptionValuePair("Device Id", 281 basic_info->Append(NewDescriptionValuePair("Device Id",
282 base::StringPrintf("0x%04x", gpu_info.device_id()))); 282 base::StringPrintf("0x%04x", gpu_info.device_id())));
283 basic_info->Append(NewDescriptionValuePair("Driver version", 283 basic_info->Append(NewDescriptionValuePair("Driver version",
284 WideToASCII(gpu_info.driver_version()).c_str())); 284 gpu_info.driver_version()));
285 basic_info->Append(NewDescriptionValuePair("Pixel shader version", 285 basic_info->Append(NewDescriptionValuePair("Pixel shader version",
286 VersionNumberToString(gpu_info.pixel_shader_version()))); 286 VersionNumberToString(gpu_info.pixel_shader_version())));
287 basic_info->Append(NewDescriptionValuePair("Vertex shader version", 287 basic_info->Append(NewDescriptionValuePair("Vertex shader version",
288 VersionNumberToString(gpu_info.vertex_shader_version()))); 288 VersionNumberToString(gpu_info.vertex_shader_version())));
289 basic_info->Append(NewDescriptionValuePair("GL version", 289 basic_info->Append(NewDescriptionValuePair("GL version",
290 VersionNumberToString(gpu_info.gl_version()))); 290 VersionNumberToString(gpu_info.gl_version())));
291 291
292 DictionaryValue* info = new DictionaryValue(); 292 DictionaryValue* info = new DictionaryValue();
293 info->Set("basic_info", basic_info); 293 info->Set("basic_info", basic_info);
294 294
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 // Set up the chrome://gpu/ source. 342 // Set up the chrome://gpu/ source.
343 BrowserThread::PostTask( 343 BrowserThread::PostTask(
344 BrowserThread::IO, FROM_HERE, 344 BrowserThread::IO, FROM_HERE,
345 NewRunnableMethod( 345 NewRunnableMethod(
346 ChromeURLDataManager::GetInstance(), 346 ChromeURLDataManager::GetInstance(),
347 &ChromeURLDataManager::AddDataSource, 347 &ChromeURLDataManager::AddDataSource,
348 make_scoped_refptr(html_source))); 348 make_scoped_refptr(html_source)));
349 } 349 }
350 350
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gpu_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698