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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/vulkan_renderer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/vulkan_renderer.cc
diff --git a/cc/output/vulkan_renderer.cc b/cc/output/vulkan_renderer.cc
index 5caa02ee100e7951e5d84aef343ef8877adf9e98..79ccf3b2e6b7ea968c206ea46062026c7f908cfe 100644
--- a/cc/output/vulkan_renderer.cc
+++ b/cc/output/vulkan_renderer.cc
@@ -3,18 +3,16 @@
// found in the LICENSE file.
#include "cc/output/vulkan_renderer.h"
+#include "cc/output/output_surface_frame.h"
namespace cc {
VulkanRenderer::~VulkanRenderer() {}
-void VulkanRenderer::SwapBuffers(const CompositorFrameMetadata& metadata) {
- CompositorFrame* compositor_frame = nullptr;
- output_surface_->SwapBuffers(compositor_frame);
-}
-
-void VulkanRenderer::ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {
- NOTIMPLEMENTED();
+void VulkanRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
+ OutputSurfaceFrame output_frame;
+ output_frame.latency_info = std::move(latency_info);
+ output_surface_->SwapBuffers(std::move(output_frame));
}
VulkanRenderer::VulkanRenderer(const RendererSettings* settings,
@@ -80,18 +78,15 @@ void VulkanRenderer::EnsureScissorTestDisabled() {
NOTIMPLEMENTED();
}
-void VulkanRenderer::DiscardBackbuffer() {
- NOTIMPLEMENTED();
-}
-
-void VulkanRenderer::EnsureBackbuffer() {
- NOTIMPLEMENTED();
-}
-
void VulkanRenderer::CopyCurrentRenderPassToBitmap(
DrawingFrame* frame,
std::unique_ptr<CopyOutputRequest> request) {
NOTIMPLEMENTED();
}
+bool VulkanRenderer::CanPartialSwap() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
} // namespace cc
« 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