mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Split webgl into separate crate (#36718)
canvas crate was home for both webgl and 2dcanvas impl, but it makes more sense to separate these two, by splitting webgl into standalone crate (like we already have for webgpu). Testing: Rust for fearless refactoring (but there are WPT tests just in case) Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
0c0ee04b8e
commit
955149b194
12 changed files with 79 additions and 33 deletions
13
components/webgl/lib.rs
Normal file
13
components/webgl/lib.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* 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/. */
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
pub use webgl_mode::WebGLComm;
|
||||
|
||||
mod webgl_limits;
|
||||
mod webgl_mode;
|
||||
pub mod webgl_thread;
|
||||
#[cfg(feature = "webxr")]
|
||||
mod webxr;
|
Loading…
Add table
Add a link
Reference in a new issue