Skip to content

fix: Make disable_color_correct_rendering patch work again - #35050

Merged
VerteDinde merged 1 commit into
electron:mainfrom
devinfoley:main
Jul 26, 2022
Merged

VerteDinde merged 1 commit into
electron:mainfrom
devinfoley:main

Conversation

@devinfoley

Copy link
Copy Markdown
Contributor

Fixes: #34592

In Chromium 100, this change made it so that color space was read from ColorTargetParams versus being passed into functions directly. This made the flag stop working in CSS and IMG. With this PR, color space will be added to ColorTargetParams before returning.

In Chromium 103 (or earlier), this change integrated TargetColorParams in a few more places. There's no preset for "Unmanaged", so the flag stopped working in GL canvases. With this PR, we'll detect if the flag is enabled, and if so, return gfx::ColorSpace() to use an unmanaged color space.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes

Release Notes

Notes: none

@devinfoley
devinfoley requested review from a team as code owners July 25, 2022 18:34
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jul 25, 2022
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/18-x-y labels Jul 26, 2022
@VerteDinde
VerteDinde merged commit 0be73d1 into electron:main Jul 26, 2022
@release-clerk

release-clerk Bot commented Jul 26, 2022

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Jul 26, 2022

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "18-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/18-x-y label Jul 26, 2022
@trop

trop Bot commented Jul 26, 2022

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "19-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Jul 26, 2022

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "20-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

@devinfoley has manually backported this PR to "19-x-y", please check out #35079

@trop

trop Bot commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

@devinfoley has manually backported this PR to "18-x-y", please check out #35088

@trop

trop Bot commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

@devinfoley has manually backported this PR to "20-x-y", please check out #35087

schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: disable-color-correct-rendering flag is not respected

6 participants