| // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // 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(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, |
| OutputSurface* output_surface, |
| ResourceProvider* resource_provider, |
| TextureMailboxDeleter* texture_mailbox_deleter, |
| int highp_threshold_min) |
| : DirectRenderer(settings, output_surface, resource_provider) {} |
| |
| void VulkanRenderer::DidChangeVisibility() { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) { |
| NOTIMPLEMENTED(); |
| } |
| |
| bool VulkanRenderer::BindFramebufferToTexture(DrawingFrame* frame, |
| const ScopedResource* resource) { |
| NOTIMPLEMENTED(); |
| return false; |
| } |
| |
| void VulkanRenderer::SetScissorTestRect(const gfx::Rect& scissor_rect) { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::PrepareSurfaceForPass( |
| DrawingFrame* frame, |
| SurfaceInitializationMode initialization_mode, |
| const gfx::Rect& render_pass_scissor) { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::DoDrawQuad(DrawingFrame* frame, |
| const DrawQuad* quad, |
| const gfx::QuadF* clip_region) { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::BeginDrawingFrame(DrawingFrame* frame) { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::FinishDrawingFrame(DrawingFrame* frame) { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::FinishDrawingQuadList() { |
| NOTIMPLEMENTED(); |
| } |
| |
| bool VulkanRenderer::FlippedFramebuffer(const DrawingFrame* frame) const { |
| NOTIMPLEMENTED(); |
| return false; |
| } |
| |
| void VulkanRenderer::EnsureScissorTestEnabled() { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::EnsureScissorTestDisabled() { |
| NOTIMPLEMENTED(); |
| } |
| |
| void VulkanRenderer::CopyDrawnRenderPass( |
| DrawingFrame* frame, |
| std::unique_ptr<viz::CopyOutputRequest> request) { |
| NOTIMPLEMENTED(); |
| } |
| |
| bool VulkanRenderer::CanPartialSwap() { |
| NOTIMPLEMENTED(); |
| return false; |
| } |
| |
| } // namespace cc |