OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "cc/layers/heads_up_display_layer_impl.h" | 9 #include "cc/layers/heads_up_display_layer_impl.h" |
9 #include "cc/test/fake_layer_tree_host_impl.h" | 10 #include "cc/test/fake_layer_tree_host_impl.h" |
10 #include "cc/test/geometry_test_utils.h" | 11 #include "cc/test/geometry_test_utils.h" |
11 #include "cc/test/layer_test_common.h" | 12 #include "cc/test/layer_test_common.h" |
12 #include "cc/test/layer_tree_settings_for_testing.h" | 13 #include "cc/test/layer_tree_settings_for_testing.h" |
13 #include "cc/trees/clip_node.h" | 14 #include "cc/trees/clip_node.h" |
14 #include "cc/trees/draw_property_utils.h" | 15 #include "cc/trees/draw_property_utils.h" |
15 #include "cc/trees/layer_tree_host_common.h" | 16 #include "cc/trees/layer_tree_host_common.h" |
16 #include "cc/trees/layer_tree_host_impl.h" | 17 #include "cc/trees/layer_tree_host_impl.h" |
17 #include "cc/trees/mutable_properties.h" | 18 #include "cc/trees/mutable_properties.h" |
(...skipping 2388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2406 auto weak_promise = promise->AsWeakPtr(); | 2407 auto weak_promise = promise->AsWeakPtr(); |
2407 host_impl().active_tree()->QueueSwapPromise(std::move(promise)); | 2408 host_impl().active_tree()->QueueSwapPromise(std::move(promise)); |
2408 host_impl().active_tree()->BreakSwapPromises( | 2409 host_impl().active_tree()->BreakSwapPromises( |
2409 SwapPromise::DidNotSwapReason::SWAP_FAILS); | 2410 SwapPromise::DidNotSwapReason::SWAP_FAILS); |
2410 EXPECT_FALSE(weak_promise); | 2411 EXPECT_FALSE(weak_promise); |
2411 } | 2412 } |
2412 } | 2413 } |
2413 | 2414 |
2414 } // namespace | 2415 } // namespace |
2415 } // namespace cc | 2416 } // namespace cc |
OLD | NEW |