Consume self in PrivilegedPipelineContent methods.

This leads to a little bit of copy/paste, but the resulting code should be
quite a bit more efficient.
This commit is contained in:
Ms2ger 2015-11-26 10:23:11 +01:00
parent 8dadd1a420
commit 9d73b869db
2 changed files with 31 additions and 20 deletions

View file

@ -362,7 +362,7 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
script_channel: Option<IpcSender<ConstellationControlMsg>>,
load_data: LoadData) {
let spawning_paint_only = script_channel.is_some();
let (pipeline, unprivileged_pipeline_content, mut privileged_pipeline_content) =
let (pipeline, unprivileged_pipeline_content, privileged_pipeline_content) =
Pipeline::create::<LTF, STF>(InitialPipelineState {
id: pipeline_id,
parent_info: parent_info,