Trait WebrenderExternalImageApi

Source
pub trait WebrenderExternalImageApi {
    // Required methods
    fn lock(&mut self, id: u64) -> (ExternalImageSource<'_>, UntypedSize2D<i32>);
    fn unlock(&mut self, id: u64);
}
Expand description

This trait is used as a bridge between the different GL clients in Servo that handles WebRender ExternalImages and the WebRender ExternalImageHandler API. This trait is used to notify lock/unlock messages and get the required info that WR needs.

Required Methods§

Source

fn lock(&mut self, id: u64) -> (ExternalImageSource<'_>, UntypedSize2D<i32>)

Source

fn unlock(&mut self, id: u64)

Implementors§