summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler_settings.h
diff options
context:
space:
mode:
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 06:34:14 +0000
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-12 06:34:14 +0000
commitb511e28eef3da1363d4c749c29d69516632813b0 (patch)
tree3fc6bbec950f7a4cbbeeca49d0d186f4d556b3fa /cc/scheduler/scheduler_settings.h
parent2ef2e275a1a53dd2c434de878d026a76936c51c9 (diff)
downloadchromium_src-b511e28eef3da1363d4c749c29d69516632813b0.zip
chromium_src-b511e28eef3da1363d4c749c29d69516632813b0.tar.gz
chromium_src-b511e28eef3da1363d4c749c29d69516632813b0.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 Review URL: https://codereview.chromium.org/23907006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler/scheduler_settings.h')
-rw-r--r--cc/scheduler/scheduler_settings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/scheduler/scheduler_settings.h b/cc/scheduler/scheduler_settings.h
index 66d276c..4b2f664 100644
--- a/cc/scheduler/scheduler_settings.h
+++ b/cc/scheduler/scheduler_settings.h
@@ -14,6 +14,8 @@ class CC_EXPORT SchedulerSettings {
SchedulerSettings();
~SchedulerSettings();
+ bool main_frame_before_draw_enabled;
+ bool main_frame_before_activation_enabled;
bool impl_side_painting;
bool timeout_and_draw_when_animation_checkerboards;
int maximum_number_of_failed_draws_before_draw_is_forced_;