mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
canvas: Remove all the canvas layerization infrastructure
It was never complete, and with webrender as a backend the way we render WebGL contexts has changed a bit. This should remove quite a bit of overhead.
This commit is contained in:
parent
ef8d36d208
commit
a02daf7144
8 changed files with 6 additions and 90 deletions
|
@ -55,7 +55,6 @@ pub enum CanvasMsg {
|
|||
Canvas2d(Canvas2dMsg),
|
||||
Common(CanvasCommonMsg),
|
||||
FromLayout(FromLayoutMsg),
|
||||
FromPaint(FromPaintMsg),
|
||||
WebGL(CanvasWebGLMsg),
|
||||
}
|
||||
|
||||
|
@ -82,23 +81,6 @@ pub enum FromLayoutMsg {
|
|||
SendData(IpcSender<CanvasData>),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub enum FromPaintMsg {
|
||||
SendNativeSurface(Sender<NativeSurface>),
|
||||
}
|
||||
|
||||
impl Serialize for FromPaintMsg {
|
||||
fn serialize<S>(&self, _: &mut S) -> Result<(), S::Error> where S: Serializer {
|
||||
panic!("can't serialize a `FromPaintMsg`!")
|
||||
}
|
||||
}
|
||||
|
||||
impl Deserialize for FromPaintMsg {
|
||||
fn deserialize<D>(_: &mut D) -> Result<FromPaintMsg, D::Error> where D: Deserializer {
|
||||
panic!("can't deserialize a `FromPaintMsg`!")
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub enum Canvas2dMsg {
|
||||
Arc(Point2D<f32>, f32, f32, f32, bool),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue