Bug 1857841 - pt 3. Add a new page kind named "fresh" r=glandium
[gecko.git] / dom / webgpu / CompilationMessage.cpp
blob1463ec408eeca1f9c44c2779928edda0b412c6ce
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 #include "CompilationMessage.h"
7 #include "CompilationInfo.h"
8 #include "mozilla/dom/WebGPUBinding.h"
10 namespace mozilla::webgpu {
12 GPU_IMPL_CYCLE_COLLECTION(CompilationMessage, mParent)
13 GPU_IMPL_JS_WRAP(CompilationMessage)
15 CompilationMessage::CompilationMessage(Device* const aParent, uint64_t aLineNum,
16 uint64_t aLinePos, uint64_t aOffset,
17 nsString&& aMessage)
18 : ChildOf(aParent),
19 mLineNum(aLineNum),
20 mLinePos(aLinePos),
21 mOffset(aOffset),
22 mMessage(std::move(aMessage)) {}
24 } // namespace mozilla::webgpu