pub(crate) struct PipelineDetails {
pub pipeline: Option<CompositionPipeline>,
pub id: PipelineId,
pub parent_pipeline_id: Option<PipelineId>,
pub most_recent_display_list_epoch: Option<Epoch>,
pub animations_running: bool,
pub animation_callbacks_running: bool,
pub throttled: bool,
pub hit_test_items: Vec<HitTestInfo>,
pub scroll_tree: ScrollTree,
pub first_paint_metric: PaintMetricState,
pub first_contentful_paint_metric: PaintMetricState,
}
Fields§
§pipeline: Option<CompositionPipeline>
The pipeline associated with this PipelineDetails object.
id: PipelineId
The PipelineId
of this pipeline.
parent_pipeline_id: Option<PipelineId>
The id of the parent pipeline, if any.
most_recent_display_list_epoch: Option<Epoch>
The epoch of the most recent display list for this pipeline. Note that this display list might not be displayed, as WebRender processes display lists asynchronously.
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.
hit_test_items: Vec<HitTestInfo>
Hit test items for this pipeline. This is used to map WebRender hit test information to the full information necessary for Servo.
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.
Implementations§
Source§impl PipelineDetails
impl PipelineDetails
pub(crate) fn animations_or_animation_callbacks_running(&self) -> bool
pub(crate) fn animation_callbacks_running(&self) -> bool
pub(crate) fn animating(&self) -> bool
pub(crate) fn tick_animations(&self, compositor: &IOCompositor)
Source§impl PipelineDetails
impl PipelineDetails
pub(crate) fn new(id: PipelineId) -> 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