INNER CODE UNIT · Rust

current_time_nanos

denialwm/denial · compositor/flutter-engine/src/lib.rs:607

    pub fn current_time_nanos(&self) -> u64 {
        let function = self
            .library
            .table
            .GetCurrentTime
            .expect("validated Flutter proc table");
        // SAFETY: this proc has no arguments and the engine library is live.
        unsafe { function() }
    }

    /// Atomically replaces the complete physical-output raster snapshot.
    /// Flutter copies the slice before this call returns and installs it on
    /// the raster runner between frame transactions.
    pub fn set_render_outputs(&self, outputs: &[RenderOutput]) -> Result<(), EngineError> {
        let mut scratch = RenderOutputFfiScratch::with_capacity(outputs.len());
        self.set_render_outputs_reusing(outputs, &mut scratch)
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…