Skip to main content

negotiate_window

Function negotiate_window 

Source
pub fn negotiate_window(ctx: &Context, viewport: ViewportId) -> Negotiation
Expand description

Where the image of viewport goes for what it wants (display::want): negotiates against that window’s offer when the wish changes, records the image surface’s target and why (display::set_image_surface, and the window’s entry in windows.list). The viewport calls it each frame it draws the image on the GPU path; call it yourself only with an offer from install_offer (tests).