servo/components/gfx
Martin Robinson 6b2fa91357
gfx: Remove FontTemplateData (#32034)
Now that `FontTemplateData` is more or less the same on all platforms,
it can be removed. This is a preparatory change for a full refactor of
the font system on Servo. The major changes here are:

 - Remove `FontTemplateData` and move its members into `FontTemplate`
 - Make `FontTemplate` have full interior mutability instead of only
   the `FontTemplateData` member. This is preparation for having these
   data types `Send` and `Sync` with locking.
 - Remove the strong/weak reference concept for font data. In practice,
   all font data references were strong, so this was never fully
   complete. Instead of using this approach, the new font system will
   use a central font data cache with references associated to layouts.
 - The `CTFont` cache is now a global cache, so `CTFont`s can be shared
   between threads. The cache is cleared when clearing font caches.

A benefit of this change (apart from `CTFont` sharing) is that font data
loading is platform-independent now.
2024-04-16 17:50:50 +00:00
..
platform gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
tests gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
text gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
Cargo.toml Remove FontContextHandle (#32038) 2024-04-12 10:39:32 +00:00
font.rs gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
font_cache_thread.rs gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
font_context.rs gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
font_template.rs gfx: Remove FontTemplateData (#32034) 2024-04-16 17:50:50 +00:00
lib.rs gfx: Rename WebrenderSurfman to RenderingContext and move to gfx (#31184) 2024-01-27 17:58:34 +00:00
rendering_context.rs clippy: Fix remaining warnings in gfx for MacOS (#31669) 2024-03-15 12:14:36 +00:00