mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Remove the ConvertPipelineIdToWebRender trait.
This commit is contained in:
parent
2b58586299
commit
f0ca775c80
9 changed files with 8 additions and 20 deletions
|
@ -22,7 +22,7 @@ extern crate webrender_traits;
|
|||
use gfx::font_cache_thread::FontCacheThread;
|
||||
use gfx::paint_thread::LayoutToPaintMsg;
|
||||
use ipc_channel::ipc::{IpcReceiver, IpcSender};
|
||||
use msg::constellation_msg::{PanicMsg, PipelineId, PipelineNamespaceId, PipelineIndex};
|
||||
use msg::constellation_msg::{PanicMsg, PipelineId};
|
||||
use net_traits::image_cache_thread::ImageCacheThread;
|
||||
use profile_traits::{mem, time};
|
||||
use script_traits::LayoutMsg as ConstellationMsg;
|
||||
|
@ -52,15 +52,3 @@ pub trait LayoutThreadFactory {
|
|||
content_process_shutdown_chan: IpcSender<()>,
|
||||
webrender_api_sender: Option<webrender_traits::RenderApiSender>);
|
||||
}
|
||||
|
||||
pub trait ConvertPipelineIdToWebRender {
|
||||
fn to_webrender(&self) -> webrender_traits::PipelineId;
|
||||
}
|
||||
|
||||
impl ConvertPipelineIdToWebRender for PipelineId {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue