mirror of
https://github.com/servo/servo.git
synced 2025-07-30 10:40:27 +01:00
Added a dedicated panic channel.
This commit is contained in:
parent
a7c885706e
commit
cfb066ef20
13 changed files with 108 additions and 232 deletions
|
@ -25,21 +25,9 @@ pub use paint_listener::PaintListener;
|
|||
use azure::azure_hl::Color;
|
||||
use euclid::Matrix4D;
|
||||
use euclid::rect::Rect;
|
||||
use msg::constellation_msg::{Failure, PipelineId};
|
||||
use msg::constellation_msg::{PipelineId};
|
||||
use std::fmt::{self, Debug, Formatter};
|
||||
|
||||
/// Messages from the paint task to the constellation.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum PaintMsg {
|
||||
Failure(Failure),
|
||||
}
|
||||
|
||||
impl From<Failure> for PaintMsg {
|
||||
fn from(failure: Failure) -> PaintMsg {
|
||||
PaintMsg::Failure(failure)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub enum LayerKind {
|
||||
NoTransform,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue