pub struct CompositorDisplayListInfo {
pub pipeline_id: PipelineId,
pub viewport_size: LayoutSize,
pub content_size: LayoutSize,
pub epoch: Epoch,
pub hit_test_info: Vec<HitTestInfo>,
pub scroll_tree: ScrollTree,
pub root_reference_frame_id: ScrollTreeNodeId,
pub root_scroll_node_id: ScrollTreeNodeId,
}
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_size: LayoutSize
The size of the viewport that this display list renders into.
content_size: LayoutSize
The size of this display list’s content.
epoch: Epoch
The epoch of the display list.
hit_test_info: Vec<HitTestInfo>
An array of HitTestInfo
which is used to store information
to assist the compositor to take various actions (set the cursor,
scroll without layout) using a WebRender hit test result.
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.
Implementations§
source§impl CompositorDisplayListInfo
impl CompositorDisplayListInfo
sourcepub fn new(
viewport_size: LayoutSize,
content_size: LayoutSize,
pipeline_id: PipelineId,
epoch: Epoch,
root_scroll_sensitivity: ScrollSensitivity,
) -> Self
pub fn new( viewport_size: LayoutSize, content_size: LayoutSize, pipeline_id: PipelineId, epoch: Epoch, root_scroll_sensitivity: ScrollSensitivity, ) -> Self
Create a new CompositorDisplayListInfo with the root reference frame and scroll frame already added to the scroll tree.
sourcepub fn add_hit_test_info(
&mut self,
node: u64,
cursor: Option<Cursor>,
scroll_tree_node: ScrollTreeNodeId,
) -> usize
pub fn add_hit_test_info( &mut self, node: u64, cursor: Option<Cursor>, scroll_tree_node: ScrollTreeNodeId, ) -> usize
Add or re-use a duplicate HitTestInfo entry in this CompositorHitTestInfo
and return the index.
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>,
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> 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