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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: fix test dcheck failures Created 3 years, 7 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/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() {
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698