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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 perf_test::PrintResult("tile_manager_raster_tile_iterator", | 309 perf_test::PrintResult("tile_manager_raster_tile_iterator", |
310 "", | 310 "", |
311 test_name, | 311 test_name, |
312 timer_.LapsPerSecond(), | 312 timer_.LapsPerSecond(), |
313 "runs/s", | 313 "runs/s", |
314 true); | 314 true); |
315 } | 315 } |
316 | 316 |
317 // TileManagerClient implementation. | 317 // TileManagerClient implementation. |
318 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } | 318 virtual void NotifyReadyToActivate() OVERRIDE { ready_to_activate_ = true; } |
| 319 virtual void NotifyTileInitialized(const Tile* tile) OVERRIDE {} |
319 | 320 |
320 TileManager* tile_manager() { return host_impl_.tile_manager(); } | 321 TileManager* tile_manager() { return host_impl_.tile_manager(); } |
321 | 322 |
322 protected: | 323 protected: |
323 GlobalStateThatImpactsTilePriority global_state_; | 324 GlobalStateThatImpactsTilePriority global_state_; |
324 | 325 |
325 TestSharedBitmapManager shared_bitmap_manager_; | 326 TestSharedBitmapManager shared_bitmap_manager_; |
326 TileMemoryLimitPolicy memory_limit_policy_; | 327 TileMemoryLimitPolicy memory_limit_policy_; |
327 int max_tiles_; | 328 int max_tiles_; |
328 bool ready_to_activate_; | 329 bool ready_to_activate_; |
(...skipping 12 matching lines...) Expand all Loading... |
341 | 342 |
342 RunTest("2_16", 16); | 343 RunTest("2_16", 16); |
343 RunTest("2_32", 32); | 344 RunTest("2_32", 32); |
344 RunTest("2_64", 64); | 345 RunTest("2_64", 64); |
345 RunTest("2_128", 128); | 346 RunTest("2_128", 128); |
346 } | 347 } |
347 | 348 |
348 } // namespace | 349 } // namespace |
349 | 350 |
350 } // namespace cc | 351 } // namespace cc |
OLD | NEW |