summaryrefslogtreecommitdiffstats
path: root/dom/canvas/ClientWebGLContext.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/canvas/ClientWebGLContext.h
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/canvas/ClientWebGLContext.h')
-rw-r--r--dom/canvas/ClientWebGLContext.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/canvas/ClientWebGLContext.h b/dom/canvas/ClientWebGLContext.h
index 47e03d29c5..3c011a3027 100644
--- a/dom/canvas/ClientWebGLContext.h
+++ b/dom/canvas/ClientWebGLContext.h
@@ -929,11 +929,11 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
void EnqueueErrorImpl(GLenum errorOrZero, const nsACString&) const;
public:
- Maybe<Range<uint8_t>> ValidateArrayBufferView(const Span<uint8_t>& bytes,
- size_t elemSize,
- GLuint elemOffset,
- GLuint elemCountOverride,
- const GLenum errorEnum) const;
+ Maybe<Span<uint8_t>> ValidateArrayBufferView(const Span<uint8_t>& bytes,
+ size_t elemSize,
+ GLuint elemOffset,
+ GLuint elemCountOverride,
+ const GLenum errorEnum) const;
protected:
template <typename T>
@@ -1087,7 +1087,7 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
private:
RefPtr<gfx::DataSourceSurface> BackBufferSnapshot();
[[nodiscard]] bool DoReadPixels(const webgl::ReadPixelsDesc&,
- Range<uint8_t>) const;
+ Span<uint8_t>) const;
uvec2 DrawingBufferSize();
// -