mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
This moves the GL accelerated media setup out of `RenderingContext` which prevents making libservo dependo on the Wayland and X11 versions of surfman explicitly. This support is experimental and (honestly) a bit broken. I've confirmed that this works as well as it did before the change. The main thing here is that the configuration, which currently needs surfman types, moves to servoshell. In addition: 1. Instead of passing the information to the Constellation, the setup is stored statically. This is necessary to avoid introducing a dependency on `media` in `webrender_traits`. It's quite likely that `media` types should move to the internal embedding API to avoid this. This is preserved for a followup change. 2. The whole system of wrapping the media channels in an abstract type is removed. They could be either mpsc channels or IPC channels. This was never going to work because mpsc channels cannot be serialized and deserialized with serde. Instead this just uses IPC channels. We also have other ways of doing this kind of abstraction in Servo so we do not need another. The `mpsc` version was hard-coded to be disabled. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
23 lines
577 B
Rust
23 lines
577 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/. */
|
|
|
|
//! Contains files specific to the servoshell app for Desktop systems.
|
|
|
|
mod accelerated_gl_media;
|
|
pub(crate) mod app;
|
|
mod app_state;
|
|
pub(crate) mod cli;
|
|
mod dialog;
|
|
mod egui_glue;
|
|
mod embedder;
|
|
pub(crate) mod events_loop;
|
|
mod gamepad;
|
|
pub mod geometry;
|
|
mod headed_window;
|
|
mod headless_window;
|
|
mod keyutils;
|
|
mod minibrowser;
|
|
mod protocols;
|
|
mod tracing;
|
|
mod window_trait;
|