struct BoostWebRenderThread;Expand description
Hook implementation to boost webrender thread priority.
Trait Implementations§
Source§impl RenderBackendHooks for BoostWebRenderThread
impl RenderBackendHooks for BoostWebRenderThread
fn init_thread(&self)
Source§impl SceneBuilderHooks for BoostWebRenderThread
impl SceneBuilderHooks for BoostWebRenderThread
Source§fn register(&self)
fn register(&self)
This is called exactly once, when the scene builder thread is started
and before it processes anything.
Source§fn pre_scene_build(&self)
fn pre_scene_build(&self)
This is called before each scene build starts.
Source§fn pre_scene_swap(&self)
fn pre_scene_swap(&self)
This is called before each scene swap occurs.
Source§fn post_scene_swap(
&self,
_document_id: &Vec<DocumentId>,
_info: PipelineInfo,
_schedule_frame: bool,
)
fn post_scene_swap( &self, _document_id: &Vec<DocumentId>, _info: PipelineInfo, _schedule_frame: bool, )
This is called after each scene swap occurs. The PipelineInfo contains
the updated epochs and pipelines removed in the new scene compared to
the old scene.
Source§fn post_resource_update(&self, _document_ids: &Vec<DocumentId>)
fn post_resource_update(&self, _document_ids: &Vec<DocumentId>)
This is called after a resource update operation on the scene builder
thread, in the case where resource updates were applied without a scene
build.
Source§fn post_empty_scene_build(&self)
fn post_empty_scene_build(&self)
This is called after a scene build completes without any changes being
made. We guarantee that each pre_scene_build call will be matched with
exactly one of post_scene_swap, post_resource_update or
post_empty_scene_build.
Source§fn poke(&self)
fn poke(&self)
This is a generic callback which provides an opportunity to run code
on the scene builder thread. This is called as part of the main message
loop of the scene builder thread, but outside of any specific message
handler.
Source§fn deregister(&self)
fn deregister(&self)
This is called exactly once, when the scene builder thread is about to
terminate.
Auto Trait Implementations§
impl Freeze for BoostWebRenderThread
impl RefUnwindSafe for BoostWebRenderThread
impl Send for BoostWebRenderThread
impl Sync for BoostWebRenderThread
impl Unpin for BoostWebRenderThread
impl UnsafeUnpin for BoostWebRenderThread
impl UnwindSafe for BoostWebRenderThread
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>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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