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 "cc/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 | 296 |
297 EXPECT_EQ(pending_layer_->tilings()->num_tilings(), | 297 EXPECT_EQ(pending_layer_->tilings()->num_tilings(), |
298 active_layer_->tilings()->num_tilings()); | 298 active_layer_->tilings()->num_tilings()); |
299 | 299 |
300 const PictureLayerTilingSet* tilings = pending_layer_->tilings(); | 300 const PictureLayerTilingSet* tilings = pending_layer_->tilings(); |
301 EXPECT_GT(tilings->num_tilings(), 0u); | 301 EXPECT_GT(tilings->num_tilings(), 0u); |
302 for (size_t i = 0; i < tilings->num_tilings(); ++i) | 302 for (size_t i = 0; i < tilings->num_tilings(); ++i) |
303 VerifyAllTilesExistAndHavePile(tilings->tiling_at(i), active_pile.get()); | 303 VerifyAllTilesExistAndHavePile(tilings->tiling_at(i), active_pile.get()); |
304 } | 304 } |
305 | 305 |
306 TEST_F(PictureLayerImplTest, ExternalViewportRectForPrioritizingTiles) { | 306 TEST_F(PictureLayerImplTest, |
| 307 DISABLED_ExternalViewportRectForPrioritizingTiles) { |
307 base::TimeTicks time_ticks; | 308 base::TimeTicks time_ticks; |
308 host_impl_.SetCurrentFrameTimeTicks(time_ticks); | 309 host_impl_.SetCurrentFrameTimeTicks(time_ticks); |
309 gfx::Size tile_size(100, 100); | 310 gfx::Size tile_size(100, 100); |
310 gfx::Size layer_bounds(400, 400); | 311 gfx::Size layer_bounds(400, 400); |
311 | 312 |
312 scoped_refptr<FakePicturePileImpl> pending_pile = | 313 scoped_refptr<FakePicturePileImpl> pending_pile = |
313 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); | 314 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); |
314 scoped_refptr<FakePicturePileImpl> active_pile = | 315 scoped_refptr<FakePicturePileImpl> active_pile = |
315 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); | 316 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); |
316 | 317 |
(...skipping 3384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3701 | 3702 |
3702 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles); | 3703 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles); |
3703 | 3704 |
3704 VerifyEvictionConsidersOcclusion(pending_layer_, | 3705 VerifyEvictionConsidersOcclusion(pending_layer_, |
3705 total_expected_occluded_tile_count); | 3706 total_expected_occluded_tile_count); |
3706 VerifyEvictionConsidersOcclusion(active_layer_, | 3707 VerifyEvictionConsidersOcclusion(active_layer_, |
3707 total_expected_occluded_tile_count); | 3708 total_expected_occluded_tile_count); |
3708 } | 3709 } |
3709 } // namespace | 3710 } // namespace |
3710 } // namespace cc | 3711 } // namespace cc |
OLD | NEW |