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
This commit is contained in:
Jeff Muizelaar 2023-05-26 01:35:33 +00:00
parent e28f43b439
commit 5a6b419ed6
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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(),