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

Unified Diff: cc/resources/tile_manager_perftest.cc

Issue 283463003: cc: Fix tile manager raster tile iterator perftest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 years, 7 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 cc2bc9c0c95fe33319656a66d204af60deb560c7..fcc7e4f77f8870b7812586073f94b7d9c546c6df 100644
--- a/cc/resources/tile_manager_perftest.cc
+++ b/cc/resources/tile_manager_perftest.cc
@@ -299,16 +299,17 @@ class TileManagerTileIteratorPerfTest : public testing::Test,
pending_layer_->SetAllTilesVisible();
}
- void RunTest(const std::string& test_name, unsigned tile_count) {
+ void RunTest(const std::string& test_name, int tile_count) {
timer_.Reset();
do {
+ int count = tile_count;
for (TileManager::RasterTileIterator it(tile_manager(),
SAME_PRIORITY_FOR_BOTH_TREES);
- it && tile_count;
+ it && count;
++it) {
- --tile_count;
+ --count;
}
- ASSERT_EQ(0u, tile_count);
+ ASSERT_EQ(0, count);
timer_.NextLap();
} while (!timer_.HasTimeLimitExpired());
« 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