| 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/quads/render_pass.h" | 5 #include "cc/quads/render_pass.h" |
| 6 | 6 |
| 7 #include "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "cc/base/scoped_ptr_vector.h" | 8 #include "cc/base/scoped_ptr_vector.h" |
| 9 #include "cc/output/copy_output_request.h" | 9 #include "cc/output/copy_output_request.h" |
| 10 #include "cc/quads/checkerboard_draw_quad.h" | 10 #include "cc/quads/checkerboard_draw_quad.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 scoped_ptr<RenderPassDrawQuad> pass_quad = RenderPassDrawQuad::Create(); | 221 scoped_ptr<RenderPassDrawQuad> pass_quad = RenderPassDrawQuad::Create(); |
| 222 pass_quad->SetNew(pass->shared_quad_state_list.back(), | 222 pass_quad->SetNew(pass->shared_quad_state_list.back(), |
| 223 contrib_output_rect, | 223 contrib_output_rect, |
| 224 contrib_output_rect, | 224 contrib_output_rect, |
| 225 contrib_id, | 225 contrib_id, |
| 226 false, // is_replica | 226 false, // is_replica |
| 227 0, // mask_resource_id | 227 0, // mask_resource_id |
| 228 contrib_damage_rect, | 228 contrib_damage_rect, |
| 229 gfx::RectF(), // mask_uv_rect | 229 gfx::RectF(), // mask_uv_rect |
| 230 FilterOperations(), | 230 FilterOperations(), |
| 231 FilterOperations()); | 231 FilterOperations(), |
| 232 gfx::Vector2dF(1.f, 1.f)); |
| 232 pass->quad_list.push_back(pass_quad.PassAs<DrawQuad>()); | 233 pass->quad_list.push_back(pass_quad.PassAs<DrawQuad>()); |
| 233 | 234 |
| 234 pass_list.push_back(pass.PassAs<RenderPass>()); | 235 pass_list.push_back(pass.PassAs<RenderPass>()); |
| 235 pass_list.push_back(contrib.PassAs<RenderPass>()); | 236 pass_list.push_back(contrib.PassAs<RenderPass>()); |
| 236 | 237 |
| 237 // Make a copy with CopyAll(). | 238 // Make a copy with CopyAll(). |
| 238 RenderPassList copy_list; | 239 RenderPassList copy_list; |
| 239 RenderPass::CopyAll(pass_list, ©_list); | 240 RenderPass::CopyAll(pass_list, ©_list); |
| 240 | 241 |
| 241 CompareRenderPassLists(pass_list, copy_list); | 242 CompareRenderPassLists(pass_list, copy_list); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 323 |
| 323 // Make a copy with CopyAll(). | 324 // Make a copy with CopyAll(). |
| 324 RenderPassList copy_list; | 325 RenderPassList copy_list; |
| 325 RenderPass::CopyAll(pass_list, ©_list); | 326 RenderPass::CopyAll(pass_list, ©_list); |
| 326 | 327 |
| 327 CompareRenderPassLists(pass_list, copy_list); | 328 CompareRenderPassLists(pass_list, copy_list); |
| 328 } | 329 } |
| 329 | 330 |
| 330 } // namespace | 331 } // namespace |
| 331 } // namespace cc | 332 } // namespace cc |
| OLD | NEW |