summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/CompilationMessage.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /dom/webgpu/CompilationMessage.h
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/webgpu/CompilationMessage.h')
-rw-r--r--dom/webgpu/CompilationMessage.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/dom/webgpu/CompilationMessage.h b/dom/webgpu/CompilationMessage.h
index bac786dec6..d5f252f26a 100644
--- a/dom/webgpu/CompilationMessage.h
+++ b/dom/webgpu/CompilationMessage.h
@@ -18,7 +18,7 @@ namespace webgpu {
class CompilationInfo;
class CompilationMessage final : public nsWrapperCache, public ChildOf<Device> {
- dom::GPUCompilationMessageType mType = dom::GPUCompilationMessageType::Error;
+ dom::GPUCompilationMessageType mType;
uint64_t mLineNum = 0;
uint64_t mLinePos = 0;
uint64_t mOffset = 0;
@@ -29,8 +29,10 @@ class CompilationMessage final : public nsWrapperCache, public ChildOf<Device> {
GPU_DECL_CYCLE_COLLECTION(CompilationMessage)
GPU_DECL_JS_WRAP(CompilationMessage)
- explicit CompilationMessage(Device* const aParent, uint64_t aLineNum,
- uint64_t aLinePos, uint64_t aOffset,
+ explicit CompilationMessage(Device* const aParent,
+ dom::GPUCompilationMessageType aType,
+ uint64_t aLineNum, uint64_t aLinePos,
+ uint64_t aOffset, uint64_t aLength,
nsString&& aMessage);
void GetMessage(dom::DOMString& aMessage) {