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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 522903002: cc: Be less aggressive about scheduling for scroll handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed scheduler part. Created 6 years, 3 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index 18ee721b2d3e21439716ac376da5dba73dae5f4d..a4856278ecfc15b6252e5d68dedda9e76fc12dd3 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -177,10 +177,12 @@ class CC_EXPORT SchedulerStateMachine {
// Notification from the OutputSurface that a swap has been consumed.
void DidSwapBuffersComplete();
- // Indicates whether to prioritize animation smoothness over new content
- // activation.
- void SetSmoothnessTakesPriority(bool smoothness_takes_priority);
- bool smoothness_takes_priority() const { return smoothness_takes_priority_; }
+ // Indicates whether to prioritize impl thread latency (i.e., animation
+ // smoothness) over new content activation.
+ void SetImplLatencyTakesPriority(bool impl_latency_takes_priority);
+ bool impl_latency_takes_priority() const {
+ return impl_latency_takes_priority_;
+ }
// Indicates whether ACTION_DRAW_AND_SWAP_IF_POSSIBLE drew to the screen.
void DidDrawIfPossibleCompleted(DrawResult result);
@@ -307,7 +309,7 @@ class CC_EXPORT SchedulerStateMachine {
bool pending_tree_is_ready_for_activation_;
bool active_tree_needs_first_draw_;
bool did_create_and_initialize_first_output_surface_;
- bool smoothness_takes_priority_;
+ bool impl_latency_takes_priority_;
bool skip_next_begin_main_frame_to_reduce_latency_;
bool skip_begin_main_frame_to_reduce_latency_;
bool continuous_painting_;
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698