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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 107413008: Merge 241994 "Revert "cc: Added tile bundles"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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/tile_manager_perftest.cc ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager_unittest.cc
===================================================================
--- cc/resources/tile_manager_unittest.cc (revision 243316)
+++ cc/resources/tile_manager_unittest.cc (working copy)
@@ -67,7 +67,6 @@
}
virtual void TearDown() OVERRIDE {
- bundles_.clear();
tile_manager_.reset(NULL);
picture_pile_ = NULL;
@@ -88,14 +87,9 @@
0,
0,
Tile::USE_LCD_TEXT);
- scoped_refptr<TileBundle> bundle =
- tile_manager_->CreateTileBundle(0, 0, 1, 1);
- bundle->SetPriority(ACTIVE_TREE, active_priority);
- bundle->SetPriority(PENDING_TREE, pending_priority);
- bundle->AddTileAt(ACTIVE_TREE, 0, 0, tile);
- bundle->AddTileAt(PENDING_TREE, 0, 0, tile);
+ tile->SetPriority(ACTIVE_TREE, active_priority);
+ tile->SetPriority(PENDING_TREE, pending_priority);
tiles.push_back(tile);
- bundles_.push_back(bundle);
}
return tiles;
}
@@ -148,7 +142,6 @@
scoped_ptr<ResourceProvider> resource_provider_;
TileMemoryLimitPolicy memory_limit_policy_;
int max_memory_tiles_;
- std::vector<scoped_refptr<TileBundle> > bundles_;
};
TEST_P(TileManagerTest, EnoughMemoryAllowAnything) {
@@ -535,4 +528,3 @@
} // namespace
} // namespace cc
-
« no previous file with comments | « cc/resources/tile_manager_perftest.cc ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698