fidl_fuchsia_imagesTrait 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;
}