OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
12 #include "cc/base/math_util.h" | 12 #include "cc/base/math_util.h" |
13 #include "cc/delegated_renderer_layer_impl.h" | |
14 #include "cc/heads_up_display_layer_impl.h" | |
15 #include "cc/input/top_controls_manager.h" | 13 #include "cc/input/top_controls_manager.h" |
16 #include "cc/io_surface_layer_impl.h" | 14 #include "cc/layers/delegated_renderer_layer_impl.h" |
17 #include "cc/layer_impl.h" | 15 #include "cc/layers/heads_up_display_layer_impl.h" |
| 16 #include "cc/layers/io_surface_layer_impl.h" |
| 17 #include "cc/layers/layer_impl.h" |
| 18 #include "cc/layers/quad_sink.h" |
| 19 #include "cc/layers/scrollbar_geometry_fixed_thumb.h" |
| 20 #include "cc/layers/scrollbar_layer_impl.h" |
| 21 #include "cc/layers/solid_color_layer_impl.h" |
| 22 #include "cc/layers/texture_layer_impl.h" |
| 23 #include "cc/layers/tiled_layer_impl.h" |
| 24 #include "cc/layers/video_layer_impl.h" |
18 #include "cc/output/compositor_frame_metadata.h" | 25 #include "cc/output/compositor_frame_metadata.h" |
19 #include "cc/output/gl_renderer.h" | 26 #include "cc/output/gl_renderer.h" |
20 #include "cc/quad_sink.h" | |
21 #include "cc/quads/render_pass_draw_quad.h" | 27 #include "cc/quads/render_pass_draw_quad.h" |
22 #include "cc/quads/solid_color_draw_quad.h" | 28 #include "cc/quads/solid_color_draw_quad.h" |
23 #include "cc/quads/texture_draw_quad.h" | 29 #include "cc/quads/texture_draw_quad.h" |
24 #include "cc/quads/tile_draw_quad.h" | 30 #include "cc/quads/tile_draw_quad.h" |
25 #include "cc/resources/layer_tiling_data.h" | 31 #include "cc/resources/layer_tiling_data.h" |
26 #include "cc/scrollbar_geometry_fixed_thumb.h" | |
27 #include "cc/scrollbar_layer_impl.h" | |
28 #include "cc/solid_color_layer_impl.h" | |
29 #include "cc/test/animation_test_common.h" | 32 #include "cc/test/animation_test_common.h" |
30 #include "cc/test/fake_output_surface.h" | 33 #include "cc/test/fake_output_surface.h" |
31 #include "cc/test/fake_proxy.h" | 34 #include "cc/test/fake_proxy.h" |
32 #include "cc/test/fake_video_frame_provider.h" | 35 #include "cc/test/fake_video_frame_provider.h" |
33 #include "cc/test/fake_web_scrollbar_theme_geometry.h" | 36 #include "cc/test/fake_web_scrollbar_theme_geometry.h" |
34 #include "cc/test/geometry_test_utils.h" | 37 #include "cc/test/geometry_test_utils.h" |
35 #include "cc/test/layer_test_common.h" | 38 #include "cc/test/layer_test_common.h" |
36 #include "cc/test/render_pass_test_common.h" | 39 #include "cc/test/render_pass_test_common.h" |
37 #include "cc/test/test_web_graphics_context_3d.h" | 40 #include "cc/test/test_web_graphics_context_3d.h" |
38 #include "cc/texture_layer_impl.h" | |
39 #include "cc/tiled_layer_impl.h" | |
40 #include "cc/trees/layer_tree_impl.h" | 41 #include "cc/trees/layer_tree_impl.h" |
41 #include "cc/trees/single_thread_proxy.h" | 42 #include "cc/trees/single_thread_proxy.h" |
42 #include "cc/video_layer_impl.h" | |
43 #include "media/base/media.h" | 43 #include "media/base/media.h" |
44 #include "testing/gmock/include/gmock/gmock.h" | 44 #include "testing/gmock/include/gmock/gmock.h" |
45 #include "testing/gtest/include/gtest/gtest.h" | 45 #include "testing/gtest/include/gtest/gtest.h" |
46 #include "ui/gfx/size_conversions.h" | 46 #include "ui/gfx/size_conversions.h" |
47 #include "ui/gfx/vector2d_conversions.h" | 47 #include "ui/gfx/vector2d_conversions.h" |
48 | 48 |
49 using ::testing::Mock; | 49 using ::testing::Mock; |
50 using ::testing::Return; | 50 using ::testing::Return; |
51 using ::testing::AnyNumber; | 51 using ::testing::AnyNumber; |
52 using ::testing::AtLeast; | 52 using ::testing::AtLeast; |
(...skipping 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4342 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); | 4342 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); |
4343 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); | 4343 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); |
4344 | 4344 |
4345 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now()); | 4345 m_hostImpl->DrawLayers(&frame, base::TimeTicks::Now()); |
4346 m_hostImpl->DidDrawAllLayers(frame); | 4346 m_hostImpl->DidDrawAllLayers(frame); |
4347 } | 4347 } |
4348 } | 4348 } |
4349 | 4349 |
4350 } // namespace | 4350 } // namespace |
4351 } // namespace cc | 4351 } // namespace cc |
OLD | NEW |