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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 8 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 acaf0584a49c84c84fe1f3efb49ba24bb0e72efa..9f94d4d53938e923bce34f4b185e794c4933bc25 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -254,10 +254,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() {

Powered by Google App Engine
This is Rietveld 408576698