pub struct TransformLayerEntry {
pub picture: Picture,
pub child_size: Size,
pub viewport_rect: Rect,
pub zoom: f32,
pub scroll_x: f32,
pub scroll_y: f32,
}Expand description
A captured TransformLayer — child content recorded into a separate Picture (D087) that the platform replays into its own SkiaCanvas and presents as an additional GPU compositor layer (D088).
Fields§
§picture: PictureRecorded child draw commands — replay-able independently of the main pass.
child_size: SizeNatural (unconstrained) size of the child content in logical pixels.
viewport_rect: RectViewport rect in screen-space logical pixels.
zoom: f32Content magnification factor — 1.0 for ordinary scrolling (all
existing consumers). InteractiveViewer (Phase 32) is the only
consumer that varies this: the offscreen content texture is
rasterized at dpi_scale * zoom (engine.rs), so the compositor’s
existing UV-window math (uv_span = dest / tex_size) naturally
samples a smaller fraction of a bigger texture — real GPU-crisp
zoom with no compositor changes. Screen<->content coordinate remap
(child_coords/content_to_screen) must divide/multiply by this.
scroll_x: f32Current horizontal scroll in logical pixels.
scroll_y: f32Current vertical scroll in logical pixels.
Trait Implementations§
Source§impl Clone for TransformLayerEntry
impl Clone for TransformLayerEntry
Source§fn clone(&self) -> TransformLayerEntry
fn clone(&self) -> TransformLayerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more