INNER CODE UNIT · Rust

set_render_outputs_reusing

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

    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() {
            ptr::null()
        } else {
            scratch.outputs.as_ptr()
        };
        // SAFETY: the live engine synchronously copies this bounded slice;
        // null is supplied only for the explicitly supported empty snapshot.
        check_result("SetRenderOutputs", unsafe {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…