diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /gfx/webrender_bindings/DCLayerTree.h | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/webrender_bindings/DCLayerTree.h')
-rw-r--r-- | gfx/webrender_bindings/DCLayerTree.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gfx/webrender_bindings/DCLayerTree.h b/gfx/webrender_bindings/DCLayerTree.h index d5ade5781e..8289eaf50d 100644 --- a/gfx/webrender_bindings/DCLayerTree.h +++ b/gfx/webrender_bindings/DCLayerTree.h @@ -44,6 +44,10 @@ struct IDCompositionVirtualSurface; namespace mozilla { +namespace gfx { +color::ColorProfileDesc QueryOutputColorProfile(); +} + namespace gl { class GLContext; } @@ -248,8 +252,6 @@ class DCLayerTree { bool mPendingCommit; - static color::ColorProfileDesc QueryOutputColorProfile(); - mutable Maybe<color::ColorProfileDesc> mOutputColorProfile; DCompOverlayTypes mUsedOverlayTypesInFrame = DCompOverlayTypes::NO_OVERLAY; @@ -258,7 +260,7 @@ class DCLayerTree { public: const color::ColorProfileDesc& OutputColorProfile() const { if (!mOutputColorProfile) { - mOutputColorProfile = Some(QueryOutputColorProfile()); + mOutputColorProfile = Some(gfx::QueryOutputColorProfile()); } return *mOutputColorProfile; } |