servo/components/shared/canvas/lib.rs
Ngo Iok Ui (Wu Yu Wei) b1031d68c7
Move webgl_channel into base crate (#32339)
* Move webgl_channel into a shared crate

* Add license header

* Rename channle types and simplify module

* Move module to base
2024-05-24 06:13:20 +00:00

25 lines
578 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![crate_name = "canvas_traits"]
#![crate_type = "rlib"]
#![deny(unsafe_code)]
use crossbeam_channel::Sender;
use euclid::default::Size2D;
use crate::canvas::CanvasId;
pub mod canvas;
#[macro_use]
pub mod webgl;
pub enum ConstellationCanvasMsg {
Create {
id_sender: Sender<CanvasId>,
size: Size2D<u64>,
antialias: bool,
},
Exit,
}