mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Try to use
WebRender types more
The newer versions of WebRender move types around between `webrender` and `webrender_api` and this will reduce the churn during the upgrade.
This commit is contained in:
parent
1543912589
commit
3230162fd0
39 changed files with 330 additions and 327 deletions
|
@ -7,6 +7,7 @@ use image::ImageFormat;
|
|||
use ipc_channel::ipc::IpcSharedMemory;
|
||||
use pixels::PixelFormat;
|
||||
use std::fmt;
|
||||
use webrender_api::ImageKey;
|
||||
|
||||
#[derive(Clone, Deserialize, MallocSizeOf, Serialize)]
|
||||
pub struct Image {
|
||||
|
@ -16,7 +17,7 @@ pub struct Image {
|
|||
#[ignore_malloc_size_of = "Defined in ipc-channel"]
|
||||
pub bytes: IpcSharedMemory,
|
||||
#[ignore_malloc_size_of = "Defined in webrender_api"]
|
||||
pub id: Option<webrender_api::ImageKey>,
|
||||
pub id: Option<ImageKey>,
|
||||
pub cors_status: CorsStatus,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue