diff options
author | jmr0 <jrosello720@gmail.com> | 2015-12-15 19:35:25 -0500 |
---|---|---|
committer | jmr0 <jrosello720@gmail.com> | 2016-01-29 20:54:49 -0500 |
commit | 167ffa7a95ae0068d2b4f900d2207436a1799675 (patch) | |
tree | 6f7acc7414379c1f33f3f308d01f37d282693d37 /components/msg | |
parent | d1ff330ba80ad20eae8bfb2f0044e1e1199dc424 (diff) | |
download | servo-167ffa7a95ae0068d2b4f900d2207436a1799675.tar.gz servo-167ffa7a95ae0068d2b4f900d2207436a1799675.zip |
adding image metadata notification capabilities to image cache
Diffstat (limited to 'components/msg')
-rw-r--r-- | components/msg/constellation_msg.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs index ba971992a93..2ce14039a15 100644 --- a/components/msg/constellation_msg.rs +++ b/components/msg/constellation_msg.rs @@ -216,6 +216,12 @@ pub enum PixelFormat { RGBA8, // RGB + alpha, 8 bits per channel } +#[derive(Clone, Deserialize, Eq, PartialEq, Serialize, HeapSizeOf)] +pub struct ImageMetadata { + pub width: u32, + pub height: u32, +} + #[derive(Deserialize, Serialize, HeapSizeOf)] pub struct Image { pub width: u32, |