OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "cc/resources/prioritized_resource_manager.h" | 33 #include "cc/resources/prioritized_resource_manager.h" |
34 #include "cc/resources/ui_resource_request.h" | 34 #include "cc/resources/ui_resource_request.h" |
35 #include "cc/trees/layer_tree_host_client.h" | 35 #include "cc/trees/layer_tree_host_client.h" |
36 #include "cc/trees/layer_tree_host_common.h" | 36 #include "cc/trees/layer_tree_host_common.h" |
37 #include "cc/trees/layer_tree_host_impl.h" | 37 #include "cc/trees/layer_tree_host_impl.h" |
38 #include "cc/trees/layer_tree_impl.h" | 38 #include "cc/trees/layer_tree_impl.h" |
39 #include "cc/trees/occlusion_tracker.h" | 39 #include "cc/trees/occlusion_tracker.h" |
40 #include "cc/trees/single_thread_proxy.h" | 40 #include "cc/trees/single_thread_proxy.h" |
41 #include "cc/trees/thread_proxy.h" | 41 #include "cc/trees/thread_proxy.h" |
42 #include "cc/trees/tree_synchronizer.h" | 42 #include "cc/trees/tree_synchronizer.h" |
43 #include "ui/gfx/size_conversions.h" | 43 #include "ui/gfx/geometry/size_conversions.h" |
44 | 44 |
45 namespace { | 45 namespace { |
46 static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number; | 46 static base::StaticAtomicSequenceNumber s_layer_tree_host_sequence_number; |
47 } | 47 } |
48 | 48 |
49 namespace cc { | 49 namespace cc { |
50 | 50 |
51 RendererCapabilities::RendererCapabilities(ResourceFormat best_texture_format, | 51 RendererCapabilities::RendererCapabilities(ResourceFormat best_texture_format, |
52 bool allow_partial_texture_updates, | 52 bool allow_partial_texture_updates, |
53 int max_texture_size, | 53 int max_texture_size, |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 swap_promise_list_.push_back(swap_promise.Pass()); | 1340 swap_promise_list_.push_back(swap_promise.Pass()); |
1341 } | 1341 } |
1342 | 1342 |
1343 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { | 1343 void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) { |
1344 for (size_t i = 0; i < swap_promise_list_.size(); i++) | 1344 for (size_t i = 0; i < swap_promise_list_.size(); i++) |
1345 swap_promise_list_[i]->DidNotSwap(reason); | 1345 swap_promise_list_[i]->DidNotSwap(reason); |
1346 swap_promise_list_.clear(); | 1346 swap_promise_list_.clear(); |
1347 } | 1347 } |
1348 | 1348 |
1349 } // namespace cc | 1349 } // namespace cc |
OLD | NEW |