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/delegated_renderer_layer_impl.h" | 5 #include "cc/delegated_renderer_layer_impl.h" |
6 | 6 |
7 #include "cc/append_quads_data.h" | 7 #include "cc/append_quads_data.h" |
8 #include "cc/layer_tree_host_impl.h" | 8 #include "cc/layer_tree_host_impl.h" |
9 #include "cc/layer_tree_impl.h" | 9 #include "cc/layer_tree_impl.h" |
10 #include "cc/quad_sink.h" | 10 #include "cc/quad_sink.h" |
11 #include "cc/render_pass_draw_quad.h" | 11 #include "cc/render_pass_draw_quad.h" |
12 #include "cc/scoped_ptr_vector.h" | 12 #include "cc/scoped_ptr_vector.h" |
13 #include "cc/single_thread_proxy.h" | 13 #include "cc/single_thread_proxy.h" |
14 #include "cc/solid_color_draw_quad.h" | 14 #include "cc/solid_color_draw_quad.h" |
15 #include "cc/solid_color_layer_impl.h" | 15 #include "cc/solid_color_layer_impl.h" |
16 #include "cc/test/fake_layer_tree_host_impl.h" | 16 #include "cc/test/fake_layer_tree_host_impl.h" |
17 #include "cc/test/fake_layer_tree_host_impl_client.h" | 17 #include "cc/test/fake_layer_tree_host_impl_client.h" |
18 #include "cc/test/fake_output_surface.h" | 18 #include "cc/test/fake_output_surface.h" |
19 #include "cc/test/fake_proxy.h" | 19 #include "cc/test/fake_proxy.h" |
20 #include "cc/test/fake_web_graphics_context_3d.h" | |
21 #include "cc/test/geometry_test_utils.h" | 20 #include "cc/test/geometry_test_utils.h" |
22 #include "cc/test/mock_quad_culler.h" | 21 #include "cc/test/mock_quad_culler.h" |
23 #include "cc/test/render_pass_test_common.h" | 22 #include "cc/test/render_pass_test_common.h" |
24 #include "cc/test/render_pass_test_utils.h" | 23 #include "cc/test/render_pass_test_utils.h" |
| 24 #include "cc/test/test_web_graphics_context_3d.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "ui/gfx/transform.h" | 26 #include "ui/gfx/transform.h" |
27 | 27 |
28 namespace cc { | 28 namespace cc { |
29 namespace { | 29 namespace { |
30 | 30 |
31 class DelegatedRendererLayerImplTest : public testing::Test { | 31 class DelegatedRendererLayerImplTest : public testing::Test { |
32 public: | 32 public: |
33 DelegatedRendererLayerImplTest() | 33 DelegatedRendererLayerImplTest() |
34 : proxy_(scoped_ptr<Thread>(NULL)) | 34 : proxy_(scoped_ptr<Thread>(NULL)) |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 root_delegated_shared_quad_state->clip_rect.ToString()); | 1226 root_delegated_shared_quad_state->clip_rect.ToString()); |
1227 // Quads came with a clip rect. | 1227 // Quads came with a clip rect. |
1228 EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); | 1228 EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); |
1229 | 1229 |
1230 host_impl_->drawLayers(frame); | 1230 host_impl_->drawLayers(frame); |
1231 host_impl_->didDrawAllLayers(frame); | 1231 host_impl_->didDrawAllLayers(frame); |
1232 } | 1232 } |
1233 | 1233 |
1234 } // namespace | 1234 } // namespace |
1235 } // namespace cc | 1235 } // namespace cc |
OLD | NEW |