pub struct CompositorDisplayListInfo {
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 compositor-side information about display lists sent to the compositor.
Fields§
§pipeline_id: PipelineId
The WebRender PipelineId of this display list.
viewport_details: ViewportDetails
The ViewportDetails
that describe the viewport in the script/layout thread at
the time this display list was created.
content_size: LayoutSize
The size of this display list’s content.
epoch: Epoch
The epoch of the display list.
scroll_tree: ScrollTree
A ScrollTree used by the compositor to scroll the contents of the display list.
root_reference_frame_id: ScrollTreeNodeId
The ScrollTreeNodeId
of the root reference frame of this info’s scroll
tree.
root_scroll_node_id: ScrollTreeNodeId
The ScrollTreeNodeId
of the topmost scrolling frame of this info’s scroll
tree.
is_contentful: bool
Contentful 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: bool
Whether the first layout or a subsequent (incremental) layout triggered this display list creation.
Implementations§
Source§impl CompositorDisplayListInfo
impl CompositorDisplayListInfo
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 CompositorDisplayListInfo 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 CompositorDisplayListInfo
impl Debug for CompositorDisplayListInfo
Source§impl<'de> Deserialize<'de> for CompositorDisplayListInfo
impl<'de> Deserialize<'de> for CompositorDisplayListInfo
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 CompositorDisplayListInfo
impl MallocSizeOf for CompositorDisplayListInfo
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Auto Trait Implementations§
impl Freeze for CompositorDisplayListInfo
impl !RefUnwindSafe for CompositorDisplayListInfo
impl Send for CompositorDisplayListInfo
impl !Sync for CompositorDisplayListInfo
impl Unpin for CompositorDisplayListInfo
impl UnwindSafe for CompositorDisplayListInfo
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