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

Unified Diff: cc/scheduler/scheduler_state_machine.h

Issue 1229573004: cc: Simplify and rename MainThreadIsInHighLatency logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ignoreFirstDraws4
Patch Set: Update naming and conventions Created 5 years, 5 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: cc/scheduler/scheduler_state_machine.h
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index cf1ab8c5568d1ac6d642fbf804a50b7621b7ac99..560c575e5ecc8ee60e81f0fdfb200b2325adc493 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -143,7 +143,7 @@ class CC_EXPORT SchedulerStateMachine {
// If the main thread didn't manage to produce a new frame in time for the
// impl thread to draw, it is in a high latency mode.
- bool MainThreadIsInHighLatencyMode() const;
+ bool main_thread_missed_last_deadline() const;
bool SwapThrottled() const;
@@ -337,6 +337,7 @@ class CC_EXPORT SchedulerStateMachine {
bool active_tree_needs_first_draw_;
bool did_create_and_initialize_first_output_surface_;
bool impl_latency_takes_priority_;
+ bool main_thread_missed_last_deadline_;
bool skip_next_begin_main_frame_to_reduce_latency_;
bool continuous_painting_;
bool children_need_begin_frames_;

Powered by Google App Engine
This is Rietveld 408576698