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 a8caf48904b835f7e1c8905379fbedcfe6b1fb85..3ec2a57df0c45d09be7f544dd558f3596fff426f 100644 |
--- a/cc/resources/picture_layer_tiling_unittest.cc |
+++ b/cc/resources/picture_layer_tiling_unittest.cc |
@@ -53,6 +53,7 @@ static void UpdateAllTilePriorities(PictureLayerTilingSet* set, |
class TestablePictureLayerTiling : public PictureLayerTiling { |
public: |
using PictureLayerTiling::SetLiveTilesRect; |
+ using PictureLayerTiling::UpdateTilesToCurrentPile; |
using PictureLayerTiling::TileAt; |
static scoped_ptr<TestablePictureLayerTiling> Create( |
@@ -210,6 +211,17 @@ TEST_F(PictureLayerTilingIteratorTest, ResizeDeletesTiles) { |
EXPECT_FALSE(tiling_->TileAt(0, 0)); |
} |
+TEST_F(PictureLayerTilingIteratorTest, TestNameTBD) { |
+ Initialize(gfx::Size(256, 256), 1, gfx::Size(6920, 972)); |
+ SetLiveRectAndVerifyTiles(gfx::Rect(6920, 972)); |
+ |
+ tiling_->UpdateTilesToCurrentPile(gfx::Rect(), gfx::Size(6859, 972)); |
+ tiling_->UpdateTilesToCurrentPile(gfx::Rect(), gfx::Size(6540, 900)); |
+ tiling_->UpdateTilesToCurrentPile(gfx::Rect(), gfx::Size(6920, 972)); |
+ |
+ SetLiveRectAndVerifyTiles(gfx::Rect(6920, 972)); |
+} |
+ |
TEST_F(PictureLayerTilingIteratorTest, ResizeOverBorderPixelsDeletesTiles) { |
// Verifies that a resize with invalidation for newly exposed pixels will |
// deletes tiles that intersect that invalidation. |