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 3054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3065 EXPECT_EQ(unoccluded_tile_count, 0); | 3065 EXPECT_EQ(unoccluded_tile_count, 0); |
3066 } | 3066 } |
3067 | 3067 |
3068 #if defined(OS_WIN) | 3068 #if defined(OS_WIN) |
3069 #define MAYBE_OccludedTilesNotMarkedAsRequired \ | 3069 #define MAYBE_OccludedTilesNotMarkedAsRequired \ |
3070 DISABLED_OccludedTilesNotMarkedAsRequired | 3070 DISABLED_OccludedTilesNotMarkedAsRequired |
3071 #else | 3071 #else |
3072 #define MAYBE_OccludedTilesNotMarkedAsRequired OccludedTilesNotMarkedAsRequired | 3072 #define MAYBE_OccludedTilesNotMarkedAsRequired OccludedTilesNotMarkedAsRequired |
3073 #endif | 3073 #endif |
3074 TEST_F(OcclusionTrackingPictureLayerImplTest, | 3074 TEST_F(OcclusionTrackingPictureLayerImplTest, |
3075 OccludedTilesNotMarkedAsRequired) { | 3075 MAYBE_OccludedTilesNotMarkedAsRequired) { |
3076 gfx::Size tile_size(102, 102); | 3076 gfx::Size tile_size(102, 102); |
3077 gfx::Size layer_bounds(1000, 1000); | 3077 gfx::Size layer_bounds(1000, 1000); |
3078 gfx::Size viewport_size(500, 500); | 3078 gfx::Size viewport_size(500, 500); |
3079 gfx::Point occluding_layer_position(310, 0); | 3079 gfx::Point occluding_layer_position(310, 0); |
3080 | 3080 |
3081 scoped_refptr<FakePicturePileImpl> pending_pile = | 3081 scoped_refptr<FakePicturePileImpl> pending_pile = |
3082 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); | 3082 FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds); |
3083 SetupPendingTree(pending_pile); | 3083 SetupPendingTree(pending_pile); |
3084 pending_layer_->set_fixed_tile_size(tile_size); | 3084 pending_layer_->set_fixed_tile_size(tile_size); |
3085 | 3085 |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3515 | 3515 |
3516 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles); | 3516 host_impl_.tile_manager()->InitializeTilesWithResourcesForTesting(all_tiles); |
3517 | 3517 |
3518 VerifyEvictionConsidersOcclusion(pending_layer_, | 3518 VerifyEvictionConsidersOcclusion(pending_layer_, |
3519 total_expected_occluded_tile_count); | 3519 total_expected_occluded_tile_count); |
3520 VerifyEvictionConsidersOcclusion(active_layer_, | 3520 VerifyEvictionConsidersOcclusion(active_layer_, |
3521 total_expected_occluded_tile_count); | 3521 total_expected_occluded_tile_count); |
3522 } | 3522 } |
3523 } // namespace | 3523 } // namespace |
3524 } // namespace cc | 3524 } // namespace cc |
OLD | NEW |