| 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 "chrome/browser/gpu_util.h" | 5 #include "chrome/browser/gpu_util.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 ListValue* basic_info = new ListValue(); | 334 ListValue* basic_info = new ListValue(); |
| 335 basic_info->Append(NewDescriptionValuePair( | 335 basic_info->Append(NewDescriptionValuePair( |
| 336 "Initialization time", | 336 "Initialization time", |
| 337 base::Int64ToString(gpu_info.initialization_time.InMilliseconds()))); | 337 base::Int64ToString(gpu_info.initialization_time.InMilliseconds()))); |
| 338 basic_info->Append(NewDescriptionValuePair( | 338 basic_info->Append(NewDescriptionValuePair( |
| 339 "Vendor Id", base::StringPrintf("0x%04x", gpu_info.vendor_id))); | 339 "Vendor Id", base::StringPrintf("0x%04x", gpu_info.vendor_id))); |
| 340 basic_info->Append(NewDescriptionValuePair( | 340 basic_info->Append(NewDescriptionValuePair( |
| 341 "Device Id", base::StringPrintf("0x%04x", gpu_info.device_id))); | 341 "Device Id", base::StringPrintf("0x%04x", gpu_info.device_id))); |
| 342 basic_info->Append(NewDescriptionValuePair( | 342 basic_info->Append(NewDescriptionValuePair( |
| 343 "Optimus", Value::CreateBooleanValue(gpu_info.optimus))); | 343 "Optimus", Value::CreateBooleanValue(gpu_info.optimus))); |
| 344 basic_info->Append(NewDescriptionValuePair( |
| 345 "AMD switchable", Value::CreateBooleanValue(gpu_info.amd_switchable))); |
| 344 basic_info->Append(NewDescriptionValuePair("Driver vendor", | 346 basic_info->Append(NewDescriptionValuePair("Driver vendor", |
| 345 gpu_info.driver_vendor)); | 347 gpu_info.driver_vendor)); |
| 346 basic_info->Append(NewDescriptionValuePair("Driver version", | 348 basic_info->Append(NewDescriptionValuePair("Driver version", |
| 347 gpu_info.driver_version)); | 349 gpu_info.driver_version)); |
| 348 basic_info->Append(NewDescriptionValuePair("Driver date", | 350 basic_info->Append(NewDescriptionValuePair("Driver date", |
| 349 gpu_info.driver_date)); | 351 gpu_info.driver_date)); |
| 350 basic_info->Append(NewDescriptionValuePair("Pixel shader version", | 352 basic_info->Append(NewDescriptionValuePair("Pixel shader version", |
| 351 gpu_info.pixel_shader_version)); | 353 gpu_info.pixel_shader_version)); |
| 352 basic_info->Append(NewDescriptionValuePair("Vertex shader version", | 354 basic_info->Append(NewDescriptionValuePair("Vertex shader version", |
| 353 gpu_info.vertex_shader_version)); | 355 gpu_info.vertex_shader_version)); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 kGpuBlacklistFeatureHistogramNamesWin[i], | 469 kGpuBlacklistFeatureHistogramNamesWin[i], |
| 468 1, kNumWinSubVersions * kGpuFeatureNumStatus, | 470 1, kNumWinSubVersions * kGpuFeatureNumStatus, |
| 469 kNumWinSubVersions * kGpuFeatureNumStatus + 1, | 471 kNumWinSubVersions * kGpuFeatureNumStatus + 1, |
| 470 base::Histogram::kUmaTargetedHistogramFlag); | 472 base::Histogram::kUmaTargetedHistogramFlag); |
| 471 histogram_pointer->Add(GetGpuBlacklistHistogramValueWin(value)); | 473 histogram_pointer->Add(GetGpuBlacklistHistogramValueWin(value)); |
| 472 #endif | 474 #endif |
| 473 } | 475 } |
| 474 } | 476 } |
| 475 | 477 |
| 476 } // namespace gpu_util; | 478 } // namespace gpu_util; |
| OLD | NEW |