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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 texture_quad->SetNew(shared_state, | 164 texture_quad->SetNew(shared_state, |
165 rect, | 165 rect, |
166 opaque_rect, | 166 opaque_rect, |
167 visible_rect, | 167 visible_rect, |
168 resource1, | 168 resource1, |
169 false, | 169 false, |
170 gfx::PointF(0.f, 0.f), | 170 gfx::PointF(0.f, 0.f), |
171 gfx::PointF(1.f, 1.f), | 171 gfx::PointF(1.f, 1.f), |
172 SK_ColorTRANSPARENT, | 172 SK_ColorTRANSPARENT, |
173 vertex_opacity, | 173 vertex_opacity, |
| 174 false, |
174 false); | 175 false); |
175 | 176 |
176 TextureDrawQuad* mailbox_texture_quad = | 177 TextureDrawQuad* mailbox_texture_quad = |
177 this->CreateAndAppendDrawQuad<TextureDrawQuad>(); | 178 this->CreateAndAppendDrawQuad<TextureDrawQuad>(); |
178 mailbox_texture_quad->SetNew(shared_state, | 179 mailbox_texture_quad->SetNew(shared_state, |
179 rect, | 180 rect, |
180 opaque_rect, | 181 opaque_rect, |
181 visible_rect, | 182 visible_rect, |
182 resource8, | 183 resource8, |
183 false, | 184 false, |
184 gfx::PointF(0.f, 0.f), | 185 gfx::PointF(0.f, 0.f), |
185 gfx::PointF(1.f, 1.f), | 186 gfx::PointF(1.f, 1.f), |
186 SK_ColorTRANSPARENT, | 187 SK_ColorTRANSPARENT, |
187 vertex_opacity, | 188 vertex_opacity, |
| 189 false, |
188 false); | 190 false); |
189 | 191 |
190 TileDrawQuad* scaled_tile_quad = | 192 TileDrawQuad* scaled_tile_quad = |
191 this->CreateAndAppendDrawQuad<TileDrawQuad>(); | 193 this->CreateAndAppendDrawQuad<TileDrawQuad>(); |
192 scaled_tile_quad->SetNew(shared_state, | 194 scaled_tile_quad->SetNew(shared_state, |
193 rect, | 195 rect, |
194 opaque_rect, | 196 opaque_rect, |
195 visible_rect, | 197 visible_rect, |
196 resource2, | 198 resource2, |
197 gfx::RectF(0, 0, 50, 50), | 199 gfx::RectF(0, 0, 50, 50), |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 visible_rect, | 255 visible_rect, |
254 gfx::RectF(0, 0, 100, 100), | 256 gfx::RectF(0, 0, 100, 100), |
255 plane_resources[0], | 257 plane_resources[0], |
256 plane_resources[1], | 258 plane_resources[1], |
257 plane_resources[2], | 259 plane_resources[2], |
258 plane_resources[3], | 260 plane_resources[3], |
259 color_space); | 261 color_space); |
260 } | 262 } |
261 | 263 |
262 } // namespace cc | 264 } // namespace cc |
OLD | NEW |