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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 1149843002: cc: Remove recycled twin information from picture layer tiling set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/layers/picture_layer_impl.cc ('k') | cc/tiles/picture_layer_tiling_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 75725257282d60c1134d7f594fd647ce6f84cf9c..2b4f8dc8ea24c65d4a3cc03bf6dcf19a9207c069 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -4602,33 +4602,6 @@ TEST_F(PictureLayerImplTest, PendingOrActiveTwinLayer) {
EXPECT_FALSE(active_layer_->GetPendingOrActiveTwinLayer());
}
-TEST_F(PictureLayerImplTest, RecycledTwinLayer) {
- gfx::Size tile_size(102, 102);
- gfx::Size layer_bounds(1000, 1000);
-
- scoped_refptr<FakePicturePileImpl> pile =
- FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds);
- SetupPendingTree(pile);
- EXPECT_FALSE(pending_layer_->GetRecycledTwinLayer());
-
- ActivateTree();
- EXPECT_TRUE(active_layer_->GetRecycledTwinLayer());
- EXPECT_EQ(old_pending_layer_, active_layer_->GetRecycledTwinLayer());
-
- SetupPendingTree(pile);
- EXPECT_FALSE(pending_layer_->GetRecycledTwinLayer());
- EXPECT_FALSE(active_layer_->GetRecycledTwinLayer());
-
- ActivateTree();
- EXPECT_TRUE(active_layer_->GetRecycledTwinLayer());
- EXPECT_EQ(old_pending_layer_, active_layer_->GetRecycledTwinLayer());
-
- // Make an empty pending tree.
- host_impl_.CreatePendingTree();
- host_impl_.pending_tree()->DetachLayerTree();
- EXPECT_FALSE(active_layer_->GetRecycledTwinLayer());
-}
-
void PictureLayerImplTest::TestQuadsForSolidColor(bool test_for_solid) {
base::TimeTicks time_ticks;
time_ticks += base::TimeDelta::FromMilliseconds(1);
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/tiles/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698