use super::*;
#[derive(Clone, Data, Debug, Default)]
pub struct FontAtlasService {
pub(crate) font_provider: NativeSystemFont,
pub(crate) glyph_atlas: GlyphAtlas,
pub(crate) text_shaping_cache: TextShapingCache,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct FrameRenderParams {
#[get(type(copy))]
pub(crate) viewport: Size,
#[get(type(copy))]
pub(crate) scale_factor: f32,
#[get(type(copy))]
pub(crate) clear_color: Color,
#[get(type(copy))]
pub(crate) layout_stats: LayoutStats,
#[get(type(copy))]
pub(crate) damage: DamageRegion,
}
#[derive(Data, Debug)]
pub struct Renderer {
#[get(type(copy))]
pub(crate) config: RenderConfig,
#[get(type(copy))]
pub(crate) active_mode: RenderMode,
#[get(type(copy))]
pub(crate) active_backend: GraphicsBackend,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) active_backend_impl: ActiveRenderBackend,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) fallback_software: Option<Box<SoftwareRenderer>>,
pub(crate) font_service: FontAtlasService,
#[get(type(copy))]
#[get_mut(skip)]
#[set(pub(crate))]
pub(crate) surface_width: u32,
#[get(type(copy))]
#[get_mut(skip)]
#[set(pub(crate))]
pub(crate) surface_height: u32,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) paint_pass: PaintPass,
#[get(pub(crate))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) paint_fragment_cache: PaintFragmentCache,
pub(crate) display_list: DisplayList,
#[get(type(copy))]
pub(crate) frame_index: u64,
#[get(type(copy))]
pub(crate) compute_pixel_hash: bool,
#[get(type(copy))]
pub(crate) telemetry_enabled: bool,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) last_hashed_mode: Option<RenderMode>,
#[get(skip)]
#[get_mut(skip)]
#[set(skip)]
pub(crate) last_hashed_dims: (u32, u32),
#[get(type(copy))]
pub(crate) last_stats: FrameStats,
pub(crate) fallback_policy: FallbackPolicyEngine,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) composite_fast_path_frames: u64,
#[get(type(copy))]
#[get_mut(skip)]
#[set(skip)]
pub(crate) cpu_fallback_frames: u64,
pub(crate) adaptive_router: AdaptiveRenderRouter,
#[get(type(copy))]
pub(crate) last_adaptive_metrics: AdaptiveFrameMetrics,
}