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