pub(crate) struct PipelineDetails {
pub pipeline: Option<CompositionPipeline>,
pub parent_pipeline_id: Option<PipelineId>,
pub animations_running: bool,
pub animation_callbacks_running: bool,
pub throttled: bool,
pub scroll_tree: ScrollTree,
pub first_paint_metric: PaintMetricState,
pub first_contentful_paint_metric: PaintMetricState,
pub viewport_scale: Option<Scale<f32, CSSPixel, DevicePixel>>,
pub exited: PipelineExitSource,
}
Fields§
§pipeline: Option<CompositionPipeline>
The pipeline associated with this PipelineDetails object.
parent_pipeline_id: Option<PipelineId>
The id of the parent pipeline, if any.
animations_running: bool
Whether animations are running
animation_callbacks_running: bool
Whether there are animation callbacks
throttled: bool
Whether to use less resources by stopping animations.
scroll_tree: ScrollTree
The compositor-side ScrollTree. This is used to allow finding and scrolling nodes in the compositor before forwarding new offsets to WebRender.
first_paint_metric: PaintMetricState
The paint metric status of the first paint.
first_contentful_paint_metric: PaintMetricState
The paint metric status of the first contentful paint.
viewport_scale: Option<Scale<f32, CSSPixel, DevicePixel>>
The CSS pixel to device pixel scale of the viewport of this pipeline, including page zoom, but not including any pinch zoom amount. This is used to detect situations where the current display list is for an old scale.
exited: PipelineExitSource
Which parts of Servo have reported that this Pipeline
has exited. Only when all
have done so will it be discarded.
Implementations§
Source§impl PipelineDetails
impl PipelineDetails
pub(crate) fn new() -> PipelineDetails
fn install_new_scroll_tree(&mut self, new_scroll_tree: ScrollTree)
Auto Trait Implementations§
impl Freeze for PipelineDetails
impl !RefUnwindSafe for PipelineDetails
impl Send for PipelineDetails
impl !Sync for PipelineDetails
impl Unpin for PipelineDetails
impl UnwindSafe for PipelineDetails
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