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

Unified Diff: cc/scheduler/scheduler.cc

Issue 17587014: cc: Fix infinite BeginFrame that Scheduler causes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 8329e8e9601b823f1293d842f7e55ed4fe7a40fe..ccd6aed78e85cb271c9725cf09eff76080ad1b2d 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -162,6 +162,10 @@ void Scheduler::SetupNextBeginFrameIfNeeded() {
client_->SetNeedsBeginFrameOnImplThread(true);
return;
}
+
+ client_->SetNeedsBeginFrameOnImplThread(needs_begin_frame_to_draw);
brianderson 2013/06/24 18:04:49 We should avoid disabling SetNeedsBeginFrame until
+ if (safe_to_expect_begin_frame_)
+ last_set_needs_begin_frame_ = needs_begin_frame_to_draw;
}
void Scheduler::BeginFrame(const BeginFrameArgs& args) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698