From 43bf035f6ccf360af7c50537baf5f315c69def79 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 27 May 2016 13:38:56 +0200 Subject: [PATCH] Avoid some clones in UnprivilegedPipelineContent::start_all. --- components/constellation/pipeline.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index ef2d8dd8a91..dbcf55403d3 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -431,10 +431,10 @@ impl UnprivilegedPipelineContent { parent_info: self.parent_info, control_chan: self.script_chan.clone(), control_port: self.script_port, - constellation_chan: self.constellation_chan.clone(), - scheduler_chan: self.scheduler_chan.clone(), + constellation_chan: self.constellation_chan, + scheduler_chan: self.scheduler_chan, panic_chan: self.panic_chan.clone(), - bluetooth_thread: self.bluetooth_thread.clone(), + bluetooth_thread: self.bluetooth_thread, resource_threads: self.resource_threads, image_cache_thread: self.image_cache_thread.clone(), time_profiler_chan: self.time_profiler_chan.clone(), @@ -442,24 +442,24 @@ impl UnprivilegedPipelineContent { devtools_chan: self.devtools_chan, window_size: self.window_size, pipeline_namespace_id: self.pipeline_namespace_id, - content_process_shutdown_chan: self.script_content_process_shutdown_chan.clone(), + content_process_shutdown_chan: self.script_content_process_shutdown_chan, }, self.load_data.clone()); LTF::create(self.id, - self.load_data.url.clone(), + self.load_data.url, self.parent_info.is_some(), layout_pair, self.pipeline_port, self.layout_to_constellation_chan, self.panic_chan, - self.script_chan.clone(), - self.layout_to_paint_chan.clone(), + self.script_chan, + self.layout_to_paint_chan, self.image_cache_thread, self.font_cache_thread, self.time_profiler_chan, self.mem_profiler_chan, self.layout_shutdown_chan, - self.layout_content_process_shutdown_chan.clone(), + self.layout_content_process_shutdown_chan, self.webrender_api_sender); if wait_for_completion {