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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 194303002: Blacklist GLX indirect rendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 9 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
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)

Powered by Google App Engine
This is Rietveld 408576698