aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx_traits
diff options
context:
space:
mode:
authorMaciej Skrzypkowski <m.skrzypkows@samsung.com>2015-12-17 14:47:23 +0100
committerMaciej Skrzypkowski <m.skrzypkows@samsung.com>2015-12-18 08:33:32 +0100
commit3f7f323556edd0026ce03b7e15b44dea5cab5963 (patch)
tree4b4d7bf4338c1f678a8a9612442e8c9708df5168 /components/gfx_traits
parentf3e921a584e4254ff009c0494c48f9e3b6559c91 (diff)
downloadservo-3f7f323556edd0026ce03b7e15b44dea5cab5963.tar.gz
servo-3f7f323556edd0026ce03b7e15b44dea5cab5963.zip
Move PaintMsg enum to gfx_traits #8844
Diffstat (limited to 'components/gfx_traits')
-rw-r--r--components/gfx_traits/Cargo.toml4
-rw-r--r--components/gfx_traits/lib.rs10
2 files changed, 14 insertions, 0 deletions
diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml
index 6289f073cc7..ce66910fd75 100644
--- a/components/gfx_traits/Cargo.toml
+++ b/components/gfx_traits/Cargo.toml
@@ -17,3 +17,7 @@ features = ["plugins"]
[dependencies.msg]
path = "../msg"
+
+[dependencies]
+serde = "0.6"
+serde_macros = "0.6"
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs
index 2500db1db20..b2a7789089e 100644
--- a/components/gfx_traits/lib.rs
+++ b/components/gfx_traits/lib.rs
@@ -2,14 +2,24 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+#![feature(custom_derive, plugin)]
+#![plugin(serde_macros)]
#![crate_name = "gfx_traits"]
#![crate_type = "rlib"]
extern crate azure;
extern crate layers;
extern crate msg;
+extern crate serde;
pub mod color;
mod paint_listener;
pub use paint_listener::PaintListener;
+use msg::constellation_msg::Failure;
+
+/// Messages from the paint task to the constellation.
+#[derive(Deserialize, Serialize)]
+pub enum PaintMsg {
+ Failure(Failure),
+}