Chromium Code Reviews| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "cc/quads/checkerboard_draw_quad.h" | 8 #include "cc/quads/checkerboard_draw_quad.h" |
| 9 #include "cc/quads/debug_border_draw_quad.h" | 9 #include "cc/quads/debug_border_draw_quad.h" |
| 10 #include "cc/quads/io_surface_draw_quad.h" | 10 #include "cc/quads/io_surface_draw_quad.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 IOSurfaceDrawQuad::FLIPPED); | 117 IOSurfaceDrawQuad::FLIPPED); |
| 118 | 118 |
| 119 if (child_pass.layer_id) { | 119 if (child_pass.layer_id) { |
| 120 RenderPassDrawQuad* render_pass_quad = | 120 RenderPassDrawQuad* render_pass_quad = |
| 121 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 121 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 122 render_pass_quad->SetNew(shared_state, | 122 render_pass_quad->SetNew(shared_state, |
| 123 rect, | 123 rect, |
| 124 visible_rect, | 124 visible_rect, |
| 125 child_pass, | 125 child_pass, |
| 126 resource5, | 126 resource5, |
| 127 gfx::RectF(), | 127 gfx::Vector2dF(), |
|
danakj
2014/10/15 15:33:35
resource5 has a size of gfx::Size(73, 26) should w
enne (OOO)
2014/10/15 19:10:55
Done.
| |
| 128 gfx::Size(), | |
| 128 FilterOperations(), | 129 FilterOperations(), |
| 129 gfx::Vector2dF(), | 130 gfx::Vector2dF(), |
| 130 FilterOperations()); | 131 FilterOperations()); |
| 131 | 132 |
| 132 RenderPassDrawQuad* render_pass_replica_quad = | 133 RenderPassDrawQuad* render_pass_replica_quad = |
| 133 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 134 this->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
| 134 render_pass_replica_quad->SetNew(shared_state, | 135 render_pass_replica_quad->SetNew(shared_state, |
| 135 rect, | 136 rect, |
| 136 visible_rect, | 137 visible_rect, |
| 137 child_pass, | 138 child_pass, |
| 138 resource5, | 139 resource5, |
| 139 gfx::RectF(), | 140 gfx::Vector2dF(), |
| 141 gfx::Size(), | |
| 140 FilterOperations(), | 142 FilterOperations(), |
| 141 gfx::Vector2dF(), | 143 gfx::Vector2dF(), |
| 142 FilterOperations()); | 144 FilterOperations()); |
| 143 } | 145 } |
| 144 | 146 |
| 145 SolidColorDrawQuad* solid_color_quad = | 147 SolidColorDrawQuad* solid_color_quad = |
| 146 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); | 148 this->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); |
| 147 solid_color_quad->SetNew( | 149 solid_color_quad->SetNew( |
| 148 shared_state, rect, visible_rect, SK_ColorRED, false); | 150 shared_state, rect, visible_rect, SK_ColorRED, false); |
| 149 | 151 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 visible_rect, | 252 visible_rect, |
| 251 gfx::RectF(0, 0, 100, 100), | 253 gfx::RectF(0, 0, 100, 100), |
| 252 plane_resources[0], | 254 plane_resources[0], |
| 253 plane_resources[1], | 255 plane_resources[1], |
| 254 plane_resources[2], | 256 plane_resources[2], |
| 255 plane_resources[3], | 257 plane_resources[3], |
| 256 color_space); | 258 color_space); |
| 257 } | 259 } |
| 258 | 260 |
| 259 } // namespace cc | 261 } // namespace cc |
| OLD | NEW |