no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / dom / webgpu / TextureView.h
bloba0c69c106ba242d4d85a8bac555a1d173849c67a
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_TextureView_H_
7 #define GPU_TextureView_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
11 #include "mozilla/webgpu/WebGPUTypes.h"
13 namespace mozilla::webgpu {
15 class CanvasContext;
16 class Texture;
18 class TextureView final : public ObjectBase, public ChildOf<Texture> {
19 public:
20 GPU_DECL_CYCLE_COLLECTION(TextureView)
21 GPU_DECL_JS_WRAP(TextureView)
23 TextureView(Texture* const aParent, RawId aId);
24 CanvasContext* GetTargetContext() const;
26 const RawId mId;
28 private:
29 virtual ~TextureView();
30 void Cleanup();
33 } // namespace mozilla::webgpu
35 #endif // GPU_TextureView_H_