Flutter Engine
The Flutter Engine
VulkanQueueManager.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef skgpu_graphite_VulkanQueueManager_DEFINED
9#define skgpu_graphite_VulkanQueueManager_DEFINED
10
12
14
15namespace skgpu::graphite {
16
17class VulkanSharedContext;
18
19class VulkanQueueManager final : public QueueManager {
20public:
21 VulkanQueueManager(VkQueue queue, const SharedContext*);
22 ~VulkanQueueManager() override {}
23
24private:
25 const VulkanSharedContext* vkSharedContext() const;
26
27 std::unique_ptr<CommandBuffer> getNewCommandBuffer(ResourceProvider*) override;
28 OutstandingSubmission onSubmitToGpu() override;
29
30#if defined(GRAPHITE_TEST_UTILS)
31 // TODO: Implement these
32 void startCapture() override {}
33 void stopCapture() override {}
34#endif
35
36 VkQueue fQueue;
37};
38
39} // namespace skgpu::graphite
40
41#endif // skgpu_graphite_VulkanQueueManager_DEFINED
std::unique_ptr< GpuWorkSubmission > OutstandingSubmission
Definition: QueueManager.h:65
VulkanQueueManager(VkQueue queue, const SharedContext *)
VkQueue queue
Definition: main.cc:55