fn page_flip(
        &self,
        handle: crtc::Handle,
        framebuffer: framebuffer::Handle,
        flags: PageFlipFlags,
        target_sequence: Option<(PageFlipTarget, u32)>,
    ) -> Result<(), SystemError> {
        let mut flags = flags.bits();
        if let Some((target, _)) = target_sequence {
            flags |= target as u32;
        }

        let _info = ffi::mode::page_flip(
            self.as_raw_fd(),
            handle.into(),
            framebuffer.into(),
            flags,
            target_sequence.map(|(_, sequence)| sequence).unwrap_or(0),
        )?;

        Ok(())
    }
/// Queue a page flip on the given crtc
Queue a page flip on the given crtc
Queue a page flip on the given crtc
fn page_flip(
        &self,
        handle: crtc::Handle,
        framebuffer: framebuffer::Handle,
        flags: PageFlipFlags,
        target_sequence: Option<(PageFlipTarget, u32)>,
    ) -> Result<(), SystemError> {
        let mut flags = flags.bits();
        if let Some((target, _)) = target_sequence {
            flags |= target as u32;
        }
        let _info = ffi::mode::page_flip(
            self.as_raw_fd(),
            handle.into(),
            framebuffer.into(),
            flags,
            target_sequence.map(|(_, sequence)| sequence).unwrap_or(0),
        )?;
        Ok(())
    }
fn page_flip ( & self , handle : crtc :: Handle , framebuffer : framebuffer :: Handle , flags : PageFlipFlags , target_sequence : Option < ( PageFlipTarget , u32 ) > , ) -> Result < ( ) , SystemError > { let mut flags = flags . bits ( ) ; if let Some ( ( target , _ ) ) = target_sequence { flags |= target as u32 ; } let _info = ffi :: mode :: page_flip ( self . as_raw_fd ( ) , handle . into ( ) , framebuffer . into ( ) , flags , target_sequence . map ( | ( _ , sequence ) | sequence ) . unwrap_or ( 0 ) , ) ? ; Ok ( ( ) ) }
Queue a page flip on the given crtc
Queue a page flip on the given crtc
&self
handle
crtc::Handle
framebuffer
framebuffer::Handle
flags
PageFlipFlags
target_sequence
Option<(PageFlipTarget, u32)>
&self
handle
crtc::Handle
framebuffer
framebuffer::Handle
flags
PageFlipFlags
target_sequence
Option<(PageFlipTarget, u32)>