| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index b0cd3282879e9ee1e08ff835e960174fe2743580..e2b98580cbd08b983b4ed9663eac9d57274663ea 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -433,9 +433,18 @@ void ThreadProxy::CheckOutputSurfaceStatusOnImplThread() {
|
| impl().scheduler->DidLoseOutputSurface();
|
| }
|
|
|
| -void ThreadProxy::OnSwapBuffersCompleteOnImplThread() {
|
| - TRACE_EVENT0("cc", "ThreadProxy::OnSwapBuffersCompleteOnImplThread");
|
| +void ThreadProxy::SetMaxSwapsPendingOnImplThread(int max) {
|
| + impl().scheduler->SetMaxSwapsPending(max);
|
| +}
|
| +
|
| +void ThreadProxy::DidSwapBuffersOnImplThread() {
|
| + impl().scheduler->DidSwapBuffers();
|
| +}
|
| +
|
| +void ThreadProxy::DidSwapBuffersCompleteOnImplThread() {
|
| + TRACE_EVENT0("cc", "ThreadProxy::DidSwapBuffersCompleteOnImplThread");
|
| DCHECK(IsImplThread());
|
| + impl().scheduler->DidSwapBuffersComplete();
|
| Proxy::MainThreadTaskRunner()->PostTask(
|
| FROM_HERE,
|
| base::Bind(&ThreadProxy::DidCompleteSwapBuffers, main_thread_weak_ptr_));
|
| @@ -1240,10 +1249,10 @@ DrawSwapReadbackResult ThreadProxy::DrawSwapReadbackInternal(
|
| impl().readback_request = NULL;
|
| } else if (draw_frame) {
|
| DCHECK(swap_requested);
|
| - result.did_swap = impl().layer_tree_host_impl->SwapBuffers(frame);
|
| + result.did_request_swap = impl().layer_tree_host_impl->SwapBuffers(frame);
|
|
|
| // We don't know if we have incomplete tiles if we didn't actually swap.
|
| - if (result.did_swap) {
|
| + if (result.did_request_swap) {
|
| DCHECK(!frame.has_no_damage);
|
| SetSwapUsedIncompleteTileOnImplThread(frame.contains_incomplete_tile);
|
| }
|
|
|