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/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/containers/scoped_ptr_hash_map.h" | 12 #include "base/containers/scoped_ptr_hash_map.h" |
13 #include "cc/animation/scrollbar_animation_controller_thinning.h" | 13 #include "cc/animation/scrollbar_animation_controller_thinning.h" |
14 #include "cc/base/math_util.h" | 14 #include "cc/base/math_util.h" |
15 #include "cc/debug/test_web_graphics_context_3d.h" | |
16 #include "cc/input/top_controls_manager.h" | 15 #include "cc/input/top_controls_manager.h" |
17 #include "cc/layers/delegated_renderer_layer_impl.h" | 16 #include "cc/layers/delegated_renderer_layer_impl.h" |
18 #include "cc/layers/heads_up_display_layer_impl.h" | 17 #include "cc/layers/heads_up_display_layer_impl.h" |
19 #include "cc/layers/io_surface_layer_impl.h" | 18 #include "cc/layers/io_surface_layer_impl.h" |
20 #include "cc/layers/layer_impl.h" | 19 #include "cc/layers/layer_impl.h" |
21 #include "cc/layers/painted_scrollbar_layer_impl.h" | 20 #include "cc/layers/painted_scrollbar_layer_impl.h" |
22 #include "cc/layers/quad_sink.h" | 21 #include "cc/layers/quad_sink.h" |
23 #include "cc/layers/render_surface_impl.h" | 22 #include "cc/layers/render_surface_impl.h" |
24 #include "cc/layers/solid_color_layer_impl.h" | 23 #include "cc/layers/solid_color_layer_impl.h" |
25 #include "cc/layers/texture_layer_impl.h" | 24 #include "cc/layers/texture_layer_impl.h" |
(...skipping 15 matching lines...) Expand all Loading... |
41 #include "cc/test/fake_output_surface.h" | 40 #include "cc/test/fake_output_surface.h" |
42 #include "cc/test/fake_output_surface_client.h" | 41 #include "cc/test/fake_output_surface_client.h" |
43 #include "cc/test/fake_picture_layer_impl.h" | 42 #include "cc/test/fake_picture_layer_impl.h" |
44 #include "cc/test/fake_picture_pile_impl.h" | 43 #include "cc/test/fake_picture_pile_impl.h" |
45 #include "cc/test/fake_proxy.h" | 44 #include "cc/test/fake_proxy.h" |
46 #include "cc/test/fake_rendering_stats_instrumentation.h" | 45 #include "cc/test/fake_rendering_stats_instrumentation.h" |
47 #include "cc/test/fake_video_frame_provider.h" | 46 #include "cc/test/fake_video_frame_provider.h" |
48 #include "cc/test/geometry_test_utils.h" | 47 #include "cc/test/geometry_test_utils.h" |
49 #include "cc/test/layer_test_common.h" | 48 #include "cc/test/layer_test_common.h" |
50 #include "cc/test/render_pass_test_common.h" | 49 #include "cc/test/render_pass_test_common.h" |
| 50 #include "cc/test/test_web_graphics_context_3d.h" |
51 #include "cc/trees/layer_tree_impl.h" | 51 #include "cc/trees/layer_tree_impl.h" |
52 #include "cc/trees/single_thread_proxy.h" | 52 #include "cc/trees/single_thread_proxy.h" |
53 #include "media/base/media.h" | 53 #include "media/base/media.h" |
54 #include "testing/gmock/include/gmock/gmock.h" | 54 #include "testing/gmock/include/gmock/gmock.h" |
55 #include "testing/gtest/include/gtest/gtest.h" | 55 #include "testing/gtest/include/gtest/gtest.h" |
56 #include "ui/gfx/frame_time.h" | 56 #include "ui/gfx/frame_time.h" |
57 #include "ui/gfx/rect_conversions.h" | 57 #include "ui/gfx/rect_conversions.h" |
58 #include "ui/gfx/size_conversions.h" | 58 #include "ui/gfx/size_conversions.h" |
59 #include "ui/gfx/vector2d_conversions.h" | 59 #include "ui/gfx/vector2d_conversions.h" |
60 | 60 |
(...skipping 5404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5465 // The root should have scrolled. | 5465 // The root should have scrolled. |
5466 ASSERT_EQ(2u, scroll_info->scrolls.size()); | 5466 ASSERT_EQ(2u, scroll_info->scrolls.size()); |
5467 ExpectContains(*scroll_info.get(), | 5467 ExpectContains(*scroll_info.get(), |
5468 host_impl_->active_tree()->root_layer()->id(), | 5468 host_impl_->active_tree()->root_layer()->id(), |
5469 gfx::Vector2d(0, 10)); | 5469 gfx::Vector2d(0, 10)); |
5470 } | 5470 } |
5471 } | 5471 } |
5472 | 5472 |
5473 } // namespace | 5473 } // namespace |
5474 } // namespace cc | 5474 } // namespace cc |
OLD | NEW |