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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user