Enum script_traits::WebrenderMsg
source · pub enum WebrenderMsg {
SendInitialTransaction(PipelineId),
SendScrollNode(LayoutPoint, ExternalScrollId, ScrollClamping),
SendDisplayList {
display_list_info: CompositorDisplayListInfo,
content_size: LayoutSize,
display_list_descriptor: BuiltDisplayListDescriptor,
display_list_receiver: IpcBytesReceiver,
},
HitTest(Option<PipelineId>, WorldPoint, HitTestFlags, IpcSender<Vec<CompositorHitTestResult>>),
GenerateImageKey(IpcSender<ImageKey>),
UpdateImages(Vec<SerializedImageUpdate>),
}
Expand description
The set of WebRender operations that can be initiated by the content process.
Variants§
SendInitialTransaction(PipelineId)
Inform WebRender of the existence of this pipeline.
SendScrollNode(LayoutPoint, ExternalScrollId, ScrollClamping)
Perform a scroll operation.
SendDisplayList
Fields
§
display_list_info: CompositorDisplayListInfo
The CompositorDisplayListInfo that describes the display list being sent.
§
content_size: LayoutSize
The content size of this display list as calculated by WebRender.
§
display_list_descriptor: BuiltDisplayListDescriptor
A descriptor of this display list used to construct this display list from raw data.
§
display_list_receiver: IpcBytesReceiver
An ipc::IpcBytesReceiver used to send the raw data of the display list.
Inform WebRender of a new display list for the given pipeline.
HitTest(Option<PipelineId>, WorldPoint, HitTestFlags, IpcSender<Vec<CompositorHitTestResult>>)
Perform a hit test operation. The result will be returned via the provided channel sender.
GenerateImageKey(IpcSender<ImageKey>)
Create a new image key. The result will be returned via the provided channel sender.
UpdateImages(Vec<SerializedImageUpdate>)
Perform a resource update operation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for WebrenderMsg
impl<'de> Deserialize<'de> for WebrenderMsg
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for WebrenderMsg
impl Send for WebrenderMsg
impl !Sync for WebrenderMsg
impl Unpin for WebrenderMsg
impl UnwindSafe for WebrenderMsg
Blanket Implementations§
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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert