Enum media::GLPlayerMsg
source · pub enum GLPlayerMsg {
RegisterPlayer(GLPlayerSender<GLPlayerMsgForward>),
UnregisterPlayer(u64),
Lock(u64, GLPlayerSender<(u32, Size2D<i32>, usize)>),
Unlock(u64),
Exit,
}
Expand description
GLPlayer thread Message API
These are the messages that the thread will receive from the constellation, the webrender::ExternalImageHandle demultiplexor implementation, or a htmlmediaelement
Variants§
RegisterPlayer(GLPlayerSender<GLPlayerMsgForward>)
Registers an instantiated player in DOM
UnregisterPlayer(u64)
Unregisters a player’s ID
Lock(u64, GLPlayerSender<(u32, Size2D<i32>, usize)>)
Locks a specific texture from a player. Lock messages are used for a correct synchronization with WebRender external image API.
WR locks a external texture when it wants to use the shared texture contents.
The WR client should not change the shared texture content until the Unlock call.
Currently OpenGL Sync Objects are used to implement the synchronization mechanism.
Unlock(u64)
Unlocks a specific texture from a player. Unlock messages are used for a correct synchronization with WebRender external image API.
The WR unlocks a context when it finished reading the shared texture contents.
Unlock messages are always sent after a Lock message.
Exit
Frees all resources and closes the thread.
Trait Implementations§
source§impl Debug for GLPlayerMsg
impl Debug for GLPlayerMsg
source§impl<'de> Deserialize<'de> for GLPlayerMsg
impl<'de> Deserialize<'de> for GLPlayerMsg
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>,
Auto Trait Implementations§
impl Freeze for GLPlayerMsg
impl !RefUnwindSafe for GLPlayerMsg
impl Send for GLPlayerMsg
impl !Sync for GLPlayerMsg
impl Unpin for GLPlayerMsg
impl UnwindSafe for GLPlayerMsg
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
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>
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>
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 more