engine::layer_tiling

Structs

LayerCanvasPlan

Canvas tiling plan for one logical render layer.

Properties

layer_id

Type: usize

active

Type: bool

surfaces

Type: Vec<SurfaceCanvasDescriptor>


SurfaceCanvasDescriptor

One physical canvas surface used to render a logical Pax layer tile.

Properties

id

Type: String

key

Type: String

left

Type: f64

top

Type: f64

width

Type: f64

height

Type: f64

replay_priority

Type: i32

surface_signature

Type: String

transform_signature

Type: String

host_signature

Type: String

Functions

scroller_canvas_plan

pub fn scroller_canvas_plan(layer_id: usize, host_signature: String, content_width: f64, content_height: f64, viewport_width: f64, viewport_height: f64, scroll_x: f64, scroll_y: f64, device_pixel_ratio: f64) -> LayerCanvasPlan

Build a tile window for a scrollable vector layer.


single_surface_plan

pub fn single_surface_plan(layer_id: usize, host_signature: String, width: f64, height: f64) -> LayerCanvasPlan

Build a one-surface plan for layers that do not need tiling.