Update WR (driver workaround, large clip mask fix, font index support).

This commit is contained in:
Glenn Watson 2017-04-19 14:07:23 +10:00
parent 2f8d9013a0
commit 3dccd1ed2c
2 changed files with 27 additions and 27 deletions

View file

@ -348,9 +348,9 @@ impl FontCache {
font_key = Some(*webrender_fonts.entry(template.identifier.clone()).or_insert_with(|| {
let font_key = webrender_api.generate_font_key();
match (template.bytes_if_in_memory(), template.native_font()) {
(Some(bytes), _) => webrender_api.add_raw_font(font_key, bytes),
(Some(bytes), _) => webrender_api.add_raw_font(font_key, bytes, 0),
(None, Some(native_font)) => webrender_api.add_native_font(font_key, native_font),
(None, None) => webrender_api.add_raw_font(font_key, template.bytes().clone()),
(None, None) => webrender_api.add_raw_font(font_key, template.bytes().clone(), 0),
}
font_key
}));