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

Unified Diff: cc/resources/picture_layer_tiling_unittest.cc

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: . Created 6 years, 5 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
Index: cc/resources/picture_layer_tiling_unittest.cc
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc
index 9743a8239cd02e0af64544c0f9e0f86c481de38b..8d2a4618707ea97bbccc644595863fccf8055663 100644
--- a/cc/resources/picture_layer_tiling_unittest.cc
+++ b/cc/resources/picture_layer_tiling_unittest.cc
@@ -189,23 +189,6 @@ class PictureLayerTilingIteratorTest : public testing::Test {
DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingIteratorTest);
};
-TEST_F(PictureLayerTilingIteratorTest, ResizeDeletesTiles) {
enne (OOO) 2014/07/11 00:12:04 Does what this test tested happen somewhere else n
danakj 2014/07/11 17:06:16 We don't do this anymore. The PicturePile invalida
- // Verifies that a resize deletes tiles that used to be on the edge.
- gfx::Size tile_size(100, 100);
- gfx::Size original_layer_size(10, 10);
- Initialize(tile_size, 1.f, original_layer_size);
- SetLiveRectAndVerifyTiles(gfx::Rect(original_layer_size));
-
- // Tiling only has one tile, since its total size is less than one.
- EXPECT_TRUE(tiling_->TileAt(0, 0));
-
- // Stop creating tiles so that any invalidations are left as holes.
- client_.set_allow_create_tile(false);
-
- tiling_->SetLayerBounds(gfx::Size(200, 200));
- EXPECT_FALSE(tiling_->TileAt(0, 0));
-}
-
TEST_F(PictureLayerTilingIteratorTest, LiveTilesExactlyCoverLiveTileRect) {
Initialize(gfx::Size(100, 100), 1, gfx::Size(1099, 801));
SetLiveRectAndVerifyTiles(gfx::Rect(100, 100));

Powered by Google App Engine
This is Rietveld 408576698