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> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <limits> | 10 #include <limits> |
11 #include <set> | 11 #include <set> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "cc/base/math_util.h" | 17 #include "cc/base/math_util.h" |
18 #include "cc/layers/append_quads_data.h" | 18 #include "cc/layers/append_quads_data.h" |
19 #include "cc/layers/picture_layer.h" | 19 #include "cc/layers/picture_layer.h" |
20 #include "cc/quads/draw_quad.h" | 20 #include "cc/quads/draw_quad.h" |
21 #include "cc/quads/tile_draw_quad.h" | 21 #include "cc/quads/tile_draw_quad.h" |
22 #include "cc/test/begin_frame_args_test.h" | 22 #include "cc/test/begin_frame_args_test.h" |
23 #include "cc/test/fake_content_layer_client.h" | 23 #include "cc/test/fake_content_layer_client.h" |
24 #include "cc/test/fake_impl_task_runner_provider.h" | 24 #include "cc/test/fake_impl_task_runner_provider.h" |
25 #include "cc/test/fake_layer_tree_host_impl.h" | 25 #include "cc/test/fake_layer_tree_host_impl.h" |
26 #include "cc/test/fake_output_surface.h" | 26 #include "cc/test/fake_output_surface.h" |
(...skipping 4864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4891 // New low res tiling. | 4891 // New low res tiling. |
4892 EXPECT_TRUE(tilings->tiling_at(2)->may_contain_low_resolution_tiles()); | 4892 EXPECT_TRUE(tilings->tiling_at(2)->may_contain_low_resolution_tiles()); |
4893 | 4893 |
4894 // This tiling will be high res now, it won't contain low res content since it | 4894 // This tiling will be high res now, it won't contain low res content since it |
4895 // was all destroyed. | 4895 // was all destroyed. |
4896 EXPECT_FALSE(tilings->tiling_at(1)->may_contain_low_resolution_tiles()); | 4896 EXPECT_FALSE(tilings->tiling_at(1)->may_contain_low_resolution_tiles()); |
4897 } | 4897 } |
4898 | 4898 |
4899 } // namespace | 4899 } // namespace |
4900 } // namespace cc | 4900 } // namespace cc |
OLD | NEW |