Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGstreamer plugin running in wayland with surfman 0.2 #25334
Merged
+318
−135
Conversation
highfive
commented
Dec 18, 2019
228858f
to
aca438a
|
Oops, should have squashed before submitting the PR! |
|
r? @Manishearth |
ports/gstplugin/Cargo.toml
Outdated
| @@ -31,9 +31,9 @@ libservo = {path = "../../components/servo"} | |||
| servo-media = {git = "https://github.com/servo/media"} | |||
| sparkle = "0.1" | |||
| # NOTE: the sm-angle-default feature only enables angle on windows, not other platforms! | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ports/gstplugin/servowebsrc.rs
Outdated
| let sync_meta = | ||
| unsafe { gst_buffer_get_meta(gst_buffer.0, sync_meta_type) } as *mut GstGLSyncMeta; | ||
| if !sync_meta.is_null() { | ||
| unsafe { gst_gl_sync_meta_set_sync_point(sync_meta, gl_memory.mem.context) }; |
This comment has been minimized.
This comment has been minimized.
jdm
Dec 20, 2019
Member
We should be able to use:
- https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer/buffer/struct.BufferRef.html#method.get_meta
- https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer_gl/struct.GLSyncMeta.html
- https://slomo.pages.freedesktop.org/rustdocs/gstreamer/gstreamer_gl/struct.GLSyncMeta.html#method.set_sync_point
This comment has been minimized.
This comment has been minimized.
|
Fixed. |
ports/gstplugin/Cargo.toml
Outdated
| @@ -31,9 +31,9 @@ libservo = {path = "../../components/servo"} | |||
| servo-media = {git = "https://github.com/servo/media"} | |||
| sparkle = "0.1" | |||
| # NOTE: the sm-angle-default feature only enables angle on windows, not other platforms! | |||
This comment has been minimized.
This comment has been minimized.
ports/gstplugin/servowebsrc.rs
Outdated
| let sync_meta = | ||
| unsafe { gst_buffer_get_meta(gst_buffer.0, sync_meta_type) } as *mut GstGLSyncMeta; | ||
| if !sync_meta.is_null() { | ||
| unsafe { gst_gl_sync_meta_set_sync_point(sync_meta, gl_memory.mem.context) }; |
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r+ |
|
|
bors-servo
added a commit
that referenced
this pull request
Dec 20, 2019
Gstreamer plugin running in wayland with surfman 0.2 <!-- Please describe your changes on the following line: --> Tidying up the gstreamer plugin. The plugin now: * uses surfman 0.2 * runs in wayland (but can't render WebGL content yet) * gets its GL configuration from gstreamer * uses GLsync if needed --- <!-- 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 #24843 - [X] These changes do not require tests because <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
Windows plugin build is broken:
|
|
@bors-servo r=jdm |
|
|
bors-servo
added a commit
that referenced
this pull request
Dec 20, 2019
Gstreamer plugin running in wayland with surfman 0.2 <!-- Please describe your changes on the following line: --> Tidying up the gstreamer plugin. The plugin now: * uses surfman 0.2 * runs in wayland (but can't render WebGL content yet) * gets its GL configuration from gstreamer * uses GLsync if needed --- <!-- 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 #24843 - [X] These changes do not require tests because <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
Filed #25353, windows support will have to wait for me having a windows machine to test on. |
|
|
|
@bors-servo retry |
bors-servo
added a commit
that referenced
this pull request
Dec 20, 2019
Gstreamer plugin running in wayland with surfman 0.2 <!-- Please describe your changes on the following line: --> Tidying up the gstreamer plugin. The plugin now: * uses surfman 0.2 * runs in wayland (but can't render WebGL content yet) * gets its GL configuration from gstreamer * uses GLsync if needed --- <!-- 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 #24843 - [X] These changes do not require tests because <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
asajeffrey commentedDec 18, 2019
•
edited
Tidying up the gstreamer plugin. The plugin now:
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors