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