mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix typos, warnings and other nits
This commit is contained in:
parent
0da87ad169
commit
cd17b6ca66
7 changed files with 35 additions and 53 deletions
|
@ -35,8 +35,8 @@ pub enum GLPlayerMsgForward {
|
|||
|
||||
/// GLPlayer thread Message API
|
||||
///
|
||||
/// These are the message that the thread will receive from the
|
||||
/// constellation, the webrender::ExternalImageHandle multiplexor
|
||||
/// These are the messages that the thread will receive from the
|
||||
/// constellation, the webrender::ExternalImageHandle demultiplexor
|
||||
/// implementation, or a htmlmediaelement
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub enum GLPlayerMsg {
|
||||
|
|
|
@ -11,10 +11,10 @@ use std::sync::{Arc, Mutex};
|
|||
use std::thread;
|
||||
use webrender_traits::{WebrenderExternalImageRegistry, WebrenderImageHandlerType};
|
||||
|
||||
/// A GLPlayerThrx1ead manages the life cycle and message multiplexign of
|
||||
/// A GLPlayerThread manages the life cycle and message demultiplexing of
|
||||
/// a set of video players with GL render.
|
||||
pub struct GLPlayerThread {
|
||||
// Map of live players.
|
||||
/// Map of live players.
|
||||
players: FnvHashMap<u64, GLPlayerSender<GLPlayerMsgForward>>,
|
||||
/// List of registered webrender external images.
|
||||
/// We use it to get an unique ID for new players.
|
||||
|
@ -50,7 +50,7 @@ impl GLPlayerThread {
|
|||
sender
|
||||
}
|
||||
|
||||
/// Handles a generic WebGLMsg message
|
||||
/// Handles a generic GLPlayerMsg message
|
||||
#[inline]
|
||||
fn handle_msg(&mut self, msg: GLPlayerMsg) -> bool {
|
||||
trace!("processing {:?}", msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue