aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/headless_window.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-02-03 15:38:48 +0100
committerGitHub <noreply@github.com>2024-02-03 14:38:48 +0000
commitd7d0451424faf1bf9c705068bea1aa8cf582d6ad (patch)
tree58bd9b44b0ba1f86036b322a5155a19eb6e2a913 /ports/servoshell/headless_window.rs
parentb2fe66f7e4a74eaf9a92c63a062ce67c4d9cc2a5 (diff)
downloadservo-d7d0451424faf1bf9c705068bea1aa8cf582d6ad.tar.gz
servo-d7d0451424faf1bf9c705068bea1aa8cf582d6ad.zip
libservo: Handle GL video decoding setup internally (#31209)
Instead of making the client set up GL video decoding, have this done inside libservo. The details necessary for decoding are fetched via Surfman now. This also removes the setup for the context on Android -- which has no GStreamer support now anyway. In the future, this could be enabled, but should likely be done using Surfman, instead of passing on all these details manually.
Diffstat (limited to 'ports/servoshell/headless_window.rs')
-rw-r--r--ports/servoshell/headless_window.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/ports/servoshell/headless_window.rs b/ports/servoshell/headless_window.rs
index d962362d64f..ba87ffd388c 100644
--- a/ports/servoshell/headless_window.rs
+++ b/ports/servoshell/headless_window.rs
@@ -15,7 +15,6 @@ use servo::rendering_context::RenderingContext;
use servo::servo_geometry::DeviceIndependentPixel;
use servo::style_traits::DevicePixel;
use servo::webrender_api::units::DeviceIntRect;
-use servo_media::player::context as MediaPlayerCtxt;
use surfman::{Connection, Context, Device, SurfaceType};
use crate::events_loop::WakerEvent;
@@ -144,18 +143,6 @@ impl WindowMethods for Window {
self.animation_state.set(state);
}
- fn get_gl_context(&self) -> MediaPlayerCtxt::GlContext {
- MediaPlayerCtxt::GlContext::Unknown
- }
-
- fn get_native_display(&self) -> MediaPlayerCtxt::NativeDisplay {
- MediaPlayerCtxt::NativeDisplay::Unknown
- }
-
- fn get_gl_api(&self) -> MediaPlayerCtxt::GlApi {
- MediaPlayerCtxt::GlApi::None
- }
-
fn rendering_context(&self) -> RenderingContext {
self.rendering_context.clone()
}