-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Move non-gfx things out of gfx_traits
and create a base
crate
#32296
Conversation
Note that |
This looks like a large change, but is just moving code around. |
🔨 Triggering try run (#9124745964) for Linux WPT, MacOS, Windows, Android |
I think we also need to update |
Test results for linux-wpt-layout-2013 from try job (#9124745964): Flaky unexpected result (13)
Stable unexpected results that are known to be intermittent (14)
|
Test results for linux-wpt-layout-2020 from try job (#9124745964): Flaky unexpected result (15)
Stable unexpected results that are known to be intermittent (12)
|
|
For a long time, `gfx_traits` has held a lot of things unrelated to graphics and also unrelated to the `gfx` crate (which is mostly about fonts). This is a cleanup which does a few things: 1. Move non `gfx` crate things out of `gfx_traits`. This is important in order to prevent dependency cycles with a different integration between layout, script, and fonts. 2. Rename the `msg` crate to `base`. It didn't really contain anything to do with messages and instead mostly holds ids, which are used across many different crates in Servo. This new crate will hold the *rare* data types that are widely used. Details: - All BackgroundHangMonitor-related things from base to a new `background_hang_monitor_api` crate. - Moved `TraversalDirection` to `script_traits` - Moved `Epoch`-related things from `gfx_traits` to `base`. - Moved `PrintTree` to base. This should be widely useful in Servo. - Moved `WebrenderApi` from `base` to `webrender_traits` and renamed it to `WebRenderFontApi`.
c55ef8e
to
1556405
Compare
I think the Android build should be fixed now. |
🔨 Triggering try run (#9127511252) for Linux WPT, MacOS, Windows, Android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good.
Test results for linux-wpt-layout-2013 from try job (#9127511252): Flaky unexpected result (12)
Stable unexpected results that are known to be intermittent (13)
|
Test results for linux-wpt-layout-2020 from try job (#9127511252): Flaky unexpected result (14)
Stable unexpected results that are known to be intermittent (10)
|
✨ Try run (#9127511252) succeeded. |
For a long time,
gfx_traits
has held a lot of things unrelated to graphicsand also unrelated to the
gfx
crate (which is mostly about fonts).This is a cleanup which does a few things:
gfx
crate things out ofgfx_traits
. This is important inorder to prevent dependency cycles with a different integration between
layout, script, and fonts.
msg
crate tobase
. It didn't really contain anythingto do with messages and instead mostly holds ids, which are used
across many different crates in Servo. This new crate will hold the
rare data types that are widely used.
Details:
background_hang_monitor_api
crate.TraversalDirection
toscript_traits
Epoch
-related things fromgfx_traits
tobase
.PrintTree
to base. This should be widely useful in Servo.WebrenderApi
frombase
towebrender_traits
and renamed itto
WebRenderFontApi
../mach build -d
does not report any errors./mach test-tidy
does not report any errors