Bug 1560374 - Set testharness and reftest web-platform-tests to Tier-1; r=jmaher...
[gecko.git] / dom / webgpu / Queue.h
blob73bb7025cfac47ea2e64b675ba835f07acfd7c3c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WEBGPU_Queue_H_
7 #define WEBGPU_Queue_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
12 namespace mozilla {
13 namespace dom {
14 template <typename T>
15 class Sequence;
16 } // namespace dom
18 namespace webgpu {
20 class CommandBuffer;
21 class Device;
22 class Fence;
24 class Queue final : public ChildOf<Device> {
25 public:
26 WEBGPU_DECL_GOOP(Queue)
28 private:
29 Queue() = delete;
30 virtual ~Queue();
32 public:
33 void Submit(const dom::Sequence<OwningNonNull<CommandBuffer>>& buffers) const;
34 already_AddRefed<Fence> InsertFence() const;
37 } // namespace webgpu
38 } // namespace mozilla
40 #endif // WEBGPU_Queue_H_