Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: cc/output/vulkan_renderer.cc

Issue 2527283003: cc: Introduce BeginFrame sequence numbers and acknowledgements.
Patch Set: Address Brian's comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | cc/scheduler/begin_frame_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | cc/scheduler/begin_frame_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698