Index: cc/trees/single_thread_proxy.cc |
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
index b6084bc0f6705b3f9a1a22dce3f2c0f2aefebb42..8a06dd2e1315a086ac18690677d543ebe58f5d7b 100644 |
--- a/cc/trees/single_thread_proxy.cc |
+++ b/cc/trees/single_thread_proxy.cc |
@@ -540,6 +540,11 @@ void SingleThreadProxy::SetEstimatedParentDrawTime(base::TimeDelta draw_time) { |
scheduler_on_impl_thread_->SetEstimatedParentDrawTime(draw_time); |
} |
+void SingleThreadProxy::SetMaxSwapsPendingOnImplThread(int max) { |
+ if (scheduler_on_impl_thread_) |
+ scheduler_on_impl_thread_->SetMaxSwapsPending(max); |
+} |
+ |
void SingleThreadProxy::DidSwapBuffersOnImplThread() { |
TRACE_EVENT0("cc", "SingleThreadProxy::DidSwapBuffersOnImplThread"); |
if (scheduler_on_impl_thread_) |