| 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 #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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 basic_info->Append(NewDescriptionValuePair("GL version", | 149 basic_info->Append(NewDescriptionValuePair("GL version", |
| 150 gpu_info.gl_version)); | 150 gpu_info.gl_version)); |
| 151 basic_info->Append(NewDescriptionValuePair("GL_VENDOR", | 151 basic_info->Append(NewDescriptionValuePair("GL_VENDOR", |
| 152 gpu_info.gl_vendor)); | 152 gpu_info.gl_vendor)); |
| 153 basic_info->Append(NewDescriptionValuePair("GL_RENDERER", | 153 basic_info->Append(NewDescriptionValuePair("GL_RENDERER", |
| 154 gpu_info.gl_renderer)); | 154 gpu_info.gl_renderer)); |
| 155 basic_info->Append(NewDescriptionValuePair("GL_VERSION", | 155 basic_info->Append(NewDescriptionValuePair("GL_VERSION", |
| 156 gpu_info.gl_version_string)); | 156 gpu_info.gl_version_string)); |
| 157 basic_info->Append(NewDescriptionValuePair("GL_EXTENSIONS", | 157 basic_info->Append(NewDescriptionValuePair("GL_EXTENSIONS", |
| 158 gpu_info.gl_extensions)); | 158 gpu_info.gl_extensions)); |
| 159 basic_info->Append(NewDescriptionValuePair("Window system binding vendor", |
| 160 gpu_info.gl_ws_vendor)); |
| 161 basic_info->Append(NewDescriptionValuePair("Window system binding version", |
| 162 gpu_info.gl_ws_version)); |
| 163 basic_info->Append(NewDescriptionValuePair("Window system binding extensions", |
| 164 gpu_info.gl_ws_extensions)); |
| 159 | 165 |
| 160 base::DictionaryValue* info = new base::DictionaryValue(); | 166 base::DictionaryValue* info = new base::DictionaryValue(); |
| 161 info->Set("basic_info", basic_info); | 167 info->Set("basic_info", basic_info); |
| 162 | 168 |
| 163 #if defined(OS_WIN) | 169 #if defined(OS_WIN) |
| 164 base::ListValue* perf_info = new base::ListValue(); | 170 base::ListValue* perf_info = new base::ListValue(); |
| 165 perf_info->Append(NewDescriptionValuePair( | 171 perf_info->Append(NewDescriptionValuePair( |
| 166 "Graphics", | 172 "Graphics", |
| 167 base::StringPrintf("%.1f", gpu_info.performance_stats.graphics))); | 173 base::StringPrintf("%.1f", gpu_info.performance_stats.graphics))); |
| 168 perf_info->Append(NewDescriptionValuePair( | 174 perf_info->Append(NewDescriptionValuePair( |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 : WebUIController(web_ui) { | 651 : WebUIController(web_ui) { |
| 646 web_ui->AddMessageHandler(new GpuMessageHandler()); | 652 web_ui->AddMessageHandler(new GpuMessageHandler()); |
| 647 | 653 |
| 648 // Set up the chrome://gpu/ source. | 654 // Set up the chrome://gpu/ source. |
| 649 BrowserContext* browser_context = | 655 BrowserContext* browser_context = |
| 650 web_ui->GetWebContents()->GetBrowserContext(); | 656 web_ui->GetWebContents()->GetBrowserContext(); |
| 651 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 657 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
| 652 } | 658 } |
| 653 | 659 |
| 654 } // namespace content | 660 } // namespace content |
| OLD | NEW |