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

Unified Diff: cc/resources/tile_manager_perftest.cc

Issue 413243004: cc: Fix DCHECK in tile manager queue perftests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update 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
« 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/tile_manager_perftest.cc
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc
index 69bdaa468056cf1d1cefd28d9b5af8a0edd27b8b..0c7b40a77895b190f749cb34eb1e9620603b7553 100644
--- a/cc/resources/tile_manager_perftest.cc
+++ b/cc/resources/tile_manager_perftest.cc
@@ -351,26 +351,28 @@ TEST_F(TileManagerPerfTest, ManageTiles) {
}
TEST_F(TileManagerPerfTest, RasterTileQueueConstruct) {
- SetupDefaultTrees(gfx::Size(10000, 10000));
+ SetupDefaultTrees(gfx::Size(1000, 1000));
active_root_layer_->CreateDefaultTilingsAndTiles();
pending_root_layer_->CreateDefaultTilingsAndTiles();
RunRasterQueueConstructTest("2");
- for (int i = 0; i < 8; ++i) {
- PictureLayerTiling* tiling = active_root_layer_->AddTiling(i * 0.3f);
+ int number_of_tilings = 2;
+ for (; number_of_tilings < 10; ++number_of_tilings) {
+ PictureLayerTiling* tiling =
+ active_root_layer_->AddTiling(1.0f + number_of_tilings * 0.3f);
tiling->CreateAllTilesForTesting();
}
RunRasterQueueConstructTest("10");
- for (int i = 0; i < 90; ++i) {
+ for (; number_of_tilings < 50; ++number_of_tilings) {
PictureLayerTiling* tiling =
- active_root_layer_->AddTiling(1.0f + i * 0.03f);
+ active_root_layer_->AddTiling(1.0f + number_of_tilings * 0.3f);
tiling->CreateAllTilesForTesting();
}
- RunRasterQueueConstructTest("100");
+ RunRasterQueueConstructTest("50");
}
TEST_F(TileManagerPerfTest, RasterTileQueueConstructAndIterate) {
« 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