diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-10-09 04:15:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 04:15:18 -0400 |
commit | 3b153af49c8635e01b3a8eed86b5a1f901d58353 (patch) | |
tree | 4aadde035e0e511f993cdb5d32334dfe416b712a /components/script_traits/lib.rs | |
parent | 3455d223db93ab7e3b549dc2795577855bc8d9c6 (diff) | |
parent | 7e6661d9abd7b54b14853fbb469b5d7fa4442b84 (diff) | |
download | servo-3b153af49c8635e01b3a8eed86b5a1f901d58353.tar.gz servo-3b153af49c8635e01b3a8eed86b5a1f901d58353.zip |
Auto merge of #21543 - ceyusa:wip-player, r=<try>
Add <audio> and <video> player backends
These patches enables audio and video playing inside Servo.
It is bit hackish way to enable it, thus the purpose of this pull request is for an early request for comments.
It is tested with the current servo-media GStreamer backend in Linux.
~~The produced layout is not correct, since the elements after the video seems to be stacked behind, and the same with the scrolling bars.~~
~~There is no JavaScript interface yet~~, neither controls.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [X] These changes fix #6711
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21543)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 6c087690b5f..802e61ea172 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -72,7 +72,7 @@ use style_traits::CSSPixel; use style_traits::SpeculativePainter; use style_traits::cursor::CursorKind; use webdriver_msg::{LoadStatus, WebDriverScriptCommand}; -use webrender_api::{ExternalScrollId, DevicePixel, DeviceUintSize, DocumentId, ImageKey}; +use webrender_api::{DevicePixel, DeviceUintSize, DocumentId, ExternalScrollId, ImageKey, RenderApiSender}; use webvr_traits::{WebVREvent, WebVRMsg}; pub use script_msg::{LayoutMsg, ScriptMsg, EventResult, LogEntry}; @@ -588,6 +588,8 @@ pub struct InitialScriptState { pub webvr_chan: Option<IpcSender<WebVRMsg>>, /// The Webrender document ID associated with this thread. pub webrender_document: DocumentId, + /// FIXME(victor): The Webrender API sender in this constellation's pipeline + pub webrender_api_sender: RenderApiSender, } /// This trait allows creating a `ScriptThread` without depending on the `script` |