diff options
author | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-03-23 16:29:19 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <ecoal95@gmail.com> | 2016-03-23 18:12:37 +0100 |
commit | a02daf71449d04ae040edf1ecf99e9d0bd0c1aa7 (patch) | |
tree | e5757c0755aa4269b1668afc64a58a2ac8600993 /components/canvas_traits/lib.rs | |
parent | ef8d36d208abeaf8396abe940a32263620966a72 (diff) | |
download | servo-a02daf71449d04ae040edf1ecf99e9d0bd0c1aa7.tar.gz servo-a02daf71449d04ae040edf1ecf99e9d0bd0c1aa7.zip |
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.
Diffstat (limited to 'components/canvas_traits/lib.rs')
-rw-r--r-- | components/canvas_traits/lib.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/components/canvas_traits/lib.rs b/components/canvas_traits/lib.rs index 87f1f8c7e41..24af48aaa49 100644 --- a/components/canvas_traits/lib.rs +++ b/components/canvas_traits/lib.rs @@ -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), |