-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupt tiles when scrolling and selecting text quickly. #23558
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
mattwoodrow:eng/volatile-copy-back-to-front
Jan 31, 2024
Merged
Corrupt tiles when scrolling and selecting text quickly. #23558
webkit-commit-queue
merged 1 commit into
WebKit:main
from
mattwoodrow:eng/volatile-copy-back-to-front
Jan 31, 2024
Conversation
This file contains 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
mattwoodrow
added
the
Layout and Rendering
For bugs with layout and rendering of Web pages.
label
Jan 31, 2024
EWS run on previous version of this PR (hash 4ed16d4) |
smfr
approved these changes
Jan 31, 2024
webkit-ews-buildbot
added
the
merging-blocked
Applied to prevent a change from being merged
label
Jan 31, 2024
mattwoodrow
removed
the
merging-blocked
Applied to prevent a change from being merged
label
Jan 31, 2024
mattwoodrow
force-pushed
the
eng/volatile-copy-back-to-front
branch
from
January 31, 2024 07:34
4ed16d4
to
b9c1e23
Compare
EWS run on current version of this PR (hash b9c1e23) |
https://bugs.webkit.org/show_bug.cgi?id=268430 <rdar://121934201> Reviewed by Simon Fraser. If ensureBufferForDisplay returns SwapBuffersDisplayRequirement::NeedsNoDisplay, then we don't want to call prepareForDisplay. The latter copies pixels from the old front buffer into the new one, and when no display is required there wasn't a front/back swap, so no copy needed. This caused issues because we also set 'm_previouslyPaintedRect` to the (empty!) dirty area, effectively recording that the front and back buffers were identical, despite it likely not being true. The next attempt to paint these buffers would omit a back-to-front copy, thinking the buffers were identical, and then we'd do a partial update on top of stale content. This happens when scrolling, since scrolling tiles get pooled (and made volatile), then recycled. * LayoutTests/compositing/repaint/needs-no-display-volatile-repaint-expected.html: Added. * LayoutTests/compositing/repaint/needs-no-display-volatile-repaint.html: Added. * Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp: (WebKit::RemoteRenderingBackend::prepareImageBufferSetsForDisplay): (WebKit::RemoteRenderingBackend::prepareImageBufferSetsForDisplaySync): Canonical link: https://commits.webkit.org/273838@main
webkit-commit-queue
force-pushed
the
eng/volatile-copy-back-to-front
branch
from
January 31, 2024 18:32
b9c1e23
to
77e5bb3
Compare
Committed 273838@main (77e5bb3): https://commits.webkit.org/273838@main Reviewed commits have been landed. Closing PR #23558 and removing active labels. |
webkit-commit-queue
removed
the
merge-queue
Applied to send a pull request to merge-queue
label
Jan 31, 2024
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.
77e5bb3
b9c1e23