fidl_fuchsia_images

Trait ImagePipe2ProxyInterface

Source
pub trait ImagePipe2ProxyInterface: Send + Sync {
    type PresentImageResponseFut: Future<Output = Result<PresentationInfo, Error>> + Send;

    // Required methods
    fn add_buffer_collection2(
        &self,
        buffer_collection_id: u32,
        buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>,
    ) -> Result<(), Error>;
    fn add_buffer_collection(
        &self,
        buffer_collection_id: u32,
        buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>,
    ) -> Result<(), Error>;
    fn add_image(
        &self,
        image_id: u32,
        buffer_collection_id: u32,
        buffer_collection_index: u32,
        image_format: &ImageFormat2,
    ) -> Result<(), Error>;
    fn remove_buffer_collection(
        &self,
        buffer_collection_id: u32,
    ) -> Result<(), Error>;
    fn remove_image(&self, image_id: u32) -> Result<(), Error>;
    fn present_image(
        &self,
        image_id: u32,
        presentation_time: u64,
        acquire_fences: Vec<Event>,
        release_fences: Vec<Event>,
    ) -> Self::PresentImageResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn add_buffer_collection2( &self, buffer_collection_id: u32, buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>, ) -> Result<(), Error>

Source

fn add_buffer_collection( &self, buffer_collection_id: u32, buffer_collection_token: ClientEnd<BufferCollectionTokenMarker>, ) -> Result<(), Error>

Source

fn add_image( &self, image_id: u32, buffer_collection_id: u32, buffer_collection_index: u32, image_format: &ImageFormat2, ) -> Result<(), Error>

Source

fn remove_buffer_collection( &self, buffer_collection_id: u32, ) -> Result<(), Error>

Source

fn remove_image(&self, image_id: u32) -> Result<(), Error>

Source

fn present_image( &self, image_id: u32, presentation_time: u64, acquire_fences: Vec<Event>, release_fences: Vec<Event>, ) -> Self::PresentImageResponseFut

Implementors§