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

Unified Diff: cc/scheduler/scheduler.cc

Issue 18939003: Webview fixes for Use BeginFrameArgs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | 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.cc
diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc
index 74bce9ca09fc5e58859780c15c16ec1c4274088f..fc6433301ae5c206be31d1715e2ef88776107685 100644
--- a/cc/scheduler/scheduler.cc
+++ b/cc/scheduler/scheduler.cc
@@ -184,6 +184,11 @@ void Scheduler::BeginFrame(const BeginFrameArgs& args) {
}
void Scheduler::PostBeginFrameDeadline(base::TimeTicks deadline) {
+ if (settings_.using_synchronous_renderer_compositor) {
+ OnBeginFrameDeadline();
+ return;
+ }
+
begin_frame_deadline_closure_.Cancel();
begin_frame_deadline_closure_.Reset(
base::Bind(&Scheduler::OnBeginFrameDeadline, weak_factory_.GetWeakPtr()));
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698