mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
We want to eventually remove raqote backend, but for now we can gate it behind a feature (still enabled by default in servoshell) like the rest of backends. `dom_canvas_backend=auto` will select first available backend. Builds on top of https://github.com/servo/servo/pull/38310 to support cases where no backend is available. Testing: It compiles with or without feature --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
22 lines
521 B
Rust
22 lines
521 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/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
mod backend;
|
|
|
|
#[cfg(feature = "raqote")]
|
|
mod raqote_backend;
|
|
|
|
#[cfg(any(feature = "vello", feature = "vello_cpu"))]
|
|
mod peniko_conversions;
|
|
|
|
#[cfg(feature = "vello")]
|
|
mod vello_backend;
|
|
|
|
#[cfg(feature = "vello_cpu")]
|
|
mod vello_cpu_backend;
|
|
|
|
pub mod canvas_data;
|
|
pub mod canvas_paint_thread;
|