Bug 1654678 Part 2 - Make CUPSPrinter own its CUPS dest data r=nordzilla
[gecko.git] / dom / webgpu / RenderPipeline.h
blob943230bf48c018ecfd261c221a1b5ce1956a48da
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 GPU_RenderPipeline_H_
7 #define GPU_RenderPipeline_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
12 namespace mozilla {
13 namespace webgpu {
15 class Device;
17 class RenderPipeline final : public ObjectBase, public ChildOf<Device> {
18 public:
19 GPU_DECL_CYCLE_COLLECTION(RenderPipeline)
20 GPU_DECL_JS_WRAP(RenderPipeline)
22 RenderPipeline(Device* const aParent, RawId aId);
24 const RawId mId;
26 private:
27 virtual ~RenderPipeline();
28 void Cleanup();
31 } // namespace webgpu
32 } // namespace mozilla
34 #endif // GPU_RenderPipeline_H_