| 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/checkerboard_draw_quad.h" | 7 #include "cc/checkerboard_draw_quad.h" |
| 8 #include "cc/debug_border_draw_quad.h" | 8 #include "cc/debug_border_draw_quad.h" |
| 9 #include "cc/io_surface_draw_quad.h" | 9 #include "cc/io_surface_draw_quad.h" |
| 10 #include "cc/render_pass_draw_quad.h" | 10 #include "cc/render_pass_draw_quad.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 false, | 70 false, |
| 71 0, | 71 0, |
| 72 rect, | 72 rect, |
| 73 gfx::RectF()); | 73 gfx::RectF()); |
| 74 AppendQuad(render_pass_quad.PassAs<DrawQuad>()); | 74 AppendQuad(render_pass_quad.PassAs<DrawQuad>()); |
| 75 | 75 |
| 76 scoped_ptr<cc::SolidColorDrawQuad> solid_color_quad = | 76 scoped_ptr<cc::SolidColorDrawQuad> solid_color_quad = |
| 77 cc::SolidColorDrawQuad::Create(); | 77 cc::SolidColorDrawQuad::Create(); |
| 78 solid_color_quad->SetNew(shared_state.get(), | 78 solid_color_quad->SetNew(shared_state.get(), |
| 79 rect, | 79 rect, |
| 80 SK_ColorRED); | 80 SK_ColorRED, |
| 81 false, false, false, false); |
| 81 AppendQuad(solid_color_quad.PassAs<DrawQuad>()); | 82 AppendQuad(solid_color_quad.PassAs<DrawQuad>()); |
| 82 | 83 |
| 83 scoped_ptr<cc::StreamVideoDrawQuad> stream_video_quad = | 84 scoped_ptr<cc::StreamVideoDrawQuad> stream_video_quad = |
| 84 cc::StreamVideoDrawQuad::Create(); | 85 cc::StreamVideoDrawQuad::Create(); |
| 85 stream_video_quad->SetNew(shared_state.get(), | 86 stream_video_quad->SetNew(shared_state.get(), |
| 86 rect, | 87 rect, |
| 87 opaque_rect, | 88 opaque_rect, |
| 88 1, | 89 1, |
| 89 gfx::Transform()); | 90 gfx::Transform()); |
| 90 AppendQuad(stream_video_quad.PassAs<DrawQuad>()); | 91 AppendQuad(stream_video_quad.PassAs<DrawQuad>()); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 planes[0], | 167 planes[0], |
| 167 planes[1], | 168 planes[1], |
| 168 planes[2]); | 169 planes[2]); |
| 169 AppendQuad(yuv_quad.PassAs<DrawQuad>()); | 170 AppendQuad(yuv_quad.PassAs<DrawQuad>()); |
| 170 | 171 |
| 171 AppendSharedQuadState(transformed_state.Pass()); | 172 AppendSharedQuadState(transformed_state.Pass()); |
| 172 AppendSharedQuadState(shared_state.Pass()); | 173 AppendSharedQuadState(shared_state.Pass()); |
| 173 } | 174 } |
| 174 | 175 |
| 175 } // namespace cc | 176 } // namespace cc |
| OLD | NEW |