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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 819643004: Cache viewport rect for tile priority in UpdateTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 041c5fea5186105c11c86371cea45ed66c3ee206..ff9e89616e3999be5305079d95c6902eb2cc52a1 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -561,6 +561,11 @@ bool LayerTreeImpl::UpdateDrawProperties() {
LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_);
size_t layers_updated_count = 0;
bool tile_priorities_updated = false;
+ if (!resourceless_software_draw) {
+ viewport_rect_for_tile_priority_ =
+ layer_tree_host_impl_->ViewportRectForTilePriority();
boliu 2015/01/15 01:36:05 I guess this is ok now, but probably safer to move
hush (inactive) 2015/01/15 01:51:59 Yes. Done.
+ }
+
for (LayerIteratorType it =
LayerIteratorType::Begin(&render_surface_layer_list_);
it != end;
@@ -818,7 +823,7 @@ gfx::Size LayerTreeImpl::DrawViewportSize() const {
}
const gfx::Rect LayerTreeImpl::ViewportRectForTilePriority() const {
- return layer_tree_host_impl_->ViewportRectForTilePriority();
+ return viewport_rect_for_tile_priority_;
}
scoped_ptr<ScrollbarAnimationController>
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | cc/trees/layer_tree_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698