Remove the ConvertPipelineIdToWebRender trait.

This commit is contained in:
Ms2ger 2016-05-27 15:28:44 +02:00
parent 2b58586299
commit f0ca775c80
9 changed files with 8 additions and 20 deletions

View file

@ -331,6 +331,12 @@ impl PipelineId {
index: PipelineIndex(0),
}
}
pub fn to_webrender(&self) -> webrender_traits::PipelineId {
let PipelineNamespaceId(namespace_id) = self.namespace_id;
let PipelineIndex(index) = self.index;
webrender_traits::PipelineId(namespace_id, index)
}
}
impl fmt::Display for PipelineId {