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

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

Issue 12632009: Merge 186345 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 years, 9 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 | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/gpu/gpu_info_collector_win.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) 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 #include "content/browser/gpu/gpu_internals_ui.h" 5 #include "content/browser/gpu/gpu_internals_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 "GPU0", GPUDeviceToString(gpu_info.gpu))); 119 "GPU0", GPUDeviceToString(gpu_info.gpu)));
120 for (size_t i = 0; i < gpu_info.secondary_gpus.size(); ++i) { 120 for (size_t i = 0; i < gpu_info.secondary_gpus.size(); ++i) {
121 basic_info->Append(NewDescriptionValuePair( 121 basic_info->Append(NewDescriptionValuePair(
122 base::StringPrintf("GPU%d", static_cast<int>(i + 1)), 122 base::StringPrintf("GPU%d", static_cast<int>(i + 1)),
123 GPUDeviceToString(gpu_info.secondary_gpus[i]))); 123 GPUDeviceToString(gpu_info.secondary_gpus[i])));
124 } 124 }
125 basic_info->Append(NewDescriptionValuePair( 125 basic_info->Append(NewDescriptionValuePair(
126 "Optimus", Value::CreateBooleanValue(gpu_info.optimus))); 126 "Optimus", Value::CreateBooleanValue(gpu_info.optimus)));
127 basic_info->Append(NewDescriptionValuePair( 127 basic_info->Append(NewDescriptionValuePair(
128 "AMD switchable", Value::CreateBooleanValue(gpu_info.amd_switchable))); 128 "AMD switchable", Value::CreateBooleanValue(gpu_info.amd_switchable)));
129 if (gpu_info.display_link_version.IsValid()) {
130 basic_info->Append(NewDescriptionValuePair(
131 "DisplayLink Version", gpu_info.display_link_version.GetString()));
132 }
129 basic_info->Append(NewDescriptionValuePair("Driver vendor", 133 basic_info->Append(NewDescriptionValuePair("Driver vendor",
130 gpu_info.driver_vendor)); 134 gpu_info.driver_vendor));
131 basic_info->Append(NewDescriptionValuePair("Driver version", 135 basic_info->Append(NewDescriptionValuePair("Driver version",
132 gpu_info.driver_version)); 136 gpu_info.driver_version));
133 basic_info->Append(NewDescriptionValuePair("Driver date", 137 basic_info->Append(NewDescriptionValuePair("Driver date",
134 gpu_info.driver_date)); 138 gpu_info.driver_date));
135 basic_info->Append(NewDescriptionValuePair("Pixel shader version", 139 basic_info->Append(NewDescriptionValuePair("Pixel shader version",
136 gpu_info.pixel_shader_version)); 140 gpu_info.pixel_shader_version));
137 basic_info->Append(NewDescriptionValuePair("Vertex shader version", 141 basic_info->Append(NewDescriptionValuePair("Vertex shader version",
138 gpu_info.vertex_shader_version)); 142 gpu_info.vertex_shader_version));
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 : WebUIController(web_ui) { 621 : WebUIController(web_ui) {
618 web_ui->AddMessageHandler(new GpuMessageHandler()); 622 web_ui->AddMessageHandler(new GpuMessageHandler());
619 623
620 // Set up the chrome://gpu/ source. 624 // Set up the chrome://gpu/ source.
621 BrowserContext* browser_context = 625 BrowserContext* browser_context =
622 web_ui->GetWebContents()->GetBrowserContext(); 626 web_ui->GetWebContents()->GetBrowserContext();
623 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); 627 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource());
624 } 628 }
625 629
626 } // namespace content 630 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/gpu/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698