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/webgl_paint_thread.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/webgl_paint_thread.rs')
-rw-r--r-- | components/canvas/webgl_paint_thread.rs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/components/canvas/webgl_paint_thread.rs b/components/canvas/webgl_paint_thread.rs index 08d8ea2f4b6..102a9f85f32 100644 --- a/components/canvas/webgl_paint_thread.rs +++ b/components/canvas/webgl_paint_thread.rs @@ -2,16 +2,14 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use canvas_traits::{CanvasCommonMsg, CanvasMsg, CanvasPixelData, CanvasData, CanvasWebGLMsg}; -use canvas_traits::{FromLayoutMsg, FromPaintMsg}; +use canvas_traits::{CanvasCommonMsg, CanvasMsg, CanvasPixelData, CanvasData, CanvasWebGLMsg, FromLayoutMsg}; use euclid::size::Size2D; use gleam::gl; use ipc_channel::ipc::{self, IpcSender, IpcSharedMemory}; use ipc_channel::router::ROUTER; -use layers::platform::surface::NativeSurface; use offscreen_gl_context::{ColorAttachmentType, GLContext, GLContextAttributes, NativeGLContext}; use std::borrow::ToOwned; -use std::sync::mpsc::{Sender, channel}; +use std::sync::mpsc::channel; use util::thread::spawn_named; use util::vec::byte_swap; use webrender_traits; @@ -93,12 +91,6 @@ impl WebGLPaintThread { painter.send_data(chan), } } - CanvasMsg::FromPaint(message) => { - match message { - FromPaintMsg::SendNativeSurface(chan) => - painter.send_native_surface(chan), - } - } CanvasMsg::Canvas2d(_) => panic!("Wrong message sent to WebGLThread"), } } @@ -147,12 +139,6 @@ impl WebGLPaintThread { } } - fn send_native_surface(&self, _: Sender<NativeSurface>) { - // FIXME(ecoal95): We need to make a clone of the surface in order to - // implement this - unimplemented!() - } - #[allow(unsafe_code)] fn recreate(&mut self, size: Size2D<i32>) -> Result<(), &'static str> { match self.data { |