Skip to content
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

wayland(dmabuf): ImportNotifier for asynchronous buffer import #1226

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

i509VCB
Copy link
Member

@i509VCB i509VCB commented Nov 12, 2023

This pull request adds the ImportNotifier type, which allows dmabuf import results to be delayed until processed at a later time. In my case this would be after being handled through a channel but can be extended to allow creating an importing thread.

Resolves #699

A quick test by smalling alacritty in smallvil shows this appears to work correctly.

@i509VCB i509VCB force-pushed the dmabuf-import-notifier branch from c66db18 to b1ecb8e Compare November 13, 2023 00:21
@i509VCB i509VCB force-pushed the dmabuf-import-notifier branch from b1ecb8e to 283524b Compare November 13, 2023 00:32
@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

Attention: 96 lines in your changes are missing coverage. Please review.

Comparison is base (a8f3c46) 19.38% compared to head (283524b) 21.71%.
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1226      +/-   ##
==========================================
+ Coverage   19.38%   21.71%   +2.32%     
==========================================
  Files         154      155       +1     
  Lines       24099    24431     +332     
==========================================
+ Hits         4672     5305     +633     
+ Misses      19427    19126     -301     
Flag Coverage Δ
wlcs-buffer 18.74% <0.00%> (-0.26%) ⬇️
wlcs-core 18.40% <0.00%> (?)
wlcs-output 7.62% <0.00%> (-0.13%) ⬇️
wlcs-pointer-input 20.49% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/wayland/dmabuf/dispatch.rs 0.00% <0.00%> (ø)
src/wayland/dmabuf/mod.rs 0.53% <0.00%> (-0.08%) ⬇️

... and 29 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general.

src/wayland/dmabuf/dispatch.rs Outdated Show resolved Hide resolved
@Drakulix Drakulix merged commit 2c8446c into Smithay:master Nov 13, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dmabuf import should be async
3 participants