mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -27,6 +27,7 @@ use servo_url::{ImmutableOrigin, ServoUrl};
|
|||
use std::any::Any;
|
||||
use std::sync::atomic::AtomicIsize;
|
||||
use style::data::ElementData;
|
||||
use webrender_api::ImageKey;
|
||||
|
||||
#[derive(MallocSizeOf)]
|
||||
pub struct StyleData {
|
||||
|
@ -121,9 +122,9 @@ pub enum LayoutElementType {
|
|||
}
|
||||
|
||||
pub enum HTMLCanvasDataSource {
|
||||
WebGL(webrender_api::ImageKey),
|
||||
WebGL(ImageKey),
|
||||
Image(Option<IpcSender<CanvasMsg>>),
|
||||
WebGPU(webrender_api::ImageKey),
|
||||
WebGPU(ImageKey),
|
||||
}
|
||||
|
||||
pub struct HTMLCanvasData {
|
||||
|
@ -162,5 +163,5 @@ pub struct PendingImage {
|
|||
}
|
||||
|
||||
pub struct HTMLMediaData {
|
||||
pub current_frame: Option<(webrender_api::ImageKey, i32, i32)>,
|
||||
pub current_frame: Option<(ImageKey, i32, i32)>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue