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

Unified Diff: cc/resources/tile_manager_perftest.cc

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: cc/resources/tile_manager_perftest.cc
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc
index 89a30920b4baa18eed5a783229305599d8f8fd9c..9ecd5ff02006775adb35011a6a6524e910d7e464 100644
--- a/cc/resources/tile_manager_perftest.cc
+++ b/cc/resources/tile_manager_perftest.cc
@@ -100,7 +100,7 @@ class TileManagerPerfTest : public testing::Test {
void CreateTiles(int count, TileVector* tiles) {
// Roughly an equal amount of all bins.
- int count_per_bin = count / NUM_BINS;
+ int count_per_bin = count / (MAX_BIN + 1);
CreateBinTiles(count_per_bin, TilePriorityForNowBin(), tiles);
CreateBinTiles(count_per_bin, TilePriorityForSoonBin(), tiles);
CreateBinTiles(count_per_bin, TilePriorityForEventualBin(), tiles);

Powered by Google App Engine
This is Rietveld 408576698