| 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 FilterOperations()); | 110 FilterOperations()); |
| 113 | 111 |
| 114 RenderPassDrawQuad* render_pass_replica_quad = | 112 RenderPassDrawQuad* render_pass_replica_quad = |
| 115 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 113 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 116 render_pass_replica_quad->SetNew(shared_state, | 114 render_pass_replica_quad->SetNew(shared_state, |
| 117 rect, | 115 rect, |
| 118 visible_rect, | 116 visible_rect, |
| 119 child_pass, | 117 child_pass, |
| 120 true, | |
| 121 resource5, | 118 resource5, |
| 122 rect, | |
| 123 gfx::RectF(), | 119 gfx::RectF(), |
| 124 FilterOperations(), | 120 FilterOperations(), |
| 125 FilterOperations()); | 121 FilterOperations()); |
| 126 } | 122 } |
| 127 | 123 |
| 128 SolidColorDrawQuad* solid_color_quad = | 124 SolidColorDrawQuad* solid_color_quad = |
| 129 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); | 125 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); |
| 130 solid_color_quad->SetNew( | 126 solid_color_quad->SetNew( |
| 131 shared_state, rect, visible_rect, SK_ColorRED, false); | 127 shared_state, rect, visible_rect, SK_ColorRED, false); |
| 132 | 128 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 visible_rect, | 216 visible_rect, |
| 221 gfx::RectF(0, 0, 100, 100), | 217 gfx::RectF(0, 0, 100, 100), |
| 222 plane_resources[0], | 218 plane_resources[0], |
| 223 plane_resources[1], | 219 plane_resources[1], |
| 224 plane_resources[2], | 220 plane_resources[2], |
| 225 plane_resources[3], | 221 plane_resources[3], |
| 226 color_space); | 222 color_space); |
| 227 } | 223 } |
| 228 | 224 |
| 229 } // namespace cc | 225 } // namespace cc |
| OLD | NEW |