subduction_backend_wayland: consume frameclock_wayland - #43
Merged
no-materials merged 1 commit intoJun 17, 2026
Merged
Conversation
Replace the backend's private copies of the Wayland timing facts with the frameclock_wayland adapter crate, mirroring the frameclock_apple / frameclock_web split. Deletes the duplicated time.rs, queue.rs, and tick.rs, slims presentation.rs to the dispatch-only PendingFeedback, and moves select_tick_output into output_registry.rs. Clock, TickerState, PresentEvent, PresentEventQueue, SubmissionId, and presentation_time_to_host_time are now imported from the crate. Drops the time/presentation re-exports from the backend's public surface (breaking at 0.0.1, consistent with the apple backend) and repoints the Wayland examples' now() calls to frameclock_wayland. Pure refactor; behavior is unchanged.
waywardmonkeys
approved these changes
Jun 17, 2026
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.
Follow-up to #39: make
subduction_backend_waylandconsume theframeclock_waylandadapter crate and delete its duplicated private copies, mirroring how the apple/web backends relate to their frameclock crates. Removestime.rs,queue.rs, andtick.rs; slimspresentation.rsto the dispatch-onlyPendingFeedback; movesselect_tick_outputintooutput_registry.rs; and importsClock,TickerState,PresentEvent,PresentEventQueue,SubmissionId, andpresentation_time_to_host_timefrom the crate. The time/presentation re-exports are dropped from the backend's public surface (breaking at 0.0.1, consistent with the apple split) and the Wayland examples'now()calls are repointed toframeclock_wayland.Pure refactor — behavior is unchanged. Verified with cargo test (
frameclock_wayland+ backend), clippy-D warnings, cargo check on the four Wayland examples, rustdoc-D warnings,cargo fmt --check,taplo fmt --check, andcopyright.sh.