summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metrics_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/metrics/metrics_log.cc')
-rw-r--r--chrome/browser/metrics/metrics_log.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index abea0af..2f9253e 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -19,6 +19,7 @@
#include "chrome/app/chrome_version_info.h"
#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/gpu_process_host.h"
#include "chrome/browser/pref_service.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/pref_names.h"
@@ -295,6 +296,14 @@ void MetricsLog::RecordEnvironment(
}
{
+ OPEN_ELEMENT_FOR_SCOPE("gpu");
+ WriteIntAttribute("vendorid",
+ GpuProcessHost::Get()->gpu_info().vendor_id());
+ WriteIntAttribute("deviceid",
+ GpuProcessHost::Get()->gpu_info().device_id());
+ }
+
+ {
OPEN_ELEMENT_FOR_SCOPE("display");
int width = 0;
int height = 0;