| 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/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_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
| 9 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
| 10 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 perf_test::PrintResult("tile_manager_raster_tile_iterator", | 315 perf_test::PrintResult("tile_manager_raster_tile_iterator", |
| 316 "", | 316 "", |
| 317 test_name, | 317 test_name, |
| 318 timer_.LapsPerSecond(), | 318 timer_.LapsPerSecond(), |
| 319 "runs/s", | 319 "runs/s", |
| 320 true); | 320 true); |
| 321 } | 321 } |
| 322 | 322 |
| 323 // TileManagerClient implementation. | 323 // TileManagerClient implementation. |
| 324 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } | 324 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } |
| 325 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {} |
| 325 | 326 |
| 326 TileManager* tile_manager() { return host_impl_.tile_manager(); } | 327 TileManager* tile_manager() { return host_impl_.tile_manager(); } |
| 327 | 328 |
| 328 protected: | 329 protected: |
| 329 GlobalStateThatImpactsTilePriority global_state_; | 330 GlobalStateThatImpactsTilePriority global_state_; |
| 330 | 331 |
| 331 TestSharedBitmapManager shared_bitmap_manager_; | 332 TestSharedBitmapManager shared_bitmap_manager_; |
| 332 TileMemoryLimitPolicy memory_limit_policy_; | 333 TileMemoryLimitPolicy memory_limit_policy_; |
| 333 int max_tiles_; | 334 int max_tiles_; |
| 334 bool ready_to_activate_; | 335 bool ready_to_activate_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 347 | 348 |
| 348 RunTest("2_16", 16); | 349 RunTest("2_16", 16); |
| 349 RunTest("2_32", 32); | 350 RunTest("2_32", 32); |
| 350 RunTest("2_64", 64); | 351 RunTest("2_64", 64); |
| 351 RunTest("2_128", 128); | 352 RunTest("2_128", 128); |
| 352 } | 353 } |
| 353 | 354 |
| 354 } // namespace | 355 } // namespace |
| 355 | 356 |
| 356 } // namespace cc | 357 } // namespace cc |
| OLD | NEW |