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/layer_tree_host_impl.h" | 5 #include "cc/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/compositor_frame_metadata.h" | 13 #include "cc/compositor_frame_metadata.h" |
13 #include "cc/delegated_renderer_layer_impl.h" | 14 #include "cc/delegated_renderer_layer_impl.h" |
14 #include "cc/gl_renderer.h" | 15 #include "cc/gl_renderer.h" |
15 #include "cc/heads_up_display_layer_impl.h" | 16 #include "cc/heads_up_display_layer_impl.h" |
16 #include "cc/io_surface_layer_impl.h" | 17 #include "cc/io_surface_layer_impl.h" |
17 #include "cc/layer_impl.h" | 18 #include "cc/layer_impl.h" |
18 #include "cc/layer_tiling_data.h" | 19 #include "cc/layer_tiling_data.h" |
19 #include "cc/layer_tree_impl.h" | 20 #include "cc/layer_tree_impl.h" |
20 #include "cc/math_util.h" | |
21 #include "cc/quad_sink.h" | 21 #include "cc/quad_sink.h" |
22 #include "cc/render_pass_draw_quad.h" | 22 #include "cc/render_pass_draw_quad.h" |
23 #include "cc/scrollbar_geometry_fixed_thumb.h" | 23 #include "cc/scrollbar_geometry_fixed_thumb.h" |
24 #include "cc/scrollbar_layer_impl.h" | 24 #include "cc/scrollbar_layer_impl.h" |
25 #include "cc/single_thread_proxy.h" | 25 #include "cc/single_thread_proxy.h" |
26 #include "cc/solid_color_draw_quad.h" | 26 #include "cc/solid_color_draw_quad.h" |
27 #include "cc/solid_color_layer_impl.h" | 27 #include "cc/solid_color_layer_impl.h" |
28 #include "cc/test/animation_test_common.h" | 28 #include "cc/test/animation_test_common.h" |
29 #include "cc/test/fake_output_surface.h" | 29 #include "cc/test/fake_output_surface.h" |
30 #include "cc/test/fake_proxy.h" | 30 #include "cc/test/fake_proxy.h" |
(...skipping 4310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4341 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); | 4341 EXPECT_EQ(gfx::Rect(0, 0, 100, 100).ToString(), renderPassQuad->rect.ToS
tring()); |
4342 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); | 4342 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), renderPassQuad->mas
k_uv_rect.ToString()); |
4343 | 4343 |
4344 m_hostImpl->DrawLayers(&frame); | 4344 m_hostImpl->DrawLayers(&frame); |
4345 m_hostImpl->DidDrawAllLayers(frame); | 4345 m_hostImpl->DidDrawAllLayers(frame); |
4346 } | 4346 } |
4347 } | 4347 } |
4348 | 4348 |
4349 } // namespace | 4349 } // namespace |
4350 } // namespace cc | 4350 } // namespace cc |
OLD | NEW |