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

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

Issue 690063002: cc: Do not ignore layers without valid priorities during eviction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase: CreateWith{Pile => RasterSource} Created 6 years, 1 month 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/test/fake_picture_layer_tiling_client.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // When a SwapPromiseMonitor is created on the impl thread, it calls 462 // When a SwapPromiseMonitor is created on the impl thread, it calls
463 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl. 463 // InsertSwapPromiseMonitor() to register itself with LayerTreeHostImpl.
464 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor() 464 // When the monitor is destroyed, it calls RemoveSwapPromiseMonitor()
465 // to unregister itself. 465 // to unregister itself.
466 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); 466 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor);
467 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); 467 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor);
468 468
469 void RegisterPictureLayerImpl(PictureLayerImpl* layer); 469 void RegisterPictureLayerImpl(PictureLayerImpl* layer);
470 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); 470 void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
471 471
472 void GetPictureLayerImplPairs( 472 void GetPictureLayerImplPairs(std::vector<PictureLayerImpl::Pair>* layers,
473 std::vector<PictureLayerImpl::Pair>* layers) const; 473 bool need_valid_tile_priorities) const;
474 474
475 void SetTopControlsLayoutHeight(float height); 475 void SetTopControlsLayoutHeight(float height);
476 476
477 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } 477 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; }
478 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 478 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
479 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 479 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
480 480
481 // Only valid for synchronous (non-scheduled) single-threaded case. 481 // Only valid for synchronous (non-scheduled) single-threaded case.
482 void SynchronouslyInitializeAllTiles(); 482 void SynchronouslyInitializeAllTiles();
483 483
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 708 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
709 709
710 bool requires_high_res_to_draw_; 710 bool requires_high_res_to_draw_;
711 711
712 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 712 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
713 }; 713 };
714 714
715 } // namespace cc 715 } // namespace cc
716 716
717 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 717 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698