summaryrefslogtreecommitdiffstats
path: root/cc/base/switches.cc
diff options
context:
space:
mode:
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 21:58:22 +0000
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 21:58:22 +0000
commit0c7a561ae2ea208ba1103d9cdab6c3ee4264c8b7 (patch)
treec93b244a447ce963d68c22175047ed7aa0777304 /cc/base/switches.cc
parent718e922a6d41e4465a11ac9536240878394c1626 (diff)
downloadchromium_src-0c7a561ae2ea208ba1103d9cdab6c3ee4264c8b7.zip
chromium_src-0c7a561ae2ea208ba1103d9cdab6c3ee4264c8b7.tar.gz
chromium_src-0c7a561ae2ea208ba1103d9cdab6c3ee4264c8b7.tar.bz2
cc: Allow sending BeginMainFrame before draw or activation
BeginMainFrame before draw: Enabled by default because of concurrency benefits. When main thread painting, this will block the main thread from finishing the commit until the active tree has been drawn. When impl side painting, this does not block the main thread. The following flag will disable sending BeginMainFrame to the main thread before we draw the previous commit: --disable-main-frame-before-draw BeginMainFrame before activation: Disabled by default because of latency concerns. This applies only when impl-side-painting is enabled and will cause the main thread to block finishing the commit until the pending tree is activated. The following flags control whether BeginMainFrame is sent to the main thread before or after the previous commit has activated: --enable-main-frame-before-activation --disable-main-frame-before-activation BUG=293941 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256454 Review URL: https://codereview.chromium.org/23907006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/base/switches.cc')
-rw-r--r--cc/base/switches.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc
index 4cff4d2..0731598 100644
--- a/cc/base/switches.cc
+++ b/cc/base/switches.cc
@@ -15,6 +15,19 @@ const char kDisableThreadedAnimation[] = "disable-threaded-animation";
const char kDisableCompositedAntialiasing[] =
"disable-composited-antialiasing";
+// Disables sending the next BeginMainFrame before the previous commit has
+// drawn.
+const char kDisableMainFrameBeforeDraw[] = "disable-main-frame-before-draw";
+
+// Disables sending the next BeginMainFrame before the previous commit
+// activates. Overrides the kEnableMainFrameBeforeActivation flag.
+const char kDisableMainFrameBeforeActivation[] =
+ "disable-main-frame-before-activation";
+
+// Enables sending the next BeginMainFrame before the previous commit activates.
+const char kEnableMainFrameBeforeActivation[] =
+ "enable-main-frame-before-activation";
+
const char kEnableTopControlsPositionCalculation[] =
"enable-top-controls-position-calculation";