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/delegated_renderer_layer_impl.h" | 5 #include "cc/layers/delegated_renderer_layer_impl.h" |
6 | 6 |
7 #include "cc/base/scoped_ptr_vector.h" | 7 #include "cc/base/scoped_ptr_vector.h" |
8 #include "cc/layers/quad_sink.h" | |
9 #include "cc/layers/solid_color_layer_impl.h" | 8 #include "cc/layers/solid_color_layer_impl.h" |
10 #include "cc/quads/render_pass_draw_quad.h" | 9 #include "cc/quads/render_pass_draw_quad.h" |
11 #include "cc/quads/solid_color_draw_quad.h" | 10 #include "cc/quads/solid_color_draw_quad.h" |
12 #include "cc/test/fake_delegated_renderer_layer_impl.h" | 11 #include "cc/test/fake_delegated_renderer_layer_impl.h" |
13 #include "cc/test/fake_layer_tree_host_impl.h" | 12 #include "cc/test/fake_layer_tree_host_impl.h" |
14 #include "cc/test/fake_layer_tree_host_impl_client.h" | 13 #include "cc/test/fake_layer_tree_host_impl_client.h" |
15 #include "cc/test/fake_output_surface.h" | 14 #include "cc/test/fake_output_surface.h" |
16 #include "cc/test/fake_proxy.h" | 15 #include "cc/test/fake_proxy.h" |
17 #include "cc/test/fake_rendering_stats_instrumentation.h" | 16 #include "cc/test/fake_rendering_stats_instrumentation.h" |
18 #include "cc/test/geometry_test_utils.h" | 17 #include "cc/test/geometry_test_utils.h" |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 // The occlusion extends to 500 in the x-axis, pushing the left of the | 1518 // The occlusion extends to 500 in the x-axis, pushing the left of the |
1520 // visible part of the quad to 500 - 211 = 300 - 11 inside the quad. | 1519 // visible part of the quad to 500 - 211 = 300 - 11 inside the quad. |
1521 EXPECT_EQ(gfx::Rect(300 - 11, 0, 100 + 11, 500).ToString(), | 1520 EXPECT_EQ(gfx::Rect(300 - 11, 0, 100 + 11, 500).ToString(), |
1522 impl.quad_list()[0]->visible_rect.ToString()); | 1521 impl.quad_list()[0]->visible_rect.ToString()); |
1523 } | 1522 } |
1524 } | 1523 } |
1525 } | 1524 } |
1526 | 1525 |
1527 } // namespace | 1526 } // namespace |
1528 } // namespace cc | 1527 } // namespace cc |
OLD | NEW |