servo: Merge #11083 - move struct ImageMetadata to a better place (from kevgs:image_metadata); r=Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 33fa63a3c5f2f2df27b68ca67cf46bf9788d8723
This commit is contained in:
Kosov Eugene
2016-05-09 02:25:37 -07:00
parent a3a676c919
commit 9c814b545a
3 changed files with 9 additions and 8 deletions

View File

@@ -6,7 +6,13 @@ use ipc_channel::ipc::IpcSharedMemory;
use piston_image::{self, DynamicImage, GenericImage, ImageFormat};
use util::opts;
pub use msg::constellation_msg::{Image, ImageMetadata, PixelFormat};
pub use msg::constellation_msg::{Image, PixelFormat};
#[derive(Clone, Deserialize, Eq, PartialEq, Serialize, HeapSizeOf)]
pub struct ImageMetadata {
pub width: u32,
pub height: u32,
}
// FIXME: Images must not be copied every frame. Instead we should atomically
// reference count them.