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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « cc/resources/tile_manager_perftest.cc ('k') | cc/resources/tiling_set_eviction_queue.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 eb5d737d8b28aeb7412a98547f78b26794aa4e6e..32d174d94fe0ae68881df30a953b37fad603046e 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -121,7 +121,6 @@ class TileManagerTilePriorityQueueTest : public testing::Test {
pending_layer_ = static_cast<FakePictureLayerImpl*>(
host_impl_.pending_tree()->LayerById(id_));
- pending_layer_->DoPostCommitInitializationIfNeeded();
}
TileManager* tile_manager() { return host_impl_.tile_manager(); }
@@ -344,7 +343,6 @@ TEST_F(TileManagerTilePriorityQueueTest, ActivationComesBeforeEventually) {
ASSERT_TRUE(pending_child_raw);
pending_child_raw->SetDrawsContent(true);
- pending_child_raw->DoPostCommitInitializationIfNeeded();
pending_child_raw->CreateDefaultTilingsAndTiles();
ASSERT_TRUE(pending_child_raw->HighResTiling());
@@ -581,7 +579,6 @@ TEST_F(TileManagerTilePriorityQueueTest,
FakePictureLayerImpl* pending_child_layer =
static_cast<FakePictureLayerImpl*>(pending_layer_->children()[0]);
pending_child_layer->SetDrawsContent(true);
- pending_child_layer->DoPostCommitInitializationIfNeeded();
pending_child_layer->CreateDefaultTilingsAndTiles();
std::set<Tile*> all_tiles;
@@ -700,7 +697,6 @@ TEST_F(TileManagerTilePriorityQueueTest,
pending_child_layer->CreateDefaultTilingsAndTiles();
pending_child_layer->SetOpacity(0.0);
pending_child_layer->layer_tree_impl()->UpdateDrawProperties();
- pending_child_layer->DoPostCommitInitializationIfNeeded();
// Renew all of the tile priorities.
gfx::Rect viewport(layer_bounds);
@@ -804,7 +800,6 @@ TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueueEmptyLayers) {
scoped_ptr<FakePictureLayerImpl> pending_layer =
FakePictureLayerImpl::Create(host_impl_.pending_tree(), id_ + i);
pending_layer->SetDrawsContent(true);
- pending_layer->DoPostCommitInitializationIfNeeded();
pending_layer->set_has_valid_tile_priorities(true);
pending_layer_->AddChild(pending_layer.Pass());
}
@@ -855,7 +850,6 @@ TEST_F(TileManagerTilePriorityQueueTest, EvictionTilePriorityQueueEmptyLayers) {
scoped_ptr<FakePictureLayerImpl> pending_layer =
FakePictureLayerImpl::Create(host_impl_.pending_tree(), id_ + i);
pending_layer->SetDrawsContent(true);
- pending_layer->DoPostCommitInitializationIfNeeded();
pending_layer->set_has_valid_tile_priorities(true);
pending_layer_->AddChild(pending_layer.Pass());
}
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | cc/resources/tiling_set_eviction_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698