Index: content/browser/gpu/compositor_util.cc |
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc |
index a40bc8f17e0dd683a1f90ddbb11df0332d9067bf..bcd0f5bbc6e2c03f30ef7f8092c47c2e19a13f37 100644 |
--- a/content/browser/gpu/compositor_util.cc |
+++ b/content/browser/gpu/compositor_util.cc |
@@ -239,10 +239,11 @@ bool IsAsyncWorkerContextEnabled() { |
if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) |
return false; |
- else if (command_line.HasSwitch(switches::kEnableGpuAsyncWorkerContext)) |
- return true; |
- return false; |
+ if (command_line.HasSwitch(switches::kDisableGpuScheduler)) |
+ return false; |
+ |
+ return command_line.HasSwitch(switches::kEnableGpuScheduler); |
} |
bool IsForceGpuRasterizationEnabled() { |