servo_canvas_traits/lib.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5#![crate_name = "servo_canvas_traits"]
6#![crate_type = "rlib"]
7#![deny(unsafe_code)]
8
9use crossbeam_channel::Sender;
10use euclid::default::Size2D;
11use profile_traits::mem::ReportsChan;
12
13use crate::canvas::CanvasId;
14
15pub mod canvas;
16#[macro_use]
17pub mod webgl;
18
19pub enum ConstellationCanvasMsg {
20 Create {
21 sender: Sender<Option<CanvasId>>,
22 size: Size2D<u64>,
23 },
24 CollectMemoryReport(ReportsChan),
25 Exit(Sender<()>),
26}