pub struct Surface { /* private fields */ }
Implementations
sourceimpl Surface
impl Surface
pub fn new(
binder_handle: i32,
nvdrv_srv: Shared<dyn INvDrvServices>,
application_display_service: Shared<dyn IApplicationDisplayService>,
nvhost_fd: u32,
nvmap_fd: u32,
nvhostctrl_fd: u32,
hos_binder_driver: Shared<dyn IHOSBinderDriver>,
buffer_count: u32,
display_id: DisplayId,
layer_id: LayerId,
width: u32,
height: u32,
color_fmt: ColorFormat,
pixel_fmt: PixelFormat,
layout: Layout,
layer_destroy_fn: LayerDestroyFn
) -> Result<Self>
pub fn dequeue_buffer(
&mut self,
is_async: bool
) -> Result<(*mut u8, usize, i32, bool, MultiFence)>
pub fn queue_buffer(&mut self, slot: i32, fences: MultiFence) -> Result<()>
pub fn wait_fences(&mut self, fences: MultiFence, timeout: i32) -> Result<()>
pub fn set_visible(&mut self, visible: bool) -> Result<()>
pub fn wait_buffer_event(&mut self, timeout: i64) -> Result<()>
pub fn wait_vsync_event(&mut self, timeout: i64) -> Result<()>
pub fn get_width(&self) -> u32
pub fn get_height(&self) -> u32
pub fn get_color_format(&self) -> ColorFormat
pub fn compute_stride(&self) -> u32
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Surface
impl !Send for Surface
impl !Sync for Surface
impl Unpin for Surface
impl !UnwindSafe for Surface
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more