Index: cc/trees/layer_tree_impl.cc |
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc |
index 0f0a4da885297f60b68da03d91be19dcaf6303dd..cff7fbe4744b58755f3dfbd8cf2e13e51398f100 100644 |
--- a/cc/trees/layer_tree_impl.cc |
+++ b/cc/trees/layer_tree_impl.cc |
@@ -425,7 +425,11 @@ void LayerTreeImpl::PushPropertiesTo(LayerTreeImpl* target_tree) { |
next_activation_forces_redraw_ = false; |
} |
- target_tree->PassSwapPromises(std::move(swap_promise_list_)); |
+ { |
+ std::vector<std::unique_ptr<SwapPromise>> to_pass; |
+ swap_promise_list_.swap(to_pass); |
+ target_tree->PassSwapPromises(std::move(to_pass)); |
+ } |
target_tree->set_top_controls_shrink_blink_size( |
top_controls_shrink_blink_size_); |