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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 547723002: Reland of: cc: Add occlusion checker as a fixed view of occlusion tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/tile_manager_perftest.cc ('k') | cc/trees/layer_tree_impl.cc » ('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 f229fcddcd1d1584b44696d89af63ce100e016e7..fdba0501df68bdd7b5f4ce0eedc39dcc4a07399e 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -646,37 +646,13 @@ TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueue) {
// Renew all of the tile priorities.
gfx::Rect viewport(50, 50, 100, 100);
pending_layer_->HighResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
pending_layer_->LowResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
active_layer_->HighResTiling()->UpdateTilePriorities(
- ACTIVE_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- active_layer_->render_target(),
- active_layer_->draw_transform());
+ ACTIVE_TREE, viewport, 1.0f, 1.0, Occlusion());
active_layer_->LowResTiling()->UpdateTilePriorities(
- ACTIVE_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- active_layer_->render_target(),
- active_layer_->draw_transform());
+ ACTIVE_TREE, viewport, 1.0f, 1.0, Occlusion());
// Populate all tiles directly from the tilings.
all_tiles.clear();
@@ -845,37 +821,13 @@ TEST_F(TileManagerTilePriorityQueueTest, EvictionTilePriorityQueue) {
// Renew all of the tile priorities.
gfx::Rect viewport(50, 50, 100, 100);
pending_layer_->HighResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
pending_layer_->LowResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
active_layer_->HighResTiling()->UpdateTilePriorities(
- ACTIVE_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- active_layer_->render_target(),
- active_layer_->draw_transform());
+ ACTIVE_TREE, viewport, 1.0f, 1.0, Occlusion());
active_layer_->LowResTiling()->UpdateTilePriorities(
- ACTIVE_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- active_layer_->render_target(),
- active_layer_->draw_transform());
+ ACTIVE_TREE, viewport, 1.0f, 1.0, Occlusion());
// Populate all tiles directly from the tilings.
all_tiles.clear();
@@ -1020,37 +972,13 @@ TEST_F(TileManagerTilePriorityQueueTest,
// Renew all of the tile priorities.
gfx::Rect viewport(layer_bounds);
pending_layer_->HighResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
pending_layer_->LowResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_layer_->render_target(),
- pending_layer_->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
pending_child_layer->HighResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_child_layer->render_target(),
- pending_child_layer->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
pending_child_layer->LowResTiling()->UpdateTilePriorities(
- PENDING_TREE,
- viewport,
- 1.0f,
- 1.0,
- NULL,
- pending_child_layer->render_target(),
- pending_child_layer->draw_transform());
+ PENDING_TREE, viewport, 1.0f, 1.0, Occlusion());
// Populate all tiles directly from the tilings.
all_tiles.clear();
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698