mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Make the LayoutControlChan
use IPC.
This commit is contained in:
parent
e841065351
commit
9ce65c08a5
18 changed files with 277 additions and 76 deletions
|
@ -55,6 +55,9 @@ features = ["query_encoding"]
|
|||
[dependencies.offscreen_gl_context]
|
||||
git = "https://github.com/ecoal95/rust-offscreen-rendering-context"
|
||||
|
||||
[dependencies.ipc-channel]
|
||||
git = "https://github.com/pcwalton/ipc-channel"
|
||||
|
||||
[dependencies]
|
||||
log = "*"
|
||||
encoding = "0.2"
|
||||
|
|
|
@ -10,6 +10,7 @@ use dom::node::LayoutData;
|
|||
|
||||
use euclid::point::Point2D;
|
||||
use euclid::rect::Rect;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use libc::uintptr_t;
|
||||
use msg::compositor_msg::LayerId;
|
||||
use msg::constellation_msg::{PipelineExitType, WindowSizeData};
|
||||
|
@ -71,7 +72,7 @@ pub enum Msg {
|
|||
ExitNow(PipelineExitType),
|
||||
|
||||
/// Get the last epoch counter for this layout task.
|
||||
GetCurrentEpoch(Sender<Epoch>)
|
||||
GetCurrentEpoch(IpcSender<Epoch>)
|
||||
}
|
||||
|
||||
/// Synchronous messages that script can send to layout.
|
||||
|
|
|
@ -44,6 +44,7 @@ extern crate html5ever;
|
|||
extern crate encoding;
|
||||
extern crate fnv;
|
||||
extern crate hyper;
|
||||
extern crate ipc_channel;
|
||||
extern crate js;
|
||||
extern crate libc;
|
||||
extern crate msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue