| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 389f296e413e1605a5072ddf04241e642672581c..243e6033ea0ddc8959cad5bdb67b2d40135e8cf6 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -188,6 +188,21 @@ void ThreadProxy::SetVisibleOnImplThread(CompletionEvent* completion,
|
| completion->Signal();
|
| }
|
|
|
| +void ThreadProxy::SetThrottleFrameProduction(bool throttle) {
|
| + TRACE_EVENT1("cc", "ThreadProxy::SetThrottleFrameProduction", "throttle",
|
| + throttle);
|
| + Proxy::ImplThreadTaskRunner()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(&ThreadProxy::SetThrottleFrameProductionOnImplThread,
|
| + impl_thread_weak_ptr_, throttle));
|
| +}
|
| +
|
| +void ThreadProxy::SetThrottleFrameProductionOnImplThread(bool throttle) {
|
| + TRACE_EVENT1("cc", "ThreadProxy::SetThrottleFrameProductionOnImplThread",
|
| + "throttle", throttle);
|
| + impl().scheduler->SetThrottleFrameProduction(throttle);
|
| +}
|
| +
|
| void ThreadProxy::DidLoseOutputSurface() {
|
| TRACE_EVENT0("cc", "ThreadProxy::DidLoseOutputSurface");
|
| DCHECK(IsMainThread());
|
|
|