OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 12395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12406 if (tile->tiling_i_index() < 2 && tile->tiling_j_index() < 2) | 12406 if (tile->tiling_i_index() < 2 && tile->tiling_j_index() < 2) |
12407 EXPECT_TRUE(tile->HasRasterTask()); | 12407 EXPECT_TRUE(tile->HasRasterTask()); |
12408 else | 12408 else |
12409 EXPECT_FALSE(tile->HasRasterTask()); | 12409 EXPECT_FALSE(tile->HasRasterTask()); |
12410 } | 12410 } |
12411 Region expected_invalidation( | 12411 Region expected_invalidation( |
12412 raster_source->GetRectForImage(checkerable_image.stable_id())); | 12412 raster_source->GetRectForImage(checkerable_image.stable_id())); |
12413 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12413 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12414 } | 12414 } |
12415 | 12415 |
| 12416 TEST_F(LayerTreeHostImplTest, RasterTilePrioritizationForNonDrawingLayers) { |
| 12417 host_impl_->SetViewportSize(gfx::Size(500, 500)); |
| 12418 } |
| 12419 |
12416 } // namespace | 12420 } // namespace |
12417 } // namespace cc | 12421 } // namespace cc |
OLD | NEW |