INNER CODE UNIT · Rust

set_render_outputs

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

    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)
    }

    /// Variant for display-clock animation paths which retain their FFI
    /// storage between projection samples.
    pub fn set_render_outputs_reusing(
        &self,
        outputs: &[RenderOutput],
        scratch: &mut RenderOutputFfiScratch,
    ) -> Result<(), EngineError> {
        let function = self.library.set_render_outputs;
        scratch.outputs.clear();
        scratch
            .outputs
            .extend(outputs.iter().copied().map(RenderOutput::as_ffi));
        let pointer = if scratch.outputs.is_empty() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…