use super::*;
#[derive(Clone, Data, Debug, Default, PartialEq)]
pub struct RetainedScrollLayer {
pub(crate) route_key: String,
#[get(type(copy))]
pub(crate) wrapper_node: NodeId,
#[get(type(copy))]
pub(crate) layer_generation: u64,
#[get(type(copy))]
pub(crate) scroll_offset: Point,
pub(crate) nested_scroll_offsets: Vec<(NodeId, Point)>,
#[get(skip)]
pub(crate) focused_node: Option<NodeId>,
#[get(type(copy))]
pub(crate) animation_timeline_secs: f64,
pub(crate) suspended_transitions: Vec<NodeTransition>,
#[get(type(copy))]
pub(crate) reuse_count: u64,
#[get(type(copy))]
pub(crate) prewarm_count: u64,
#[get(type(copy))]
pub(crate) prewarmed_layout_nodes: usize,
#[get(type(copy))]
pub(crate) prewarmed_glyph_strings: usize,
#[get(type(copy))]
pub(crate) last_used_tick: u64,
}
#[derive(Clone, Data, Debug, Default, Eq, PartialEq)]
pub struct PagePrewarmReport {
pub(crate) route_key: String,
#[get(type(copy))]
pub(crate) layout_nodes_warmed: usize,
#[get(type(copy))]
pub(crate) glyph_strings_warmed: usize,
#[get(type(copy))]
pub(crate) retained_layer_reused: bool,
#[get(type(copy))]
pub(crate) scroll_layers_preserved: usize,
}
#[derive(Clone, Data, Debug, Default)]
pub struct RetainedLayerRegistry {
#[get(pub(crate))]
#[get_mut(pub(crate))]
#[set(skip)]
pub(crate) entries: HashMap<String, RetainedScrollLayer>,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) next_generation: u64,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) touch_clock: u64,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) total_reuse_hits: u64,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) total_prewarms: u64,
}