mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix ExtractFootprint annotations causing cache invalidation
This commit is contained in:
@@ -11,6 +11,12 @@ pub struct Arena {
|
||||
drops: Mutex<Vec<DropEntry>>,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Arena {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("Arena").field("generation", &self.generation).field("size", &self.buf.len()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
struct DropEntry {
|
||||
offset: usize,
|
||||
drop_fn: unsafe fn(*mut u8),
|
||||
|
||||
@@ -288,11 +288,7 @@ impl From<&[ContextFeature]> for ContextDependencies {
|
||||
_ => ContextFeatures::empty(),
|
||||
};
|
||||
}
|
||||
Self {
|
||||
extract,
|
||||
inject,
|
||||
sources: Vec::new(),
|
||||
}
|
||||
Self { extract, inject, sources: Vec::new() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -792,7 +788,13 @@ pub struct VarArgLink<'a> {
|
||||
pub outer: Option<&'a VarArgLink<'a>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
impl<'a> std::fmt::Debug for VarArgLink<'a> {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("VarArgLink").field("args_len", &self.args.len()).field("outer", &self.outer).finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct EvalScope<'a> {
|
||||
real_time: Option<f64>,
|
||||
animation_time: Option<f64>,
|
||||
@@ -1084,7 +1086,7 @@ impl CtxFamily for ContextImplFamily {
|
||||
type Ctx<'s> = ContextImpl<'s>;
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct ContextImpl<'a> {
|
||||
index: IndexLink<'a>,
|
||||
position: Option<&'a PositionLink<'a>>,
|
||||
|
||||
Reference in New Issue
Block a user