| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 plane_resources[i] = resource_provider->CreateResource( | 245 plane_resources[i] = resource_provider->CreateResource( |
| 246 gfx::Size(20, 12), | 246 gfx::Size(20, 12), |
| 247 GL_CLAMP_TO_EDGE, | 247 GL_CLAMP_TO_EDGE, |
| 248 ResourceProvider::TextureHintImmutable, | 248 ResourceProvider::TextureHintImmutable, |
| 249 resource_provider->best_texture_format()); | 249 resource_provider->best_texture_format()); |
| 250 resource_provider->AllocateForTesting(plane_resources[i]); | 250 resource_provider->AllocateForTesting(plane_resources[i]); |
| 251 } | 251 } |
| 252 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601; | 252 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::REC_601; |
| 253 YUVVideoDrawQuad* yuv_quad = | 253 YUVVideoDrawQuad* yuv_quad = |
| 254 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); | 254 this->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); |
| 255 yuv_quad->SetNew(shared_state2, | 255 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, |
| 256 rect, | 256 gfx::RectF(0, 0, 100, 100), gfx::Size(100, 100), |
| 257 opaque_rect, | 257 plane_resources[0], plane_resources[1], plane_resources[2], |
| 258 visible_rect, | 258 plane_resources[3], color_space); |
| 259 gfx::RectF(0, 0, 100, 100), | |
| 260 plane_resources[0], | |
| 261 plane_resources[1], | |
| 262 plane_resources[2], | |
| 263 plane_resources[3], | |
| 264 color_space); | |
| 265 } | 259 } |
| 266 | 260 |
| 267 } // namespace cc | 261 } // namespace cc |
| OLD | NEW |