diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-02-03 15:38:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 14:38:48 +0000 |
commit | d7d0451424faf1bf9c705068bea1aa8cf582d6ad (patch) | |
tree | 58bd9b44b0ba1f86036b322a5155a19eb6e2a913 /components/compositing/windowing.rs | |
parent | b2fe66f7e4a74eaf9a92c63a062ce67c4d9cc2a5 (diff) | |
download | servo-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 'components/compositing/windowing.rs')
-rw-r--r-- | components/compositing/windowing.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/compositing/windowing.rs b/components/compositing/windowing.rs index 7dfc7d6bf9e..98e610d9921 100644 --- a/components/compositing/windowing.rs +++ b/components/compositing/windowing.rs @@ -15,7 +15,6 @@ use libc::c_void; use msg::constellation_msg::{PipelineId, TopLevelBrowsingContextId, TraversalDirection}; use script_traits::{MediaSessionActionType, MouseButton, TouchEventType, TouchId, WheelDelta}; use servo_geometry::DeviceIndependentPixel; -use servo_media::player::context::{GlApi, GlContext, NativeDisplay}; use servo_url::ServoUrl; use style_traits::DevicePixel; use webrender_api::units::{DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePoint}; @@ -171,13 +170,7 @@ pub trait WindowMethods { /// will want to avoid blocking on UI events, and just /// run the event loop at the vsync interval. fn set_animation_state(&self, _state: AnimationState); - /// Get the media GL context - fn get_gl_context(&self) -> GlContext; - /// Get the media native display - fn get_native_display(&self) -> NativeDisplay; - /// Get the GL api - fn get_gl_api(&self) -> GlApi; - /// Get the RenderingContext instance. + /// Get the [`RenderingContext`] of this Window. fn rendering_context(&self) -> RenderingContext; } |