mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
move struct ImageMetadata to a better place
This commit is contained in:
parent
47c2858647
commit
d51c61481f
3 changed files with 9 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue