aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-23 16:29:19 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-23 18:12:37 +0100
commita02daf71449d04ae040edf1ecf99e9d0bd0c1aa7 (patch)
treee5757c0755aa4269b1668afc64a58a2ac8600993 /components/layout/context.rs
parentef8d36d208abeaf8396abe940a32263620966a72 (diff)
downloadservo-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/layout/context.rs')
-rw-r--r--components/layout/context.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 143e78f810e..2775e6e791c 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -8,7 +8,6 @@
#![allow(unsafe_code)]
use app_units::Au;
-use canvas_traits::CanvasMsg;
use euclid::Rect;
use fnv::FnvHasher;
use gfx::display_list::WebRenderImageInfo;
@@ -16,7 +15,7 @@ use gfx::font_cache_thread::FontCacheThread;
use gfx::font_context::FontContext;
use gfx_traits::LayerId;
use heapsize::HeapSizeOf;
-use ipc_channel::ipc::{self, IpcSender, IpcSharedMemory};
+use ipc_channel::ipc::{self, IpcSharedMemory};
use net_traits::image::base::Image;
use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread, ImageResponse, ImageState};
use net_traits::image_cache_thread::{ImageOrMetadataAvailable, UsePlaceholder};
@@ -24,7 +23,6 @@ use std::cell::{RefCell, RefMut};
use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use std::rc::Rc;
-use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex, RwLock};
use style::context::{LocalStyleContext, StyleContext};
use style::matching::{ApplicableDeclarationsCache, StyleSharingCandidateCache};
@@ -95,9 +93,6 @@ pub struct SharedLayoutContext {
/// The URL.
pub url: Url,
- /// A channel to send canvas renderers to paint thread, in order to correctly paint the layers
- pub canvas_layers_sender: Mutex<Sender<(LayerId, IpcSender<CanvasMsg>)>>,
-
/// The visible rects for each layer, as reported to us by the compositor.
pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>,