mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
gfx: Allow images to be shipped to the WebRender thread without shipping
over the data as well. WebRender doesn't need the data, as it acquires it separately. About a 50%-100% improvement in display list building time on browser.html.
This commit is contained in:
@@ -222,7 +222,7 @@ pub struct ImageMetadata {
|
||||
pub height: u32,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize, HeapSizeOf)]
|
||||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub struct Image {
|
||||
pub width: u32,
|
||||
pub height: u32,
|
||||
|
||||
Reference in New Issue
Block a user