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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 // The occlusion extends to 500 in the x-axis, pushing the left of the | 1502 // The occlusion extends to 500 in the x-axis, pushing the left of the |
1504 // visible part of the quad to 500 - 211 = 300 - 11 inside the quad. | 1503 // visible part of the quad to 500 - 211 = 300 - 11 inside the quad. |
1505 EXPECT_EQ(gfx::Rect(300 - 11, 0, 100 + 11, 500).ToString(), | 1504 EXPECT_EQ(gfx::Rect(300 - 11, 0, 100 + 11, 500).ToString(), |
1506 impl.quad_list()[0]->visible_rect.ToString()); | 1505 impl.quad_list()[0]->visible_rect.ToString()); |
1507 } | 1506 } |
1508 } | 1507 } |
1509 } | 1508 } |
1510 | 1509 |
1511 } // namespace | 1510 } // namespace |
1512 } // namespace cc | 1511 } // namespace cc |
OLD | NEW |