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

Unified Diff: gpu/config/gpu_info.cc

Issue 534043002: Add bits to indicate which parts of GPUInfo are collected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info.cc
diff --git a/gpu/config/gpu_info.cc b/gpu/config/gpu_info.cc
index fd3d8a3fe573f7b5198bab5ddd884d1581c5d5a1..74510482f642910a42f520401d3d71b4576256b6 100644
--- a/gpu/config/gpu_info.cc
+++ b/gpu/config/gpu_info.cc
@@ -30,8 +30,7 @@ GPUInfo::GPUDevice::GPUDevice()
GPUInfo::GPUDevice::~GPUDevice() { }
GPUInfo::GPUInfo()
- : finalized(false),
- optimus(false),
+ : optimus(false),
amd_switchable(false),
lenovo_dcute(false),
adapter_luid(0),
@@ -40,14 +39,20 @@ GPUInfo::GPUInfo()
software_rendering(false),
direct_rendering(true),
sandboxed(false),
- process_crash_count(0) {
+ process_crash_count(0),
+ basic_info_state(kCollectInfoNone),
+#if defined(OS_WIN)
+ context_info_state(kCollectInfoNone),
+ dx_diagnostics_info_state(kCollectInfoNone) {
+#else
+ context_info_state(kCollectInfoNone) {
+#endif
}
GPUInfo::~GPUInfo() { }
void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
struct GPUInfoKnownFields {
- bool finalized;
base::TimeDelta initialization_time;
bool optimus;
bool amd_switchable;
@@ -77,7 +82,10 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
bool direct_rendering;
bool sandboxed;
int process_crash_count;
+ CollectInfoResult basic_info_state;
+ CollectInfoResult context_info_state;
#if defined(OS_WIN)
+ CollectInfoResult dx_diagnostics_info_state;
DxDiagNode dx_diagnostics;
#endif
};
@@ -98,7 +106,6 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
}
enumerator->BeginAuxAttributes();
- enumerator->AddBool("finalized", finalized);
enumerator->AddTimeDeltaInSecondsF("initializationTime",
initialization_time);
enumerator->AddBool("optimus", optimus);
@@ -130,6 +137,11 @@ void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
enumerator->AddBool("directRendering", direct_rendering);
enumerator->AddBool("sandboxed", sandboxed);
enumerator->AddInt("processCrashCount", process_crash_count);
+ enumerator->AddInt("basicInfoState", basic_info_state);
+ enumerator->AddInt("contextInfoState", context_info_state);
+#if defined(OS_WIN)
+ enumerator->AddInt("DxDiagnosticsInfoState", dx_diagnostics_info_state);
+#endif
// TODO(kbr): add dx_diagnostics on Windows.
enumerator->EndAuxAttributes();
}
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698