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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 RunManageTilesTest("10_100", 10, 100); | 325 RunManageTilesTest("10_100", 10, 100); |
326 RunManageTilesTest("10_500", 10, 500); | 326 RunManageTilesTest("10_500", 10, 500); |
327 RunManageTilesTest("10_1000", 10, 1000); | 327 RunManageTilesTest("10_1000", 10, 1000); |
328 RunManageTilesTest("100_100", 100, 100); | 328 RunManageTilesTest("100_100", 100, 100); |
329 RunManageTilesTest("100_500", 100, 500); | 329 RunManageTilesTest("100_500", 100, 500); |
330 RunManageTilesTest("100_1000", 100, 1000); | 330 RunManageTilesTest("100_1000", 100, 1000); |
331 } | 331 } |
332 | 332 |
333 TEST_F(TileManagerPerfTest, RasterTileIterator) { | 333 TEST_F(TileManagerPerfTest, RasterTileIterator) { |
334 SetupDefaultTrees(gfx::Size(10000, 10000)); | 334 SetupDefaultTrees(gfx::Size(10000, 10000)); |
335 | |
336 active_root_layer_->SetBounds(gfx::Size(10000, 10000)); | |
danakj
2014/05/21 15:01:00
Can you do these in SetupDefaultTrees?
| |
337 active_root_layer_->SetContentBounds(gfx::Size(10000, 10000)); | |
335 active_root_layer_->CreateDefaultTilingsAndTiles(); | 338 active_root_layer_->CreateDefaultTilingsAndTiles(); |
339 pending_root_layer_->SetBounds(gfx::Size(10000, 10000)); | |
340 pending_root_layer_->SetContentBounds(gfx::Size(10000, 10000)); | |
336 pending_root_layer_->CreateDefaultTilingsAndTiles(); | 341 pending_root_layer_->CreateDefaultTilingsAndTiles(); |
337 | 342 |
338 RunRasterIteratorTest("2_16", 16); | 343 RunRasterIteratorTest("2_16", 16); |
339 RunRasterIteratorTest("2_32", 32); | 344 RunRasterIteratorTest("2_32", 32); |
340 RunRasterIteratorTest("2_64", 64); | 345 RunRasterIteratorTest("2_64", 64); |
341 RunRasterIteratorTest("2_128", 128); | 346 RunRasterIteratorTest("2_128", 128); |
342 } | 347 } |
343 | 348 |
344 } // namespace | 349 } // namespace |
345 | 350 |
346 } // namespace cc | 351 } // namespace cc |
OLD | NEW |