OLD | NEW |
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/debug/lap_timer.h" | 6 #include "cc/debug/lap_timer.h" |
7 #include "cc/resources/tile.h" | 7 #include "cc/resources/tile.h" |
8 #include "cc/resources/tile_priority.h" | 8 #include "cc/resources/tile_priority.h" |
9 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
10 #include "cc/test/fake_layer_tree_host_impl.h" | 10 #include "cc/test/fake_layer_tree_host_impl.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 timer_.NextLap(); | 286 timer_.NextLap(); |
287 host_impl_.ResetCurrentFrameTimeForNextFrame(); | 287 host_impl_.ResetCurrentFrameTimeForNextFrame(); |
288 } while (!timer_.HasTimeLimitExpired()); | 288 } while (!timer_.HasTimeLimitExpired()); |
289 | 289 |
290 perf_test::PrintResult( | 290 perf_test::PrintResult( |
291 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true); | 291 "manage_tiles", "", test_name, timer_.LapsPerSecond(), "runs/s", true); |
292 } | 292 } |
293 | 293 |
294 // TileManagerClient implementation. | 294 // TileManagerClient implementation. |
295 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } | 295 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } |
296 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {} | 296 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} |
297 | 297 |
298 TileManager* tile_manager() { return host_impl_.tile_manager(); } | 298 TileManager* tile_manager() { return host_impl_.tile_manager(); } |
299 | 299 |
300 protected: | 300 protected: |
301 GlobalStateThatImpactsTilePriority global_state_; | 301 GlobalStateThatImpactsTilePriority global_state_; |
302 | 302 |
303 TestSharedBitmapManager shared_bitmap_manager_; | 303 TestSharedBitmapManager shared_bitmap_manager_; |
304 TileMemoryLimitPolicy memory_limit_policy_; | 304 TileMemoryLimitPolicy memory_limit_policy_; |
305 int max_tiles_; | 305 int max_tiles_; |
306 bool ready_to_activate_; | 306 bool ready_to_activate_; |
(...skipping 29 matching lines...) Expand all Loading... |
336 | 336 |
337 RunRasterIteratorTest("2_16", 16); | 337 RunRasterIteratorTest("2_16", 16); |
338 RunRasterIteratorTest("2_32", 32); | 338 RunRasterIteratorTest("2_32", 32); |
339 RunRasterIteratorTest("2_64", 64); | 339 RunRasterIteratorTest("2_64", 64); |
340 RunRasterIteratorTest("2_128", 128); | 340 RunRasterIteratorTest("2_128", 128); |
341 } | 341 } |
342 | 342 |
343 } // namespace | 343 } // namespace |
344 | 344 |
345 } // namespace cc | 345 } // namespace cc |
OLD | NEW |