pub struct ServoRenderer {
refresh_driver: RefreshDriver,
shutdown_state: Rc<Cell<ShutdownState>>,
compositor_receiver: RoutedReceiver<CompositorMsg>,
pub(crate) constellation_sender: Sender<EmbedderToConstellationMessage>,
time_profiler_chan: ProfilerChan,
pub(crate) webrender_api: RenderApi,
pub(crate) webrender_document: DocumentId,
webrender_gl: Rc<dyn Gl>,
webxr_main_thread: MainThreadRegistry,
pub(crate) convert_mouse_to_touch: bool,
pub(crate) last_mouse_move_position: Option<DevicePoint>,
frame_delayer: FrameDelayer,
}
Expand description
Data that is shared by all WebView renderers.
Fields§
§refresh_driver: RefreshDriver
The RefreshDriver
which manages the rythym of painting.
shutdown_state: Rc<Cell<ShutdownState>>
Tracks whether we are in the process of shutting down, or have shut down and should close
the compositor. This is shared with the Servo
instance.
compositor_receiver: RoutedReceiver<CompositorMsg>
The port on which we receive messages.
constellation_sender: Sender<EmbedderToConstellationMessage>
The channel on which messages can be sent to the constellation.
time_profiler_chan: ProfilerChan
The channel on which messages can be sent to the time profiler.
webrender_api: RenderApi
The WebRender RenderApi
interface used to communicate with WebRender.
webrender_document: DocumentId
The active webrender document.
webrender_gl: Rc<dyn Gl>
The GL bindings for webrender
webxr_main_thread: MainThreadRegistry
Some XR devices want to run on the main thread.
convert_mouse_to_touch: bool
True to translate mouse input into touch events.
last_mouse_move_position: Option<DevicePoint>
The last position in the rendered view that the mouse moved over. This becomes None
when the mouse leaves the rendered view.
frame_delayer: FrameDelayer
A [FrameRequestDelayer
] which is used to wait for canvas image updates to
arrive before requesting a new frame, as these happen asynchronously with
ScriptThread
display list construction.
Implementations§
Source§impl ServoRenderer
impl ServoRenderer
pub fn shutdown_state(&self) -> ShutdownState
pub(crate) fn hit_test_at_point( &self, point: DevicePoint, ) -> Vec<CompositorHitTestResult>
pub(crate) fn hit_test_at_point_with_flags( &self, point: DevicePoint, flags: HitTestFlags, ) -> Vec<CompositorHitTestResult>
pub(crate) fn send_transaction(&mut self, transaction: Transaction)
Auto Trait Implementations§
impl !Freeze for ServoRenderer
impl !RefUnwindSafe for ServoRenderer
impl !Send for ServoRenderer
impl !Sync for ServoRenderer
impl Unpin for ServoRenderer
impl !UnwindSafe for ServoRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more