pub enum ScriptToCompositorMsg {
SendInitialTransaction(PipelineId),
SendScrollNode(PipelineId, LayoutPoint, ExternalScrollId),
SendDisplayList {
display_list_info: CompositorDisplayListInfo,
display_list_descriptor: BuiltDisplayListDescriptor,
display_list_receiver: IpcBytesReceiver,
},
HitTest(Option<PipelineId>, DevicePoint, 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(PipelineId, LayoutPoint, ExternalScrollId)
Perform a scroll operation.
SendDisplayList
Fields
§
display_list_info: CompositorDisplayListInfo
The CompositorDisplayListInfo that describes the display list being sent.
§
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>, DevicePoint, 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 ScriptToCompositorMsg
impl<'de> Deserialize<'de> for ScriptToCompositorMsg
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 ScriptToCompositorMsg
impl Send for ScriptToCompositorMsg
impl !Sync for ScriptToCompositorMsg
impl Unpin for ScriptToCompositorMsg
impl UnwindSafe for ScriptToCompositorMsg
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
Mutably borrows from an owned value. Read more
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>
Converts
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
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 moresource§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