summaryrefslogtreecommitdiffstats
path: root/gfx/webrender_bindings/DCLayerTree.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /gfx/webrender_bindings/DCLayerTree.h
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/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.h8
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;
}