| 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 if (use_validator) | 1417 if (use_validator) |
| 1418 output_surface_->SetOverlayCandidateValidator(new SingleOverlayValidator); | 1418 output_surface_->SetOverlayCandidateValidator(new SingleOverlayValidator); |
| 1419 | 1419 |
| 1420 renderer_ = base::MakeUnique<OverlayInfoRendererGL>( | 1420 renderer_ = base::MakeUnique<OverlayInfoRendererGL>( |
| 1421 &settings_, output_surface_.get(), resource_provider_.get()); | 1421 &settings_, output_surface_.get(), resource_provider_.get()); |
| 1422 renderer_->Initialize(); | 1422 renderer_->Initialize(); |
| 1423 renderer_->SetVisible(true); | 1423 renderer_->SetVisible(true); |
| 1424 } | 1424 } |
| 1425 | 1425 |
| 1426 void DrawFrame(RenderPassList* pass_list, const gfx::Size& viewport_size) { | 1426 void DrawFrame(RenderPassList* pass_list, const gfx::Size& viewport_size) { |
| 1427 renderer_->DrawFrame(pass_list, 1.f, gfx::ColorSpace(), viewport_size); | 1427 renderer_->DrawFrame(pass_list, 1.f, viewport_size); |
| 1428 } | 1428 } |
| 1429 void SwapBuffers() { | 1429 void SwapBuffers() { |
| 1430 renderer_->SwapBuffers(std::vector<ui::LatencyInfo>()); | 1430 renderer_->SwapBuffers(std::vector<ui::LatencyInfo>()); |
| 1431 renderer_->SwapBuffersComplete(); | 1431 renderer_->SwapBuffersComplete(); |
| 1432 } | 1432 } |
| 1433 void SwapBuffersWithoutComplete() { | 1433 void SwapBuffersWithoutComplete() { |
| 1434 renderer_->SwapBuffers(std::vector<ui::LatencyInfo>()); | 1434 renderer_->SwapBuffers(std::vector<ui::LatencyInfo>()); |
| 1435 } | 1435 } |
| 1436 void SwapBuffersComplete() { | 1436 void SwapBuffersComplete() { |
| 1437 renderer_->SwapBuffersComplete(); | 1437 renderer_->SwapBuffersComplete(); |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2000 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), | 2000 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), |
| 2001 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); | 2001 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); |
| 2002 } | 2002 } |
| 2003 | 2003 |
| 2004 ProcessForOverlays(); | 2004 ProcessForOverlays(); |
| 2005 EXPECT_EQ(0U, ca_layer_list_.size()); | 2005 EXPECT_EQ(0U, ca_layer_list_.size()); |
| 2006 } | 2006 } |
| 2007 | 2007 |
| 2008 } // namespace | 2008 } // namespace |
| 2009 } // namespace cc | 2009 } // namespace cc |
| OLD | NEW |