Skip to content

Merge most impl Device blocks in src/mesa_surfaceless#375

Open
mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:merge-device-block-mesa_surfaceless
Open

Merge most impl Device blocks in src/mesa_surfaceless#375
mrobinson wants to merge 1 commit into
servo:mainfrom
mrobinson:merge-device-block-mesa_surfaceless

Conversation

@mrobinson

Copy link
Copy Markdown
Member

This change just moves code and adjust imports. It was very previously
difficult to know where any particular Device method was implemented.
This will also make it easier to eliminate macros.rs, necessary to
implement the new version of the API. The downside is that now much of
the implementation is gathered into the device.rs files, but these
usually do not go beyond 1500 lines. Further changes to the API will
eliminate many lines of code and spread the logic more equally between
files.

This change just moves code and adjust imports.  It was very previously
difficult to know where any particular `Device` method was implemented.
This will also make it easier to eliminate `macros.rs`, necessary to
implement the new version of the API. The downside is that now much of
the implementation is gathered into the `device.rs` files, but these
usually do not go beyond 1500 lines. Further changes to the API will
eliminate many lines of code and spread the logic more equally between
files.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@jdm jdm added this pull request to the merge queue Jun 9, 2026
@mrobinson mrobinson removed this pull request from the merge queue due to a manual request Jun 9, 2026
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