diff options
Diffstat (limited to 'dom/canvas/ClientWebGLContext.h')
-rw-r--r-- | dom/canvas/ClientWebGLContext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/canvas/ClientWebGLContext.h b/dom/canvas/ClientWebGLContext.h index e736235361..e870d5860a 100644 --- a/dom/canvas/ClientWebGLContext.h +++ b/dom/canvas/ClientWebGLContext.h @@ -1052,6 +1052,20 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal, const FuncScope funcScope(*this, "drawingBufferHeight"); return AutoAssertCast(DrawingBufferSize().y); } + + // - + + private: + dom::PredefinedColorSpace mDrawingBufferColorSpace = + dom::PredefinedColorSpace::Srgb; + + public: + auto DrawingBufferColorSpace() const { return mDrawingBufferColorSpace; } + + void SetDrawingBufferColorSpace(dom::PredefinedColorSpace); + + // - + void GetContextAttributes(dom::Nullable<dom::WebGLContextAttributes>& retval); private: |