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

Unified Diff: cc/resources/picture_layer_tiling_set_unittest.cc

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits updated. 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 | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set_unittest.cc
diff --git a/cc/resources/picture_layer_tiling_set_unittest.cc b/cc/resources/picture_layer_tiling_set_unittest.cc
index 91a7ce892dd6a91cb06aa76a194adb5ba60b42f2..5d174cf49d5ae6505d28a3fd4a12e6ddaaf74e5c 100644
--- a/cc/resources/picture_layer_tiling_set_unittest.cc
+++ b/cc/resources/picture_layer_tiling_set_unittest.cc
@@ -73,6 +73,7 @@ class PictureLayerTilingSetTestWithResources : public testing::Test {
FakePictureLayerTilingClient client(resource_provider.get());
client.SetTileSize(gfx::Size(256, 256));
+ client.set_tree(PENDING_TREE);
gfx::Size layer_bounds(1000, 800);
PictureLayerTilingSet set(&client, layer_bounds);
@@ -153,7 +154,9 @@ class PictureLayerTilingSetSyncTest : public testing::Test {
source_bounds_(gfx::Size(30, 20)),
target_bounds_(gfx::Size(30, 30)) {
source_client_.SetTileSize(tile_size_);
+ source_client_.set_tree(PENDING_TREE);
target_client_.SetTileSize(tile_size_);
+ target_client_.set_tree(PENDING_TREE);
source_.reset(new PictureLayerTilingSet(&source_client_, source_bounds_));
target_.reset(new PictureLayerTilingSet(&target_client_, target_bounds_));
}
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698