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

Side by Side Diff: cc/resources/tile_manager_perftest.cc

Issue 165603002: cc: Move GPU raster to DirectRasterWorkerPool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/time/time.h" 5 #include "base/time/time.h"
6 #include "cc/resources/tile.h" 6 #include "cc/resources/tile.h"
7 #include "cc/resources/tile_priority.h" 7 #include "cc/resources/tile_priority.h"
8 #include "cc/test/fake_output_surface.h" 8 #include "cc/test/fake_output_surface.h"
9 #include "cc/test/fake_output_surface_client.h" 9 #include "cc/test/fake_output_surface_client.h"
10 #include "cc/test/fake_picture_pile_impl.h" 10 #include "cc/test/fake_picture_pile_impl.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 i += 100 / priority_change_percent) { 148 i += 100 / priority_change_percent) {
149 Tile* tile = tiles[i].first.get(); 149 Tile* tile = tiles[i].first.get();
150 ManagedTileBin bin = GetNextBin(tiles[i].second); 150 ManagedTileBin bin = GetNextBin(tiles[i].second);
151 tile->SetPriority(ACTIVE_TREE, GetTilePriorityFromBin(bin)); 151 tile->SetPriority(ACTIVE_TREE, GetTilePriorityFromBin(bin));
152 tile->SetPriority(PENDING_TREE, GetTilePriorityFromBin(bin)); 152 tile->SetPriority(PENDING_TREE, GetTilePriorityFromBin(bin));
153 tiles[i].second = bin; 153 tiles[i].second = bin;
154 } 154 }
155 } 155 }
156 156
157 tile_manager_->ManageTiles(GlobalStateForTest()); 157 tile_manager_->ManageTiles(GlobalStateForTest());
158 tile_manager_->CheckForCompletedTasks(); 158 tile_manager_->UpdateVisibleTiles();
159 timer_.NextLap(); 159 timer_.NextLap();
160 } while (!timer_.HasTimeLimitExpired()); 160 } while (!timer_.HasTimeLimitExpired());
161 161
162 perf_test::PrintResult( 162 perf_test::PrintResult(
163 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true); 163 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true);
164 } 164 }
165 165
166 private: 166 private:
167 FakeTileManagerClient tile_manager_client_; 167 FakeTileManagerClient tile_manager_client_;
168 LayerTreeSettings settings_; 168 LayerTreeSettings settings_;
(...skipping 13 matching lines...) Expand all
182 RunManageTilesTest("1000_10", 1000, 10); 182 RunManageTilesTest("1000_10", 1000, 10);
183 RunManageTilesTest("10000_10", 10000, 10); 183 RunManageTilesTest("10000_10", 10000, 10);
184 RunManageTilesTest("100_100", 100, 100); 184 RunManageTilesTest("100_100", 100, 100);
185 RunManageTilesTest("1000_100", 1000, 100); 185 RunManageTilesTest("1000_100", 1000, 100);
186 RunManageTilesTest("10000_100", 10000, 100); 186 RunManageTilesTest("10000_100", 10000, 100);
187 } 187 }
188 188
189 } // namespace 189 } // namespace
190 190
191 } // namespace cc 191 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698