fn present(session: &scenic::SessionPtr) {
    fasync::Task::local(
        session
            .lock()
            // Passing 0 for requested_presentation_time tells scenic that that it should process
            // enqueued operation as soon as possible.
            // Passing 0 for requested_prediction_span guarantees that scenic will provide at least
            // one future time.
            .present2(0, 0)
            .map_ok(|_| ())
            .unwrap_or_else(|error| fx_log_err!("Present error: {:?}", error)),
    )
    .detach();
}
/// Inform Scenic that is should render any pending changes
Inform Scenic that is should render any pending changes
Inform Scenic that is should render any pending changes
fn present(session: &scenic::SessionPtr) {
    fasync::Task::local(
        session
            .lock()
            // Passing 0 for requested_presentation_time tells scenic that that it should process
            // enqueued operation as soon as possible.
            // Passing 0 for requested_prediction_span guarantees that scenic will provide at least
            // one future time.
            .present2(0, 0)
            .map_ok(|_| ())
            .unwrap_or_else(|error| fx_log_err!("Present error: {:?}", error)),
    )
    .detach();
}
fn present ( session : & scenic :: SessionPtr ) { fasync :: Task :: local ( session . lock ( ) // Passing 0 for requested_presentation_time tells scenic that that it should process // enqueued operation as soon as possible. // Passing 0 for requested_prediction_span guarantees that scenic will provide at least // one future time. . present2 ( 0 , 0 ) . map_ok ( | _ | ( ) ) . unwrap_or_else ( | error | fx_log_err ! ( " " error ) ) , ) . detach ( ) ; }
Inform Scenic that is should render any pending changes
Inform Scenic that is should render any pending changes
session
&scenic::SessionPtr
session
&scenic::SessionPtr