OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/tiled_layer_impl.h" | 5 #include "cc/layers/tiled_layer_impl.h" |
6 | 6 |
7 #include "cc/layers/append_quads_data.h" | 7 #include "cc/layers/append_quads_data.h" |
8 #include "cc/quads/tile_draw_quad.h" | 8 #include "cc/quads/tile_draw_quad.h" |
9 #include "cc/resources/layer_tiling_data.h" | |
10 #include "cc/test/fake_impl_proxy.h" | 9 #include "cc/test/fake_impl_proxy.h" |
11 #include "cc/test/fake_layer_tree_host_impl.h" | 10 #include "cc/test/fake_layer_tree_host_impl.h" |
12 #include "cc/test/fake_output_surface.h" | 11 #include "cc/test/fake_output_surface.h" |
13 #include "cc/test/layer_test_common.h" | 12 #include "cc/test/layer_test_common.h" |
14 #include "cc/test/test_task_graph_runner.h" | 13 #include "cc/test/test_task_graph_runner.h" |
| 14 #include "cc/tiles/layer_tiling_data.h" |
15 #include "cc/trees/single_thread_proxy.h" | 15 #include "cc/trees/single_thread_proxy.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 namespace { | 20 namespace { |
21 | 21 |
22 class TiledLayerImplTest : public testing::Test { | 22 class TiledLayerImplTest : public testing::Test { |
23 public: | 23 public: |
24 TiledLayerImplTest() | 24 TiledLayerImplTest() |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 LayerTestCommon::VerifyQuadsAreOccluded( | 380 LayerTestCommon::VerifyQuadsAreOccluded( |
381 impl.quad_list(), occluded, &partially_occluded_count); | 381 impl.quad_list(), occluded, &partially_occluded_count); |
382 // The layer outputs one quad, which is partially occluded. | 382 // The layer outputs one quad, which is partially occluded. |
383 EXPECT_EQ(100u - 10u, impl.quad_list().size()); | 383 EXPECT_EQ(100u - 10u, impl.quad_list().size()); |
384 EXPECT_EQ(10u + 10u, partially_occluded_count); | 384 EXPECT_EQ(10u + 10u, partially_occluded_count); |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 } // namespace | 388 } // namespace |
389 } // namespace cc | 389 } // namespace cc |
OLD | NEW |