gfx: Rename WebrenderSurfman to RenderingContext and move to gfx (#31184)

This is a small cleanup that moves and renames this class. The rename is
simply because we are exposing a lot about the details of Servo's
rendering in the API and it makes sense to start thinking about
abstracting that away a bit.

This also moves the struct to `gfx`, which does have an effect on
Servo's dependency graph. This adds a new dependency on gfx to
`compositing`, but `compositing` had a transitive dependency on
gfx before through `canvas`.
This commit is contained in:
Martin Robinson 2024-01-27 18:58:34 +01:00 committed by GitHub
parent bbe505e52b
commit bc211f8ff3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 84 additions and 114 deletions

View file

@ -4,15 +4,11 @@
#![deny(unsafe_code)]
// Fonts
pub mod font;
pub mod font_cache_thread;
pub mod font_context;
pub mod font_template;
// Platform-specific implementations.
#[allow(unsafe_code)]
mod platform;
// Text
pub mod rendering_context;
pub mod text;