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 <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <limits> | 10 #include <limits> |
9 #include <set> | 11 #include <set> |
10 #include <utility> | 12 #include <utility> |
11 | 13 |
12 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/macros.h" |
13 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
14 #include "cc/base/math_util.h" | 17 #include "cc/base/math_util.h" |
15 #include "cc/layers/append_quads_data.h" | 18 #include "cc/layers/append_quads_data.h" |
16 #include "cc/layers/layer_settings.h" | 19 #include "cc/layers/layer_settings.h" |
17 #include "cc/layers/picture_layer.h" | 20 #include "cc/layers/picture_layer.h" |
18 #include "cc/quads/draw_quad.h" | 21 #include "cc/quads/draw_quad.h" |
19 #include "cc/quads/tile_draw_quad.h" | 22 #include "cc/quads/tile_draw_quad.h" |
20 #include "cc/test/begin_frame_args_test.h" | 23 #include "cc/test/begin_frame_args_test.h" |
21 #include "cc/test/fake_content_layer_client.h" | 24 #include "cc/test/fake_content_layer_client.h" |
22 #include "cc/test/fake_display_list_raster_source.h" | 25 #include "cc/test/fake_display_list_raster_source.h" |
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5050 // New low res tiling. | 5053 // New low res tiling. |
5051 EXPECT_TRUE(tilings->tiling_at(2)->may_contain_low_resolution_tiles()); | 5054 EXPECT_TRUE(tilings->tiling_at(2)->may_contain_low_resolution_tiles()); |
5052 | 5055 |
5053 // This tiling will be high res now, it won't contain low res content since it | 5056 // This tiling will be high res now, it won't contain low res content since it |
5054 // was all destroyed. | 5057 // was all destroyed. |
5055 EXPECT_FALSE(tilings->tiling_at(1)->may_contain_low_resolution_tiles()); | 5058 EXPECT_FALSE(tilings->tiling_at(1)->may_contain_low_resolution_tiles()); |
5056 } | 5059 } |
5057 | 5060 |
5058 } // namespace | 5061 } // namespace |
5059 } // namespace cc | 5062 } // namespace cc |
OLD | NEW |