OLD | NEW |
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 basic_info->Append(NewDescriptionValuePair("Vertex shader version", | 288 basic_info->Append(NewDescriptionValuePair("Vertex shader version", |
289 VersionNumberToString(gpu_info.vertex_shader_version()))); | 289 VersionNumberToString(gpu_info.vertex_shader_version()))); |
290 basic_info->Append(NewDescriptionValuePair("GL version", | 290 basic_info->Append(NewDescriptionValuePair("GL version", |
291 VersionNumberToString(gpu_info.gl_version()))); | 291 VersionNumberToString(gpu_info.gl_version()))); |
292 basic_info->Append(NewDescriptionValuePair("GL_VENDOR", | 292 basic_info->Append(NewDescriptionValuePair("GL_VENDOR", |
293 gpu_info.gl_vendor())); | 293 gpu_info.gl_vendor())); |
294 basic_info->Append(NewDescriptionValuePair("GL_RENDERER", | 294 basic_info->Append(NewDescriptionValuePair("GL_RENDERER", |
295 gpu_info.gl_renderer())); | 295 gpu_info.gl_renderer())); |
296 basic_info->Append(NewDescriptionValuePair("GL_VERSION", | 296 basic_info->Append(NewDescriptionValuePair("GL_VERSION", |
297 gpu_info.gl_version_string())); | 297 gpu_info.gl_version_string())); |
| 298 basic_info->Append(NewDescriptionValuePair("GL_EXTENSIONS", |
| 299 gpu_info.gl_extensions())); |
298 | 300 |
299 DictionaryValue* info = new DictionaryValue(); | 301 DictionaryValue* info = new DictionaryValue(); |
300 info->Set("basic_info", basic_info); | 302 info->Set("basic_info", basic_info); |
301 | 303 |
302 if (gpu_info.progress() == GPUInfo::kPartial) { | 304 if (gpu_info.progress() == GPUInfo::kPartial) { |
303 info->SetString("progress", "partial"); | 305 info->SetString("progress", "partial"); |
304 } else { | 306 } else { |
305 info->SetString("progress", "complete"); | 307 info->SetString("progress", "complete"); |
306 } | 308 } |
307 #if defined(OS_WIN) | 309 #if defined(OS_WIN) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 350 |
349 // Set up the chrome://gpu/ source. | 351 // Set up the chrome://gpu/ source. |
350 BrowserThread::PostTask( | 352 BrowserThread::PostTask( |
351 BrowserThread::IO, FROM_HERE, | 353 BrowserThread::IO, FROM_HERE, |
352 NewRunnableMethod( | 354 NewRunnableMethod( |
353 ChromeURLDataManager::GetInstance(), | 355 ChromeURLDataManager::GetInstance(), |
354 &ChromeURLDataManager::AddDataSource, | 356 &ChromeURLDataManager::AddDataSource, |
355 make_scoped_refptr(html_source))); | 357 make_scoped_refptr(html_source))); |
356 } | 358 } |
357 | 359 |
OLD | NEW |