| 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_utils.h" | 5 #include "cc/test/render_pass_test_utils.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "cc/quads/debug_border_draw_quad.h" | 10 #include "cc/quads/debug_border_draw_quad.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 SolidColorDrawQuad* solid_color_quad = | 183 SolidColorDrawQuad* solid_color_quad = |
| 184 to_pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); | 184 to_pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>(); |
| 185 solid_color_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED, | 185 solid_color_quad->SetNew(shared_state, rect, visible_rect, SK_ColorRED, |
| 186 false); | 186 false); |
| 187 | 187 |
| 188 StreamVideoDrawQuad* stream_video_quad = | 188 StreamVideoDrawQuad* stream_video_quad = |
| 189 to_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); | 189 to_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); |
| 190 stream_video_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, | 190 stream_video_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, |
| 191 resource6, gfx::Size(), gfx::Transform()); | 191 resource6, gfx::Size(), |
| 192 gfx::BufferFormat::BGRA_8888, gfx::Transform()); |
| 192 | 193 |
| 193 TextureDrawQuad* texture_quad = | 194 TextureDrawQuad* texture_quad = |
| 194 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); | 195 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); |
| 195 texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, resource1, | 196 texture_quad->SetNew(shared_state, rect, opaque_rect, visible_rect, resource1, |
| 196 false, gfx::PointF(0.f, 0.f), gfx::PointF(1.f, 1.f), | 197 false, gfx::PointF(0.f, 0.f), gfx::PointF(1.f, 1.f), |
| 197 SK_ColorTRANSPARENT, vertex_opacity, false, false, | 198 SK_ColorTRANSPARENT, vertex_opacity, false, false, |
| 198 false); | 199 false); |
| 199 | 200 |
| 200 TextureDrawQuad* mailbox_texture_quad = | 201 TextureDrawQuad* mailbox_texture_quad = |
| 201 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); | 202 to_pass->CreateAndAppendDrawQuad<TextureDrawQuad>(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 to_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); | 246 to_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>(); |
| 246 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, | 247 yuv_quad->SetNew(shared_state2, rect, opaque_rect, visible_rect, |
| 247 gfx::RectF(.0f, .0f, 100.0f, 100.0f), | 248 gfx::RectF(.0f, .0f, 100.0f, 100.0f), |
| 248 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100), | 249 gfx::RectF(.0f, .0f, 50.0f, 50.0f), gfx::Size(100, 100), |
| 249 gfx::Size(50, 50), plane_resources[0], plane_resources[1], | 250 gfx::Size(50, 50), plane_resources[0], plane_resources[1], |
| 250 plane_resources[2], plane_resources[3], color_space, | 251 plane_resources[2], plane_resources[3], color_space, |
| 251 gfx::ColorSpace::CreateJpeg(), 0.0, 1.0, 8); | 252 gfx::ColorSpace::CreateJpeg(), 0.0, 1.0, 8); |
| 252 } | 253 } |
| 253 | 254 |
| 254 } // namespace cc | 255 } // namespace cc |
| OLD | NEW |