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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_tiling_client.cc
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
index 2149ff4792f401de9be9831af7358c7210d4e078..a218a212e8496f40a5f0e0bfd446eb994f27dd53 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -17,6 +17,7 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient()
twin_tiling_(NULL),
recycled_twin_tiling_(NULL),
allow_create_tile_(true),
+ max_tile_priority_bin_(TilePriority::NOW),
max_tiles_for_interest_area_(10000),
skewport_target_time_in_seconds_(1.0f),
skewport_extrapolation_limit_in_content_pixels_(2000) {
@@ -32,6 +33,7 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient(
twin_tiling_(NULL),
recycled_twin_tiling_(NULL),
allow_create_tile_(true),
+ max_tile_priority_bin_(TilePriority::NOW),
max_tiles_for_interest_area_(10000),
skewport_target_time_in_seconds_(1.0f) {
}
@@ -60,6 +62,11 @@ gfx::Size FakePictureLayerTilingClient::CalculateTileSize(
return tile_size_;
}
+TilePriority::PriorityBin FakePictureLayerTilingClient::GetMaxTilePriorityBin()
+ const {
+ return max_tile_priority_bin_;
+}
+
size_t FakePictureLayerTilingClient::GetMaxTilesForInterestArea() const {
return max_tiles_for_interest_area_;
}
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698