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