| 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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 void LayerTreeHostImpl::EvictTexturesForTesting() { | 1210 void LayerTreeHostImpl::EvictTexturesForTesting() { |
| 1211 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0)); | 1211 UpdateTileManagerMemoryPolicy(ManagedMemoryPolicy(0)); |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) { | 1214 void LayerTreeHostImpl::BlockNotifyReadyToActivateForTesting(bool block) { |
| 1215 NOTREACHED(); | 1215 NOTREACHED(); |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 void LayerTreeHostImpl::BlockImplSideInvalidationRequestsForTesting( |
| 1219 bool block) { |
| 1220 NOTREACHED(); |
| 1221 } |
| 1222 |
| 1218 void LayerTreeHostImpl::ResetTreesForTesting() { | 1223 void LayerTreeHostImpl::ResetTreesForTesting() { |
| 1219 if (active_tree_) | 1224 if (active_tree_) |
| 1220 active_tree_->DetachLayers(); | 1225 active_tree_->DetachLayers(); |
| 1221 active_tree_ = | 1226 active_tree_ = |
| 1222 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(), | 1227 base::MakeUnique<LayerTreeImpl>(this, active_tree()->page_scale_factor(), |
| 1223 active_tree()->top_controls_shown_ratio(), | 1228 active_tree()->top_controls_shown_ratio(), |
| 1224 active_tree()->elastic_overscroll()); | 1229 active_tree()->elastic_overscroll()); |
| 1225 active_tree_->property_trees()->is_active = true; | 1230 active_tree_->property_trees()->is_active = true; |
| 1226 if (pending_tree_) | 1231 if (pending_tree_) |
| 1227 pending_tree_->DetachLayers(); | 1232 pending_tree_->DetachLayers(); |
| (...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4138 worker_context_visibility_ = | 4143 worker_context_visibility_ = |
| 4139 worker_context->CacheController()->ClientBecameVisible(); | 4144 worker_context->CacheController()->ClientBecameVisible(); |
| 4140 } else { | 4145 } else { |
| 4141 worker_context->CacheController()->ClientBecameNotVisible( | 4146 worker_context->CacheController()->ClientBecameNotVisible( |
| 4142 std::move(worker_context_visibility_)); | 4147 std::move(worker_context_visibility_)); |
| 4143 } | 4148 } |
| 4144 } | 4149 } |
| 4145 } | 4150 } |
| 4146 | 4151 |
| 4147 } // namespace cc | 4152 } // namespace cc |
| OLD | NEW |