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

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: comments from danakj@ Created 5 years, 5 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..eb302d7db1d7a529595f5400f0d0e5baee25e642 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -178,6 +178,9 @@ CreateOverlayCandidateValidator(gfx::AcceleratedWidget widget) {
}
static bool ShouldCreateGpuOutputSurface(ui::Compositor* compositor) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableGpu))
danakj 2015/07/07 23:42:45 Hm, yes.. but I guess it means you have 2 places u
+ return false;
+
#if defined(OS_CHROMEOS)
// Software fallback does not happen on Chrome OS.
return true;
« 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