Repository navigation
waylandbridge: transform surface damage at commit time - #134
Draft
Leeestephen wants to merge 1 commit into
Draft
Leeestephen wants to merge 1 commit into
Leeestephen wants to merge 1 commit into
Conversation
Collaborator
|
From your description, it sounds like you have KDE desktop with xdg-desktop-portal installed. With that installed, it’s similar to what you described. Or you could try another desktop environment—this probably won’t happen there. |
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.
Summary
Accumulate surface-space damage separately from buffer-space damage and convert
it using the mapping state committed with the buffer. Apply buffer scale,
transform and viewport mapping, clip conservatively and combine the resulting
buffer rectangles. Carry mapping state through synchronized subsurface commits.
This fixes incorrect/stale uploads from scaled wl_surface.damage clients and
adds focused math coverage plus a scaled SHM client control.
Testing
The complete arm64/API35 daemon and SHM test client build against the
upstream-pinned Wayland source. Damage-mapping tests pass with ASan/UBSan on
the host and with assertions enabled in a standalone Android arm64 executable.
Coverage includes scale, transform, viewport source/destination, clipping,
extreme coordinates and rectangle union.
Earlier integrated scaled-SHM visual controls passed. A fresh live compositor
visual pass for this exact upstream-based extraction remains pending.