| 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" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 resource7, | 97 resource7, |
| 98 IOSurfaceDrawQuad::FLIPPED); | 98 IOSurfaceDrawQuad::FLIPPED); |
| 99 | 99 |
| 100 if (child_pass.layer_id) { | 100 if (child_pass.layer_id) { |
| 101 RenderPassDrawQuad* render_pass_quad = | 101 RenderPassDrawQuad* render_pass_quad = |
| 102 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 102 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 103 render_pass_quad->SetNew(shared_state, | 103 render_pass_quad->SetNew(shared_state, |
| 104 rect, | 104 rect, |
| 105 visible_rect, | 105 visible_rect, |
| 106 child_pass, | 106 child_pass, |
| 107 false, | |
| 108 resource5, | 107 resource5, |
| 109 rect, | |
| 110 gfx::RectF(), | 108 gfx::RectF(), |
| 111 FilterOperations(), | 109 FilterOperations(), |
| 112 gfx::Vector2dF(), | 110 gfx::Vector2dF(), |
| 113 FilterOperations()); | 111 FilterOperations()); |
| 114 | 112 |
| 115 RenderPassDrawQuad* render_pass_replica_quad = | 113 RenderPassDrawQuad* render_pass_replica_quad = |
| 116 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 114 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 117 render_pass_replica_quad->SetNew(shared_state, | 115 render_pass_replica_quad->SetNew(shared_state, |
| 118 rect, | 116 rect, |
| 119 visible_rect, | 117 visible_rect, |
| 120 child_pass, | 118 child_pass, |
| 121 true, | |
| 122 resource5, | 119 resource5, |
| 123 rect, | |
| 124 gfx::RectF(), | 120 gfx::RectF(), |
| 125 FilterOperations(), | 121 FilterOperations(), |
| 126 gfx::Vector2dF(), | 122 gfx::Vector2dF(), |
| 127 FilterOperations()); | 123 FilterOperations()); |
| 128 } | 124 } |
| 129 | 125 |
| 130 SolidColorDrawQuad* solid_color_quad = | 126 SolidColorDrawQuad* solid_color_quad = |
| 131 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); | 127 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); |
| 132 solid_color_quad->SetNew( | 128 solid_color_quad->SetNew( |
| 133 shared_state, rect, visible_rect, SK_ColorRED, false); | 129 shared_state, rect, visible_rect, SK_ColorRED, false); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 visible_rect, | 218 visible_rect, |
| 223 gfx::RectF(0, 0, 100, 100), | 219 gfx::RectF(0, 0, 100, 100), |
| 224 plane_resources[0], | 220 plane_resources[0], |
| 225 plane_resources[1], | 221 plane_resources[1], |
| 226 plane_resources[2], | 222 plane_resources[2], |
| 227 plane_resources[3], | 223 plane_resources[3], |
| 228 color_space); | 224 color_space); |
| 229 } | 225 } |
| 230 | 226 |
| 231 } // namespace cc | 227 } // namespace cc |
| OLD | NEW |