Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale

Differential Revision: https://phabricator.services.mozilla.com/D207651
This commit is contained in:
Kelsey Gilbert
2024-04-23 16:54:05 +00:00
parent b681164a9f
commit 7393b7c768
27 changed files with 1033 additions and 524 deletions

View File

@@ -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: