summaryrefslogtreecommitdiffstats
path: root/dom/canvas/ClientWebGLContext.h
diff options
context:
space:
mode:
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();
// -