mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Do not share entire FrameRenderer with layout, only current frame
This commit is contained in:
parent
1f406ef0a0
commit
8c40ef459b
8 changed files with 102 additions and 149 deletions
|
@ -172,12 +172,6 @@ pub struct PendingImage {
|
|||
pub id: PendingImageId,
|
||||
}
|
||||
|
||||
/// FIXME(victor): probably this doesn't belong here
|
||||
pub trait HTMLMediaFrameSource: Send + Sync + 'static {
|
||||
fn get_current_frame(&self) -> Option<(webrender_api::ImageKey, i32, i32)>;
|
||||
fn clone_boxed(&self) -> Box<HTMLMediaFrameSource>;
|
||||
}
|
||||
|
||||
pub struct HTMLMediaData {
|
||||
pub frame_source: Box<HTMLMediaFrameSource>,
|
||||
pub current_frame: Option<(webrender_api::ImageKey, i32, i32)>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue