OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 const gfx::Rect& rect, | 263 const gfx::Rect& rect, |
264 const gfx::Transform& transform) { | 264 const gfx::Transform& transform) { |
265 gfx::Size resource_size_in_pixels = rect.size(); | 265 gfx::Size resource_size_in_pixels = rect.size(); |
266 bool is_overlay_candidate = true; | 266 bool is_overlay_candidate = true; |
267 ResourceId resource_id = CreateResource( | 267 ResourceId resource_id = CreateResource( |
268 resource_provider, resource_size_in_pixels, is_overlay_candidate); | 268 resource_provider, resource_size_in_pixels, is_overlay_candidate); |
269 | 269 |
270 StreamVideoDrawQuad* overlay_quad = | 270 StreamVideoDrawQuad* overlay_quad = |
271 render_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); | 271 render_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); |
272 overlay_quad->SetNew(shared_quad_state, rect, rect, rect, resource_id, | 272 overlay_quad->SetNew(shared_quad_state, rect, rect, rect, resource_id, |
273 resource_size_in_pixels, transform); | 273 resource_size_in_pixels, gfx::BufferFormat::BGRA_8888, |
| 274 transform); |
274 | 275 |
275 return overlay_quad; | 276 return overlay_quad; |
276 } | 277 } |
277 | 278 |
278 TextureDrawQuad* CreateFullscreenCandidateQuad( | 279 TextureDrawQuad* CreateFullscreenCandidateQuad( |
279 ResourceProvider* resource_provider, | 280 ResourceProvider* resource_provider, |
280 const SharedQuadState* shared_quad_state, | 281 const SharedQuadState* shared_quad_state, |
281 RenderPass* render_pass) { | 282 RenderPass* render_pass) { |
282 return CreateCandidateQuadAt(resource_provider, shared_quad_state, | 283 return CreateCandidateQuadAt(resource_provider, shared_quad_state, |
283 render_pass, render_pass->output_rect); | 284 render_pass, render_pass->output_rect); |
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), | 1988 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), |
1988 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); | 1989 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); |
1989 } | 1990 } |
1990 | 1991 |
1991 ProcessForOverlays(); | 1992 ProcessForOverlays(); |
1992 EXPECT_EQ(0U, ca_layer_list_.size()); | 1993 EXPECT_EQ(0U, ca_layer_list_.size()); |
1993 } | 1994 } |
1994 | 1995 |
1995 } // namespace | 1996 } // namespace |
1996 } // namespace cc | 1997 } // namespace cc |
OLD | NEW |