| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 AppendQuad(io_surface_quad.PassAs<DrawQuad>()); | 59 AppendQuad(io_surface_quad.PassAs<DrawQuad>()); |
| 60 | 60 |
| 61 scoped_ptr<cc::RenderPassDrawQuad> render_pass_quad = | 61 scoped_ptr<cc::RenderPassDrawQuad> render_pass_quad = |
| 62 cc::RenderPassDrawQuad::Create(); | 62 cc::RenderPassDrawQuad::Create(); |
| 63 render_pass_quad->SetNew(shared_state.get(), | 63 render_pass_quad->SetNew(shared_state.get(), |
| 64 rect, | 64 rect, |
| 65 cc::RenderPass::Id(1, 1), | 65 cc::RenderPass::Id(1, 1), |
| 66 false, | 66 false, |
| 67 0, | 67 0, |
| 68 rect, | 68 rect, |
| 69 gfx::RectF()); | 69 gfx::RectF(), |
| 70 WebKit::WebFilterOperations(), |
| 71 skia::RefPtr<SkImageFilter>(), |
| 72 WebKit::WebFilterOperations()); |
| 70 AppendQuad(render_pass_quad.PassAs<DrawQuad>()); | 73 AppendQuad(render_pass_quad.PassAs<DrawQuad>()); |
| 71 | 74 |
| 72 scoped_ptr<cc::SolidColorDrawQuad> solid_color_quad = | 75 scoped_ptr<cc::SolidColorDrawQuad> solid_color_quad = |
| 73 cc::SolidColorDrawQuad::Create(); | 76 cc::SolidColorDrawQuad::Create(); |
| 74 solid_color_quad->SetNew(shared_state.get(), | 77 solid_color_quad->SetNew(shared_state.get(), |
| 75 rect, | 78 rect, |
| 76 SK_ColorRED); | 79 SK_ColorRED); |
| 77 AppendQuad(solid_color_quad.PassAs<DrawQuad>()); | 80 AppendQuad(solid_color_quad.PassAs<DrawQuad>()); |
| 78 | 81 |
| 79 scoped_ptr<cc::StreamVideoDrawQuad> stream_video_quad = | 82 scoped_ptr<cc::StreamVideoDrawQuad> stream_video_quad = |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 planes[0], | 165 planes[0], |
| 163 planes[1], | 166 planes[1], |
| 164 planes[2]); | 167 planes[2]); |
| 165 AppendQuad(yuv_quad.PassAs<DrawQuad>()); | 168 AppendQuad(yuv_quad.PassAs<DrawQuad>()); |
| 166 | 169 |
| 167 AppendSharedQuadState(transformed_state.Pass()); | 170 AppendSharedQuadState(transformed_state.Pass()); |
| 168 AppendSharedQuadState(shared_state.Pass()); | 171 AppendSharedQuadState(shared_state.Pass()); |
| 169 } | 172 } |
| 170 | 173 |
| 171 } // namespace cc | 174 } // namespace cc |
| OLD | NEW |