pub trait RenderNotifier: Send {
// Required methods
fn clone(&self) -> Box<dyn RenderNotifier>;
fn wake_up(&self, composite_needed: bool);
fn new_frame_ready(
&self,
_: DocumentId,
publish_id: FramePublishId,
params: &FrameReadyParams,
);
// Provided methods
fn external_event(&self, _evt: ExternalEvent) { ... }
fn shut_down(&self) { ... }
}Expand description
A handler to integrate WebRender with the thread that contains the Renderer.
Required Methods§
Sourcefn clone(&self) -> Box<dyn RenderNotifier>
fn clone(&self) -> Box<dyn RenderNotifier>
Sourcefn wake_up(&self, composite_needed: bool)
fn wake_up(&self, composite_needed: bool)
Wake the thread containing the Renderer up (after updates have been put
in the renderer’s queue).
Sourcefn new_frame_ready(
&self,
_: DocumentId,
publish_id: FramePublishId,
params: &FrameReadyParams,
)
fn new_frame_ready( &self, _: DocumentId, publish_id: FramePublishId, params: &FrameReadyParams, )
Notify the thread containing the Renderer that a new frame is ready.
Provided Methods§
Sourcefn external_event(&self, _evt: ExternalEvent)
fn external_event(&self, _evt: ExternalEvent)
A Gecko-specific notification mechanism to get some code executed on the
Renderer’s thread, mostly replaced by NotificationHandler. You should
probably use the latter instead.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".