mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
e28f43b439
commit
5a6b419ed6
@ -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) {
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user