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

Unified Diff: components/scheduler/common/scheduler_switches.cc

Issue 1424053002: Adds a flag to support "Virtual Time" to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Helps if I upload the right files ;) Created 5 years, 2 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: components/scheduler/common/scheduler_switches.cc
diff --git a/components/scheduler/common/scheduler_switches.cc b/components/scheduler/common/scheduler_switches.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f6d7cebc04f9bfcad8d7c5faf9d928f50c12bb76
--- /dev/null
+++ b/components/scheduler/common/scheduler_switches.cc
@@ -0,0 +1,16 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/scheduler/common/scheduler_switches.h"
+
+namespace scheduler {
+namespace switches {
+
+// Enable Virtualized time where the Render thread's time source skips forward
+// to the next scheduled delayed time if there is no more non-delayed work to be
+// done. This switch is intended only for use in headless mode.
Sami 2015/10/30 11:11:20 There's nothing headless-mode specific here so per
alex clarke (OOO till 29th) 2015/10/30 12:12:25 Not entirely no. Timer alignment will still happe
Sami 2015/10/30 14:09:50 Right, so essentially with virtual time there's no
+const char kEnableVirtualizedTime[] = "enable-virtualized-time";
+
+} // namespace switches
+} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698