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

Unified Diff: cc/resources/picture_layer_tiling_unittest.cc

Issue 507463002: cc: Reduced test case for crbug.com/405427 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698