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

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

Issue 2423333002: Fixed compilation errors in vulkan_renderer.h with enable_vulkan Flag. (Closed)
Patch Set: Fixed compilation errors in vulkan_renderer.h with enable_vulkan Flag. Created 4 years, 2 months 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') | no next file » | 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 7
7 namespace cc { 8 namespace cc {
8 9
9 VulkanRenderer::~VulkanRenderer() {} 10 VulkanRenderer::~VulkanRenderer() {}
10 11
11 void VulkanRenderer::SwapBuffers(const CompositorFrameMetadata& metadata) { 12 void VulkanRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
12 CompositorFrame* compositor_frame = nullptr; 13 OutputSurfaceFrame output_frame;
13 output_surface_->SwapBuffers(compositor_frame); 14 output_frame.latency_info = std::move(latency_info);
14 } 15 output_surface_->SwapBuffers(std::move(output_frame));
15
16 void VulkanRenderer::ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {
17 NOTIMPLEMENTED();
18 } 16 }
19 17
20 VulkanRenderer::VulkanRenderer(const RendererSettings* settings, 18 VulkanRenderer::VulkanRenderer(const RendererSettings* settings,
21 OutputSurface* output_surface, 19 OutputSurface* output_surface,
22 ResourceProvider* resource_provider, 20 ResourceProvider* resource_provider,
23 TextureMailboxDeleter* texture_mailbox_deleter, 21 TextureMailboxDeleter* texture_mailbox_deleter,
24 int highp_threshold_min) 22 int highp_threshold_min)
25 : DirectRenderer(settings, output_surface, resource_provider) {} 23 : DirectRenderer(settings, output_surface, resource_provider) {}
26 24
27 void VulkanRenderer::DidChangeVisibility() { 25 void VulkanRenderer::DidChangeVisibility() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 71 }
74 72
75 void VulkanRenderer::EnsureScissorTestEnabled() { 73 void VulkanRenderer::EnsureScissorTestEnabled() {
76 NOTIMPLEMENTED(); 74 NOTIMPLEMENTED();
77 } 75 }
78 76
79 void VulkanRenderer::EnsureScissorTestDisabled() { 77 void VulkanRenderer::EnsureScissorTestDisabled() {
80 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
81 } 79 }
82 80
83 void VulkanRenderer::DiscardBackbuffer() {
84 NOTIMPLEMENTED();
85 }
86
87 void VulkanRenderer::EnsureBackbuffer() {
88 NOTIMPLEMENTED();
89 }
90
91 void VulkanRenderer::CopyCurrentRenderPassToBitmap( 81 void VulkanRenderer::CopyCurrentRenderPassToBitmap(
92 DrawingFrame* frame, 82 DrawingFrame* frame,
93 std::unique_ptr<CopyOutputRequest> request) { 83 std::unique_ptr<CopyOutputRequest> request) {
94 NOTIMPLEMENTED(); 84 NOTIMPLEMENTED();
95 } 85 }
96 86
87 bool VulkanRenderer::CanPartialSwap() {
88 NOTIMPLEMENTED();
89 return false;
90 }
91
97 } // namespace cc 92 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698