diff options
Diffstat (limited to '')
-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; } |