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/test/render_pass_test_common.h" | 5 #include "cc/test/render_pass_test_common.h" |
6 | 6 |
7 #include "cc/quads/checkerboard_draw_quad.h" | 7 #include "cc/quads/checkerboard_draw_quad.h" |
8 #include "cc/quads/debug_border_draw_quad.h" | 8 #include "cc/quads/debug_border_draw_quad.h" |
9 #include "cc/quads/io_surface_draw_quad.h" | 9 #include "cc/quads/io_surface_draw_quad.h" |
10 #include "cc/quads/render_pass_draw_quad.h" | 10 #include "cc/quads/render_pass_draw_quad.h" |
11 #include "cc/quads/shared_quad_state.h" | 11 #include "cc/quads/shared_quad_state.h" |
12 #include "cc/quads/solid_color_draw_quad.h" | 12 #include "cc/quads/solid_color_draw_quad.h" |
13 #include "cc/quads/stream_video_draw_quad.h" | 13 #include "cc/quads/stream_video_draw_quad.h" |
14 #include "cc/quads/texture_draw_quad.h" | 14 #include "cc/quads/texture_draw_quad.h" |
15 #include "cc/quads/tile_draw_quad.h" | 15 #include "cc/quads/tile_draw_quad.h" |
16 #include "cc/quads/yuv_video_draw_quad.h" | 16 #include "cc/quads/yuv_video_draw_quad.h" |
17 #include "cc/resource_provider.h" | 17 #include "cc/resources/resource_provider.h" |
18 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 void TestRenderPass::AppendQuad(scoped_ptr<cc::DrawQuad> quad) { | 22 void TestRenderPass::AppendQuad(scoped_ptr<cc::DrawQuad> quad) { |
23 quad_list.push_back(quad.Pass()); | 23 quad_list.push_back(quad.Pass()); |
24 } | 24 } |
25 | 25 |
26 void TestRenderPass::AppendSharedQuadState( | 26 void TestRenderPass::AppendSharedQuadState( |
27 scoped_ptr<cc::SharedQuadState> state) { | 27 scoped_ptr<cc::SharedQuadState> state) { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 planes[0], | 221 planes[0], |
222 planes[1], | 222 planes[1], |
223 planes[2]); | 223 planes[2]); |
224 AppendQuad(yuv_quad.PassAs<DrawQuad>()); | 224 AppendQuad(yuv_quad.PassAs<DrawQuad>()); |
225 | 225 |
226 AppendSharedQuadState(transformed_state.Pass()); | 226 AppendSharedQuadState(transformed_state.Pass()); |
227 AppendSharedQuadState(shared_state.Pass()); | 227 AppendSharedQuadState(shared_state.Pass()); |
228 } | 228 } |
229 | 229 |
230 } // namespace cc | 230 } // namespace cc |
OLD | NEW |