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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 959493003: Revert of Use Surfaces on Windows, Linux, and Mac OS (try #5) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 0b2460d45f094f843e1845a58eb21bc6fcaf09d5..9606eb56756506d28b3b9df1bf77fabe5f3cd933 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -310,19 +310,12 @@
bool UseSurfacesEnabled() {
#if defined(OS_ANDROID)
return false;
+#else
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+
+ return command_line.HasSwitch(switches::kUseSurfaces);
#endif
- bool enabled = false;
-#if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX)
- enabled = true;
-#endif
-
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
-
- // Flags override.
- enabled |= command_line.HasSwitch(switches::kUseSurfaces);
- enabled &= !command_line.HasSwitch(switches::kDisableSurfaces);
- return enabled;
}
int GpuRasterizationMSAASampleCount() {
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698