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

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

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.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // Evict all textures by enforcing a memory policy with an allocation of 0. 307 // Evict all textures by enforcing a memory policy with an allocation of 0.
308 void EvictTexturesForTesting(); 308 void EvictTexturesForTesting();
309 309
310 // When blocking, this prevents client_->NotifyReadyToActivate() from being 310 // When blocking, this prevents client_->NotifyReadyToActivate() from being
311 // called. When disabled, it calls client_->NotifyReadyToActivate() 311 // called. When disabled, it calls client_->NotifyReadyToActivate()
312 // immediately if any notifications had been blocked while blocking. 312 // immediately if any notifications had been blocked while blocking.
313 virtual void BlockNotifyReadyToActivateForTesting(bool block); 313 virtual void BlockNotifyReadyToActivateForTesting(bool block);
314 314
315 // Resets all of the trees to an empty state. 315 // Resets all of the trees to an empty state.
316 void ResetTreesForTesting(); 316 void ResetTrees();
317 317
318 size_t SourceAnimationFrameNumberForTesting() const; 318 size_t SourceAnimationFrameNumberForTesting() const;
319 319
320 void RegisterScrollbarAnimationController(int scroll_layer_id); 320 void RegisterScrollbarAnimationController(int scroll_layer_id);
321 void UnregisterScrollbarAnimationController(int scroll_layer_id); 321 void UnregisterScrollbarAnimationController(int scroll_layer_id);
322 ScrollbarAnimationController* ScrollbarAnimationControllerForId( 322 ScrollbarAnimationController* ScrollbarAnimationControllerForId(
323 int scroll_layer_id) const; 323 int scroll_layer_id) const;
324 324
325 DrawMode GetDrawMode() const; 325 DrawMode GetDrawMode() const;
326 326
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 822
823 std::unique_ptr<PendingTreeDurationHistogramTimer> 823 std::unique_ptr<PendingTreeDurationHistogramTimer>
824 pending_tree_duration_timer_; 824 pending_tree_duration_timer_;
825 825
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
827 }; 827 };
828 828
829 } // namespace cc 829 } // namespace cc
830 830
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698