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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 } | 1189 } |
1190 | 1190 |
1191 void LayerTreeHostImpl::EvictTexturesForTesting() { | 1191 void LayerTreeHostImpl::EvictTexturesForTesting() { |
1192 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0)); | 1192 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0)); |
1193 } | 1193 } |
1194 | 1194 |
1195 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) { | 1195 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) { |
1196 NOTREACHED(); | 1196 NOTREACHED(); |
1197 } | 1197 } |
1198 | 1198 |
1199 void LayerTreeHostImpl::ResetTreesForTesting() { | 1199 void LayerTreeHostImpl::ResetTrees() { |
1200 if (active_tree_) | 1200 if (active_tree_) |
1201 active_tree_->DetachLayers(); | 1201 active_tree_->DetachLayers(); |
1202 active_tree_ = | 1202 active_tree_ = |
1203 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(), | 1203 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(), |
1204 active_tree()->top_controls_shown_ratio(), | 1204 active_tree()->top_controls_shown_ratio(), |
1205 active_tree()->elastic_overscroll()); | 1205 active_tree()->elastic_overscroll()); |
1206 active_tree_->property_trees()->is_active = true; | 1206 active_tree_->property_trees()->is_active = true; |
1207 if (pending_tree_) | 1207 if (pending_tree_) |
1208 pending_tree_->DetachLayers(); | 1208 pending_tree_->DetachLayers(); |
1209 pending_tree_ = nullptr; | 1209 pending_tree_ = nullptr; |
(...skipping 2880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4090 worker_context_visibility_ = | 4090 worker_context_visibility_ = |
4091 worker_context->CacheController()->ClientBecameVisible(); | 4091 worker_context->CacheController()->ClientBecameVisible(); |
4092 } else { | 4092 } else { |
4093 worker_context->CacheController()->ClientBecameNotVisible( | 4093 worker_context->CacheController()->ClientBecameNotVisible( |
4094 std::move(worker_context_visibility_)); | 4094 std::move(worker_context_visibility_)); |
4095 } | 4095 } |
4096 } | 4096 } |
4097 } | 4097 } |
4098 | 4098 |
4099 } // namespace cc | 4099 } // namespace cc |
OLD | NEW |