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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 736753002: cc: Implement geometry-based tile eviction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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 | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/resources/tiling_set_eviction_queue.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 23351d7a3fba8e0082577ea486a6ab674e69de50..f198fbb5cee048c096af4774454f6e919514f012 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -99,8 +99,10 @@ scoped_ptr<TilingSetEvictionQueue> PictureLayerImpl::CreateEvictionQueue(
TreePriority tree_priority) {
if (!tilings_)
return make_scoped_ptr(new TilingSetEvictionQueue());
- return make_scoped_ptr(
- new TilingSetEvictionQueue(tilings_.get(), tree_priority));
+ bool skip_shared_out_of_order_tiles =
+ GetPendingOrActiveTwinLayer() != nullptr;
+ return make_scoped_ptr(new TilingSetEvictionQueue(
+ tilings_.get(), tree_priority, skip_shared_out_of_order_tiles));
}
scoped_ptr<TilingSetRasterQueue> PictureLayerImpl::CreateRasterQueue(
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/resources/tiling_set_eviction_queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698