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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 1126793002: cc: Make tiling interest rect calc based on viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove switch entry from chromeos cmdline. Created 5 years, 7 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/resources/picture_layer_tiling_unittest.cc ('k') | cc/test/impl_side_painting_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager_unittest.cc
diff --git a/cc/resources/tile_manager_unittest.cc b/cc/resources/tile_manager_unittest.cc
index acd3a740bb3c84cb67966762fc6231b77b643739..5e32494dddad1c250928e52f3083a6446f27b084 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -30,7 +30,10 @@ namespace {
class LowResTilingsSettings : public ImplSidePaintingSettings {
public:
- LowResTilingsSettings() { create_low_res_tiling = true; }
+ LowResTilingsSettings() {
+ tiling_interest_area_viewport_multiplier = 10000;
+ create_low_res_tiling = true;
+ }
};
class TileManagerTilePriorityQueueTest : public testing::Test {
@@ -1176,10 +1179,10 @@ TEST_F(TileManagerTilePriorityQueueTest,
client.SetTileSize(gfx::Size(30, 30));
LayerTreeSettings settings;
- settings.max_tiles_for_interest_area = 10000;
+ settings.tiling_interest_area_viewport_multiplier = 10000;
scoped_ptr<PictureLayerTilingSet> tiling_set = PictureLayerTilingSet::Create(
- ACTIVE_TREE, &client, settings.max_tiles_for_interest_area,
+ ACTIVE_TREE, &client, settings.tiling_interest_area_viewport_multiplier,
settings.skewport_target_time_in_seconds,
settings.skewport_extrapolation_limit_in_content_pixels);
@@ -1286,10 +1289,9 @@ TEST_F(TileManagerTilePriorityQueueTest,
client.SetTileSize(gfx::Size(30, 30));
LayerTreeSettings settings;
- settings.max_tiles_for_interest_area = 10000;
scoped_ptr<PictureLayerTilingSet> tiling_set = PictureLayerTilingSet::Create(
- ACTIVE_TREE, &client, settings.max_tiles_for_interest_area,
+ ACTIVE_TREE, &client, settings.tiling_interest_area_viewport_multiplier,
settings.skewport_target_time_in_seconds,
settings.skewport_extrapolation_limit_in_content_pixels);
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/test/impl_side_painting_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698