aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/lib.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-08-31 17:41:23 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-10-08 16:12:01 +0200
commit8c40ef459b8ee58f480128f9e9ed3a7b3fd6f500 (patch)
tree09f0a5ecf3d68ca8cd76bf701e9b7b55bf3ad57c /components/script_layout_interface/lib.rs
parent1f406ef0a0f302ca1741dbaa59887a0c1c924865 (diff)
downloadservo-8c40ef459b8ee58f480128f9e9ed3a7b3fd6f500.tar.gz
servo-8c40ef459b8ee58f480128f9e9ed3a7b3fd6f500.zip
Do not share entire FrameRenderer with layout, only current frame
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r--components/script_layout_interface/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs
index 0db0bbe3ef5..bd48b2b7c51 100644
--- a/components/script_layout_interface/lib.rs
+++ b/components/script_layout_interface/lib.rs
@@ -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)>,
}