| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/output/vulkan_renderer.h" | 5 #include "cc/output/vulkan_renderer.h" |
| 6 #include "cc/output/output_surface_frame.h" | 6 #include "cc/output/output_surface_frame.h" |
| 7 | 7 |
| 8 namespace cc { | 8 namespace cc { |
| 9 | 9 |
| 10 VulkanRenderer::~VulkanRenderer() {} | 10 VulkanRenderer::~VulkanRenderer() {} |
| 11 | 11 |
| 12 void VulkanRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) { | 12 void VulkanRenderer::SwapBuffers(OutputSurfaceFrame output_frame) { |
| 13 OutputSurfaceFrame output_frame; | |
| 14 output_frame.latency_info = std::move(latency_info); | |
| 15 output_surface_->SwapBuffers(std::move(output_frame)); | 13 output_surface_->SwapBuffers(std::move(output_frame)); |
| 16 } | 14 } |
| 17 | 15 |
| 18 VulkanRenderer::VulkanRenderer(const RendererSettings* settings, | 16 VulkanRenderer::VulkanRenderer(const RendererSettings* settings, |
| 19 OutputSurface* output_surface, | 17 OutputSurface* output_surface, |
| 20 ResourceProvider* resource_provider, | 18 ResourceProvider* resource_provider, |
| 21 TextureMailboxDeleter* texture_mailbox_deleter, | 19 TextureMailboxDeleter* texture_mailbox_deleter, |
| 22 int highp_threshold_min) | 20 int highp_threshold_min) |
| 23 : DirectRenderer(settings, output_surface, resource_provider) {} | 21 : DirectRenderer(settings, output_surface, resource_provider) {} |
| 24 | 22 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 std::unique_ptr<CopyOutputRequest> request) { | 81 std::unique_ptr<CopyOutputRequest> request) { |
| 84 NOTIMPLEMENTED(); | 82 NOTIMPLEMENTED(); |
| 85 } | 83 } |
| 86 | 84 |
| 87 bool VulkanRenderer::CanPartialSwap() { | 85 bool VulkanRenderer::CanPartialSwap() { |
| 88 NOTIMPLEMENTED(); | 86 NOTIMPLEMENTED(); |
| 89 return false; | 87 return false; |
| 90 } | 88 } |
| 91 | 89 |
| 92 } // namespace cc | 90 } // namespace cc |
| OLD | NEW |