blob: 6397391c845c984b68c747d7e2a1ed9976c152a3 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
#include "impeller/renderer/command_queue.h"
namespace impeller {
class ContextVK;
class CommandQueueVK : public CommandQueue {
public:
explicit CommandQueueVK(const std::weak_ptr<ContextVK>& context);
~CommandQueueVK() override;
fml::Status Submit(
const std::vector<std::shared_ptr<CommandBuffer>>& buffers,
const CompletionCallback& completion_callback = {}) override;
private:
std::weak_ptr<ContextVK> context_;
CommandQueueVK(const CommandQueueVK&) = delete;
CommandQueueVK& operator=(const CommandQueueVK&) = delete;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_