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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1216303004: content: Allow software compositing on Chrome OS if requested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 673074c04b6d73ab55077a9f0565db1cbdc7a68f..9b52f815570a258783a6ee6d10e028000eaf4e5d 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -253,8 +253,11 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
if (num_attempts > kNumRetriesBeforeSoftwareFallback) {
#if defined(OS_CHROMEOS)
- LOG(FATAL) << "Unable to create a UI graphics context, and cannot use "
- << "software compositing on ChromeOS.";
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableGpu)) {
+ LOG(FATAL) << "Unable to create a UI graphics context, and cannot use "
+ << "software compositing on ChromeOS.";
+ }
#endif
create_gpu_output_surface = false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698