mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Proxy all WR interactions for layout/font/script/canvas threads to the compositor
thread. There is now a single RenderApi that is used, and all transactions are serialized through the compositor.
This commit is contained in:
parent
a6016b3a62
commit
75efaa95f5
16 changed files with 344 additions and 261 deletions
|
@ -103,3 +103,17 @@ pub fn node_id_from_scroll_id(id: usize) -> Option<usize> {
|
|||
}
|
||||
None
|
||||
}
|
||||
|
||||
pub enum FontData {
|
||||
Raw(Vec<u8>),
|
||||
Native(webrender_api::NativeFontHandle),
|
||||
}
|
||||
|
||||
pub trait WebrenderApi {
|
||||
fn add_font_instance(
|
||||
&self,
|
||||
font_key: webrender_api::FontKey,
|
||||
size: app_units::Au,
|
||||
) -> webrender_api::FontInstanceKey;
|
||||
fn add_font(&self, data: FontData) -> webrender_api::FontKey;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue