aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-07-14 18:28:57 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-07-24 17:02:17 -0700
commitf10c0761802ed0f77e21d410124ef54239beb48a (patch)
treec17f2bb6b6ee77c246802a88a5b7acaa40e1f57e /components/script/layout_interface.rs
parented1b6a3513e7546b580693f554a081bc0c7c478a (diff)
downloadservo-f10c0761802ed0f77e21d410124ef54239beb48a.tar.gz
servo-f10c0761802ed0f77e21d410124ef54239beb48a.zip
profile: Make the time and memory profilers run over IPC.
Uses the `Router` abstraction inside `ipc-channel` to avoid spawning new threads.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 3c26f062214..b94758f56b7 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -18,7 +18,7 @@ use msg::constellation_msg::{WindowSizeData};
use msg::compositor_msg::Epoch;
use net_traits::image_cache_task::ImageCacheTask;
use net_traits::PendingAsyncLoad;
-use profile_traits::mem::{Reporter, ReportsChan};
+use profile_traits::mem::ReportsChan;
use script_traits::{ConstellationControlMsg, LayoutControlMsg, ScriptControlChan};
use script_traits::{OpaqueScriptLayoutChannel, StylesheetLoadResponder, UntrustedNodeAddress};
use std::any::Any;
@@ -159,14 +159,6 @@ impl LayoutChan {
}
}
-impl Reporter for LayoutChan {
- // Just injects an appropriate event into the layout task's queue.
- fn collect_reports(&self, reports_chan: ReportsChan) -> bool {
- let LayoutChan(ref c) = *self;
- c.send(Msg::CollectReports(reports_chan)).is_ok()
- }
-}
-
/// A trait to manage opaque references to script<->layout channels without needing
/// to expose the message type to crates that don't need to know about them.
pub trait ScriptLayoutChan {