Skip to content

subduction_backend_wayland: consume frameclock_wayland - #43

Merged
no-materials merged 1 commit into
forest-rs:mainfrom
no-materials:wayland-consume-frameclock-wayland
Jun 17, 2026
Merged

subduction_backend_wayland: consume frameclock_wayland#43
no-materials merged 1 commit into
forest-rs:mainfrom
no-materials:wayland-consume-frameclock-wayland

Conversation

@no-materials

Copy link
Copy Markdown
Contributor

Follow-up to #39: make subduction_backend_wayland consume the frameclock_wayland adapter crate and delete its duplicated private copies, mirroring how the apple/web backends relate to their frameclock crates. Removes time.rs, queue.rs, and tick.rs; slims presentation.rs to the dispatch-only PendingFeedback; moves select_tick_output into output_registry.rs; and imports Clock, TickerState, PresentEvent, PresentEventQueue, SubmissionId, and presentation_time_to_host_time from 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 to frameclock_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, and copyright.sh.

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.
@no-materials
no-materials merged commit 9a1ae88 into forest-rs:main Jun 17, 2026
15 checks passed
@no-materials
no-materials deleted the wayland-consume-frameclock-wayland branch June 17, 2026 06:02
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.

2 participants