pub struct PaintDisplayListInfo {
pub pipeline_id: PipelineId,
pub viewport_details: ViewportDetails,
pub content_size: LayoutSize,
pub epoch: Epoch,
pub scroll_tree: ScrollTree,
pub root_reference_frame_id: ScrollTreeNodeId,
pub root_scroll_node_id: ScrollTreeNodeId,
pub is_contentful: bool,
pub first_reflow: bool,
}Expand description
A data structure which stores Paint-side information about
display lists sent to Paint.
Fields§
§pipeline_id: PipelineIdThe WebRender PipelineId of this display list.
viewport_details: ViewportDetailsThe ViewportDetails that describe the viewport in the script/layout thread at
the time this display list was created.
content_size: LayoutSizeThe size of this display list’s content.
epoch: EpochThe epoch of the display list.
scroll_tree: ScrollTreeA ScrollTree used by Paint to scroll the contents of the
display list.
root_reference_frame_id: ScrollTreeNodeIdThe ScrollTreeNodeId of the root reference frame of this info’s scroll
tree.
root_scroll_node_id: ScrollTreeNodeIdThe ScrollTreeNodeId of the topmost scrolling frame of this info’s scroll
tree.
is_contentful: boolContentful paint i.e. whether the display list contains items of type text, image, non-white canvas or SVG). Used by metrics. See https://w3c.github.io/paint-timing/#first-contentful-paint.
first_reflow: boolWhether the first layout or a subsequent (incremental) layout triggered this display list creation.
Implementations§
Source§impl PaintDisplayListInfo
impl PaintDisplayListInfo
Sourcepub fn new(
viewport_details: ViewportDetails,
content_size: LayoutSize,
pipeline_id: PipelineId,
epoch: Epoch,
viewport_scroll_sensitivity: AxesScrollSensitivity,
first_reflow: bool,
) -> Self
pub fn new( viewport_details: ViewportDetails, content_size: LayoutSize, pipeline_id: PipelineId, epoch: Epoch, viewport_scroll_sensitivity: AxesScrollSensitivity, first_reflow: bool, ) -> Self
Create a new PaintDisplayListInfo with the root reference frame and scroll frame already added to the scroll tree.
pub fn external_scroll_id_for_scroll_tree_node( &self, id: ScrollTreeNodeId, ) -> ExternalScrollId
Trait Implementations§
Source§impl Debug for PaintDisplayListInfo
impl Debug for PaintDisplayListInfo
Source§impl<'de> Deserialize<'de> for PaintDisplayListInfo
impl<'de> Deserialize<'de> for PaintDisplayListInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl MallocSizeOf for PaintDisplayListInfo
impl MallocSizeOf for PaintDisplayListInfo
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Auto Trait Implementations§
impl Freeze for PaintDisplayListInfo
impl !RefUnwindSafe for PaintDisplayListInfo
impl Send for PaintDisplayListInfo
impl !Sync for PaintDisplayListInfo
impl Unpin for PaintDisplayListInfo
impl UnwindSafe for PaintDisplayListInfo
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