Index: content/gpu/gpu_child_thread.cc |
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc |
index 56614c376e7588a043810950770b87903f0efea3..9eea31ae9ed369c5fdfb84f35d888125ed5fc375 100644 |
--- a/content/gpu/gpu_child_thread.cc |
+++ b/content/gpu/gpu_child_thread.cc |
@@ -176,8 +176,19 @@ void GpuChildThread::OnCollectGraphicsInfo() { |
in_browser_process_); |
#endif // OS_WIN |
- if (!gpu::CollectContextGraphicsInfo(&gpu_info_)) |
- VLOG(1) << "gpu::CollectGraphicsInfo failed"; |
+ gpu::CollectInfoResult result = |
+ gpu::CollectContextGraphicsInfo(&gpu_info_); |
+ switch (result) { |
+ case gpu::kCollectInfoFatalFailure: |
+ LOG(ERROR) << "gpu::CollectGraphicsInfo failed (fatal)."; |
+ // TODO(piman): can we signal overall failure? |
+ break; |
+ case gpu::kCollectInfoNonFatalFailure: |
+ VLOG(1) << "gpu::CollectGraphicsInfo failed (non-fatal)."; |
+ break; |
+ case gpu::kCollectInfoSuccess: |
+ break; |
+ } |
GetContentClient()->SetGpuInfo(gpu_info_); |
#if defined(OS_WIN) |