| Flutter Impeller |

command_queue_vk.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
7
8 #include "impeller/renderer/command_queue.h"
9
10 namespace impeller {
11
12 class ContextVK;
13
14 class CommandQueueVK : public CommandQueue {
15 public:
16 explicit CommandQueueVK(const std::weak_ptr<ContextVK>& context);
17
18 ~CommandQueueVK() override;
19
20 fml::Status Submit(
21 const std::vector<std::shared_ptr<CommandBuffer>>& buffers,
22 const CompletionCallback& completion_callback = {}) override;
23
24 private:
25 std::weak_ptr<ContextVK> context_;
26
27 CommandQueueVK(const CommandQueueVK&) = delete;
28
29 CommandQueueVK& operator=(const CommandQueueVK&) = delete;
30 };
31
32 } // namespace impeller
33
34 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
command_queue.h
impeller::CommandQueueVK::Submit
fml::Status Submit(const std::vector< std::shared_ptr< CommandBuffer >> &buffers, const CompletionCallback &completion_callback={}) override
Submit one or more command buffer objects to be encoded and executed on the GPU.
Definition: command_queue_vk.cc:23
impeller::CommandQueueVK::~CommandQueueVK
~CommandQueueVK() override
impeller::CommandQueue::CompletionCallback
std::function< void(CommandBuffer::Status)> CompletionCallback
Definition: command_queue.h:19
impeller::CommandQueueVK
Definition: command_queue_vk.h:14
impeller::CommandQueueVK::CommandQueueVK
CommandQueueVK(const std::weak_ptr< ContextVK > &context)
Definition: command_queue_vk.cc:18
impeller::CommandQueue
An interface for submitting command buffers to the GPU for encoding and execution.
Definition: command_queue.h:17
impeller
Definition: allocation.cc:12