aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/gfx/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/shared/gfx/lib.rs')
-rw-r--r--components/shared/gfx/lib.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/components/shared/gfx/lib.rs b/components/shared/gfx/lib.rs
index 5045a677c86..aaf57b5dfb1 100644
--- a/components/shared/gfx/lib.rs
+++ b/components/shared/gfx/lib.rs
@@ -9,6 +9,7 @@
pub mod print_tree;
use std::sync::atomic::{AtomicU64, Ordering};
+use std::sync::Arc;
use malloc_size_of_derive::MallocSizeOf;
use range::{int_range_index, RangeIndex};
@@ -119,12 +120,8 @@ pub fn node_id_from_scroll_id(id: usize) -> Option<usize> {
None
}
-pub enum FontData {
- Raw(Vec<u8>),
- Native(NativeFontHandle),
-}
-
pub trait WebrenderApi {
fn add_font_instance(&self, font_key: FontKey, size: f32) -> FontInstanceKey;
- fn add_font(&self, data: FontData) -> FontKey;
+ fn add_font(&self, data: Arc<Vec<u8>>, index: u32) -> FontKey;
+ fn add_system_font(&self, handle: NativeFontHandle) -> FontKey;
}