diff options
Diffstat (limited to 'components/canvas/canvas_paint_thread.rs')
-rw-r--r-- | components/canvas/canvas_paint_thread.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/components/canvas/canvas_paint_thread.rs b/components/canvas/canvas_paint_thread.rs index 85d92ee1e8f..ceaee808569 100644 --- a/components/canvas/canvas_paint_thread.rs +++ b/components/canvas/canvas_paint_thread.rs @@ -15,12 +15,11 @@ use gfx_traits::color; use ipc_channel::ipc::IpcSharedMemory; use ipc_channel::ipc::{self, IpcSender}; use ipc_channel::router::ROUTER; -use layers::platform::surface::NativeSurface; use num::ToPrimitive; use premultiplytable::PREMULTIPLY_TABLE; use std::borrow::ToOwned; use std::mem; -use std::sync::mpsc::{Sender, channel}; +use std::sync::mpsc::channel; use util::opts; use util::thread::spawn_named; use util::vec::byte_swap; @@ -205,13 +204,6 @@ impl<'a> CanvasPaintThread<'a> { } } } - CanvasMsg::FromPaint(message) => { - match message { - FromPaintMsg::SendNativeSurface(chan) => { - painter.send_native_surface(chan) - } - } - } CanvasMsg::WebGL(_) => panic!("Wrong message sent to Canvas2D thread"), } } @@ -550,12 +542,6 @@ impl<'a> CanvasPaintThread<'a> { }) } - fn send_native_surface(&self, _chan: Sender<NativeSurface>) { - // FIXME(mrobinson): We need a handle on the NativeDisplay to create compatible - // NativeSurfaces for the compositor. - unimplemented!() - } - fn image_data(&self, dest_rect: Rect<i32>, canvas_size: Size2D<f64>, |