Index: cc/trees/single_thread_proxy.cc |
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc |
index 671a53b15e5e9ef89c9861ccbd5431ac6013cf97..ec11502aadd63f17e06cfab5cabd45d6935c300e 100644 |
--- a/cc/trees/single_thread_proxy.cc |
+++ b/cc/trees/single_thread_proxy.cc |
@@ -392,7 +392,12 @@ void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) { |
// the swap buffers will execute first. |
BlockingTaskRunner::CapturePostTasks blocked; |
- layer_tree_host_impl_->SwapBuffers(frame); |
+ bool did_swap = layer_tree_host_impl_->SwapBuffers(frame); |
+ if (did_swap) |
+ layer_tree_host_impl_->active_tree()->FinishSwapPromise(); |
danakj
2013/11/13 23:22:09
Why doesn't LTHI do this directly inside SwapBuffe
Yufeng Shen (Slow to review)
2013/11/14 22:09:55
Done.
|
+ else |
+ layer_tree_host_impl_->active_tree()->BreakSwapPromise( |
+ SwapPromise::SWAP_FAILS); |
} |
DidSwapFrame(); |
} |