Struct script_traits::WebrenderIpcSender
source · pub struct WebrenderIpcSender(pub(crate) IpcSender<ScriptToCompositorMsg>);
Expand description
A mechanism to communicate with the parent process’ WebRender instance.
Tuple Fields§
§0: IpcSender<ScriptToCompositorMsg>
Implementations§
source§impl WebrenderIpcSender
impl WebrenderIpcSender
sourcepub fn new(sender: IpcSender<ScriptToCompositorMsg>) -> Self
pub fn new(sender: IpcSender<ScriptToCompositorMsg>) -> Self
Create a new WebrenderIpcSender object that wraps the provided channel sender.
sourcepub fn send_initial_transaction(&self, pipeline: WebRenderPipelineId)
pub fn send_initial_transaction(&self, pipeline: WebRenderPipelineId)
Inform WebRender of the existence of this pipeline.
sourcepub fn send_scroll_node(&self, point: LayoutPoint, scroll_id: ExternalScrollId)
pub fn send_scroll_node(&self, point: LayoutPoint, scroll_id: ExternalScrollId)
Perform a scroll operation.
sourcepub fn send_display_list(
&self,
display_list_info: CompositorDisplayListInfo,
list: BuiltDisplayList
)
pub fn send_display_list( &self, display_list_info: CompositorDisplayListInfo, list: BuiltDisplayList )
Inform WebRender of a new display list for the given pipeline.
sourcepub fn hit_test(
&self,
pipeline: Option<WebRenderPipelineId>,
point: WorldPoint,
flags: HitTestFlags
) -> Vec<CompositorHitTestResult> ⓘ
pub fn hit_test( &self, pipeline: Option<WebRenderPipelineId>, point: WorldPoint, flags: HitTestFlags ) -> Vec<CompositorHitTestResult> ⓘ
Perform a hit test operation. Blocks until the operation is complete and and a result is available.
sourcepub fn generate_image_key(&self) -> Result<ImageKey, ()>
pub fn generate_image_key(&self) -> Result<ImageKey, ()>
Create a new image key. Blocks until the key is available.
sourcepub fn update_images(&self, updates: Vec<ImageUpdate>)
pub fn update_images(&self, updates: Vec<ImageUpdate>)
Perform a resource update operation.
Trait Implementations§
source§impl Clone for WebrenderIpcSender
impl Clone for WebrenderIpcSender
source§fn clone(&self) -> WebrenderIpcSender
fn clone(&self) -> WebrenderIpcSender
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for WebrenderIpcSender
impl<'de> Deserialize<'de> for WebrenderIpcSender
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 WebrenderIpcSender
impl Send for WebrenderIpcSender
impl !Sync for WebrenderIpcSender
impl Unpin for WebrenderIpcSender
impl UnwindSafe for WebrenderIpcSender
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