mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove the unused PipelineExitType from LayoutToPaintMsg::Exit.
This commit is contained in:
parent
a01fd7732d
commit
995d022bb9
2 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ pub enum Msg {
|
|||
pub enum LayoutToPaintMsg {
|
||||
PaintInit(Epoch, PaintLayer),
|
||||
CanvasLayer(LayerId, IpcSender<CanvasMsg>),
|
||||
Exit(IpcSender<()>, PipelineExitType),
|
||||
Exit(IpcSender<()>),
|
||||
}
|
||||
|
||||
pub enum ChromeToPaintMsg {
|
||||
|
@ -382,7 +382,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send + 'static {
|
|||
// FIXME(njn): should eventually measure the paint task.
|
||||
channel.send(Vec::new())
|
||||
}
|
||||
Msg::FromLayout(LayoutToPaintMsg::Exit(ref response_channel, _)) => {
|
||||
Msg::FromLayout(LayoutToPaintMsg::Exit(ref response_channel)) => {
|
||||
// Ask the compositor to remove any layers it is holding for this paint task.
|
||||
// FIXME(mrobinson): This can probably move back to the constellation now.
|
||||
self.compositor.notify_paint_task_exiting(self.id);
|
||||
|
|
|
@ -730,7 +730,7 @@ impl LayoutTask {
|
|||
/// crash.
|
||||
fn exit_now<'a>(&'a self,
|
||||
possibly_locked_rw_data: &mut Option<MutexGuard<'a, LayoutTaskData>>,
|
||||
exit_type: PipelineExitType) {
|
||||
_: PipelineExitType) {
|
||||
{
|
||||
let mut rw_data = self.lock_rw_data(possibly_locked_rw_data);
|
||||
if let Some(ref mut traversal) = (&mut *rw_data).parallel_traversal {
|
||||
|
@ -740,7 +740,7 @@ impl LayoutTask {
|
|||
}
|
||||
|
||||
let (response_chan, response_port) = ipc::channel().unwrap();
|
||||
self.paint_chan.send(LayoutToPaintMsg::Exit(response_chan, exit_type)).unwrap();
|
||||
self.paint_chan.send(LayoutToPaintMsg::Exit(response_chan)).unwrap();
|
||||
response_port.recv().unwrap()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue