Commit 5a6b419e authored by Jeff Muizelaar's avatar Jeff Muizelaar
Browse files

Bug 1833030. Don't use native_srgb on Windows. r=jgilbert

There was confusion about the purpose of this pref. Just hard code
it for now.

Differential Revision: https://phabricator.services.mozilla.com/D178355
parent e28f43b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -923,7 +923,7 @@ constexpr auto MakeArray(Args... args) -> std::array<T, sizeof...(Args)> {

inline gfx::ColorSpace2 ToColorSpace2(const WebGLContextOptions& options) {
  auto ret = gfx::ColorSpace2::UNKNOWN;
  if (StaticPrefs::gfx_color_management_native_srgb()) {
  if (true) {
    ret = gfx::ColorSpace2::SRGB;
  }
  if (!options.ignoreColorSpace) {
+1 −1
Original line number Diff line number Diff line
@@ -702,7 +702,7 @@ DCSurface* DCExternalSurfaceWrapper::EnsureSurfaceForExternalImage(

    const auto cprofileIn = color::ColorProfileDesc::From(cspaceDesc);
    auto cprofileOut = mDCLayerTree->OutputColorProfile();
    bool pretendSrgb = StaticPrefs::gfx_color_management_native_srgb();
    bool pretendSrgb = true;
    if (pretendSrgb) {
      cprofileOut = color::ColorProfileDesc::From({
          color::Chromaticities::Srgb(),