Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 2702433002: Clear renderer compositor trees if new page does not render in 4 seconds (Closed)
Patch Set: Removed a semicolon Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698