mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
* remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
44 lines
1.5 KiB
Rust
44 lines
1.5 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
pub use crate::compositor::IOCompositor;
|
|
pub use crate::compositor::ShutdownState;
|
|
|
|
use compositing_traits::{CompositorProxy, CompositorReceiver, ConstellationMsg};
|
|
use crossbeam_channel::Sender;
|
|
use profile_traits::mem;
|
|
use profile_traits::time;
|
|
use std::rc::Rc;
|
|
use webrender_api::DocumentId;
|
|
use webrender_api::RenderApi;
|
|
use webrender_surfman::WebrenderSurfman;
|
|
|
|
mod compositor;
|
|
#[cfg(feature = "gl")]
|
|
mod gl;
|
|
mod touch;
|
|
pub mod windowing;
|
|
|
|
/// Data used to construct a compositor.
|
|
pub struct InitialCompositorState {
|
|
/// A channel to the compositor.
|
|
pub sender: CompositorProxy,
|
|
/// A port on which messages inbound to the compositor can be received.
|
|
pub receiver: CompositorReceiver,
|
|
/// A channel to the constellation.
|
|
pub constellation_chan: Sender<ConstellationMsg>,
|
|
/// A channel to the time profiler thread.
|
|
pub time_profiler_chan: time::ProfilerChan,
|
|
/// A channel to the memory profiler thread.
|
|
pub mem_profiler_chan: mem::ProfilerChan,
|
|
/// Instance of webrender API
|
|
pub webrender: webrender::Renderer,
|
|
pub webrender_document: DocumentId,
|
|
pub webrender_api: RenderApi,
|
|
pub webrender_surfman: WebrenderSurfman,
|
|
pub webrender_gl: Rc<dyn gleam::gl::Gl>,
|
|
pub webxr_main_thread: webxr::MainThreadRegistry,
|
|
}
|