Repository navigation
fix: paint and flash issues on macOS - #46615
Merged
Merged
Conversation
deepak1556
reviewed
Apr 11, 2025
| + layer()->SetVisible(is_visible_ || is_headless_mode_window_); | ||
| if (is_visible_ || is_headless_mode_window_) { | ||
| compositor_->Unsuspend(); | ||
| + layer()->SchedulePaint(layer()->bounds()); |
Member
There was a problem hiding this comment.
Does upstream headless mode suffer from paint not being scheduled ? Wondering if this part of the patch can be upstreamed ?
Member
Author
There was a problem hiding this comment.
@deepak1556 i'm not sure - I can check into it!
deepak1556
approved these changes
Apr 11, 2025
|
Release Notes Persisted
|
This was referenced Apr 14, 2025
Contributor
|
I have automatically backported this PR to "35-x-y", please check out #46628 |
Contributor
|
I have automatically backported this PR to "36-x-y", please check out #46629 |
ckerr
pushed a commit
that referenced
this pull request
Apr 14, 2025
* fix: paint and flash issues on macOS * Adhere to paintWhenInitiallyHidden
ckerr
pushed a commit
that referenced
this pull request
Apr 14, 2025
* fix: paint and flash issues on macOS * Adhere to paintWhenInitiallyHidden
ckerr
pushed a commit
that referenced
this pull request
Apr 14, 2025
* fix: paint and flash issues on macOS * Adhere to paintWhenInitiallyHidden
3 of 5 tasks
3 tasks done
kigh-ota
pushed a commit
to kigh-ota/electron
that referenced
this pull request
Sep 30, 2025
* fix: paint and flash issues on macOS * Adhere to paintWhenInitiallyHidden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Partially addresses #32001
Closes #46602
Refs #44628.
Fixes two related issues following the transition away from InspectableWebContentsViewMac on macOS. The compositor was unsuspended correctly if the window isn't immediately shown but
which led to paints not being correctly occurring and a white flash as the paint occurred only after visibility change.
cc @michal-pichlinski-openfin
Checklist
npm testpassesRelease Notes
Notes: Fixed several paint and white flash issues on macOS.