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

Unified Diff: cc/scheduler/scheduler_state_machine.cc

Issue 27200003: Trigger deadline immediately after an aborted main thread commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler_state_machine.cc
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 641c80b012510c4162021f89ca68dae99ecec69a..19e413775cd657d6568d9b79422e0f5fab6f7e0e 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -880,6 +880,9 @@ bool SchedulerStateMachine::ShouldTriggerBeginFrameDeadlineEarly() const {
if (readback_state_ != READBACK_STATE_IDLE)
return false;
+ if (commit_state_ == COMMIT_STATE_IDLE && needs_redraw_)
brianderson 2013/10/15 10:00:23 Can you reorganize this method so that it checks t
+ return true;
+
// TODO(brianderson): This should take into account multiple commit sources.
return begin_frame_state_ == BEGIN_FRAME_STATE_INSIDE_BEGIN_FRAME &&
active_tree_needs_first_draw_;
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698