blob: 80aa2c3b6efc1a9b0efc4b3c735d7690348e800b [file] [log] [blame]
* Copyright 2022 Google LLC
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef skgpu_graphite_DawnQueueManager_DEFINED
#define skgpu_graphite_DawnQueueManager_DEFINED
#include "src/gpu/graphite/QueueManager.h"
#include "webgpu/webgpu_cpp.h"
namespace skgpu::graphite {
class DawnSharedContext;
class SharedContext;
class DawnQueueManager : public QueueManager {
DawnQueueManager(wgpu::Queue, const SharedContext*);
~DawnQueueManager() override {}
const wgpu::Queue& dawnQueue() const { return fQueue; }
const DawnSharedContext* dawnSharedContext() const;
std::unique_ptr<CommandBuffer> getNewCommandBuffer(ResourceProvider*) override;
OutstandingSubmission onSubmitToGpu() override;
void startCapture() override;
void stopCapture() override;
wgpu::Queue fQueue;
} // namespace skgpu::graphite
#endif // skgpu_graphite_DawnQueueManager_DEFINED