| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 const gfx::Rect& rect, | 312 const gfx::Rect& rect, |
| 313 const gfx::Transform& transform) { | 313 const gfx::Transform& transform) { |
| 314 gfx::Size resource_size_in_pixels = rect.size(); | 314 gfx::Size resource_size_in_pixels = rect.size(); |
| 315 bool is_overlay_candidate = true; | 315 bool is_overlay_candidate = true; |
| 316 ResourceId resource_id = CreateResource( | 316 ResourceId resource_id = CreateResource( |
| 317 resource_provider, resource_size_in_pixels, is_overlay_candidate); | 317 resource_provider, resource_size_in_pixels, is_overlay_candidate); |
| 318 | 318 |
| 319 StreamVideoDrawQuad* overlay_quad = | 319 StreamVideoDrawQuad* overlay_quad = |
| 320 render_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); | 320 render_pass->CreateAndAppendDrawQuad<StreamVideoDrawQuad>(); |
| 321 overlay_quad->SetNew(shared_quad_state, rect, rect, rect, resource_id, | 321 overlay_quad->SetNew(shared_quad_state, rect, rect, rect, resource_id, |
| 322 resource_size_in_pixels, transform); | 322 resource_size_in_pixels, gfx::BufferFormat::BGRA_8888, |
| 323 transform); |
| 323 | 324 |
| 324 return overlay_quad; | 325 return overlay_quad; |
| 325 } | 326 } |
| 326 | 327 |
| 327 TextureDrawQuad* CreateFullscreenCandidateQuad( | 328 TextureDrawQuad* CreateFullscreenCandidateQuad( |
| 328 ResourceProvider* resource_provider, | 329 ResourceProvider* resource_provider, |
| 329 const SharedQuadState* shared_quad_state, | 330 const SharedQuadState* shared_quad_state, |
| 330 RenderPass* render_pass) { | 331 RenderPass* render_pass) { |
| 331 return CreateCandidateQuadAt(resource_provider, shared_quad_state, | 332 return CreateCandidateQuadAt(resource_provider, shared_quad_state, |
| 332 render_pass, render_pass->output_rect); | 333 render_pass, render_pass->output_rect); |
| (...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2518 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), | 2519 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), |
| 2519 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); | 2520 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); |
| 2520 } | 2521 } |
| 2521 | 2522 |
| 2522 ProcessForOverlays(); | 2523 ProcessForOverlays(); |
| 2523 EXPECT_EQ(0U, ca_layer_list_.size()); | 2524 EXPECT_EQ(0U, ca_layer_list_.size()); |
| 2524 } | 2525 } |
| 2525 | 2526 |
| 2526 } // namespace | 2527 } // namespace |
| 2527 } // namespace cc | 2528 } // namespace cc |
| OLD | NEW |