aboutsummaryrefslogtreecommitdiffstats
path: root/ports/glutin
Commit message (Collapse)AuthorAgeFilesLines
* Use surfman for managing GL surfacesPatrick Walton2019-11-014-9/+6
| | | | | | Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com> Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Extract device_pixels_per_px from global optsglowe2019-10-264-15/+39
| | | | | This is also an embedder specific option, so removing it from the global options makes sense.
* Extract 3 more embedder optionsglowe2019-10-264-11/+32
| | | | | | | Extracted clean-shutdown, msaa, and no-native-titlebar embedder specific options out from the global options. Partially fixes #23009
* Make angle and disable-vsync embedder optionsglowe2019-10-262-11/+31
| | | | | | | | The angle and disable-vsync options were declared as global options but only used in the Glutin embedding for desktop builds. Moving them to the Glutin embedding code makes them easier to update. Partially fixes #23009
* Remove some global options access within glutinglowe2019-10-264-16/+45
| | | | | | Removed opts::get() access for the two glutin specific options: angle and disable-vsync. This is the first step in a refactoring to separate these two options from the global options.
* Auto merge of #24344 - saschanaz:vslatest, r=jdmbors-servo2019-10-021-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support `--features vslatestinstalled` <!-- Please describe your changes on the following line: --> Matches https://github.com/servo/rust-mozjs/pull/477. --- <!-- 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 #24331 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] 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. --> <!-- 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/24344) <!-- Reviewable:end -->
| * Support `--features vslatestinstalled`Kagami Sascha Rosylight2019-10-021-0/+1
| |
* | Auto merge of #24310 - ceyusa:clean-display-glutin, r=ferjmbors-servo2019-10-022-76/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up gating and order of getting display/glcontext from glutin This patch simply simplify the OS gating for getting display and gl context from glutin since it is only used for a linux, mac and not UWP-based windows. Also, in linux tries to fetch the wayland display and don't rely on EGLDisplay because it might bring problems in servo/media. Nonetheless it is required to compile render-unix in servo-media with feature 'gl-wayland' <!-- Please describe your changes on the following line: --> --- <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because no functional changes, just clean ups <!-- 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. --> <!-- 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/24310) <!-- Reviewable:end -->
| * | Clean up gating and order of getting display/glcontext from glutinVíctor Manuel Jáquez Leal2019-09-302-76/+25
| |/ | | | | | | | | | | | | | | | | | | | | This patch simply simplify the OS gating for getting display and gl context from glutin since it is only used for a linux, mac and not UWP-based windows. Also, in linux tries to fetch the wayland display and don't rely on EGLDisplay because it might bring problems in servo/media. Nonetheless it is required to compile render-unix in servo-media with feature 'gl-wayland'
* | Remove unused dependenciesShotaro Yamada2019-10-011-5/+0
| |
* | Make it possible to rotate in webxr glwindow viewPaul Rouget2019-10-014-40/+107
|/
* Auto merge of #24253 - asajeffrey:glutin-new-window-shares-gl-bindings, ↵bors-servo2019-09-212-6/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=paulrouget Glutin new window shares gl bindings <!-- Please describe your changes on the following line: --> At the moment when the glutin port creates a new window which shares GL objects, it creates new GL bindings rather than sharting the existing ones. This PR fixes that. --- <!-- 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 do not require tests because it's an efficiency improvement <!-- 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. --> <!-- 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/24253) <!-- Reviewable:end -->
| * Make the current window not current while creating a new shared window in ↵Alan Jeffrey2019-09-201-0/+5
| | | | | | | | the glutin port
| * Don't completely trust servo's tracking of the GL context in glutinAlan Jeffrey2019-09-201-0/+7
| |
| * Add some debug! logs to the glutin portAlan Jeffrey2019-09-201-0/+4
| |
| * Share the GL bindings when creating a new glutin window which shares GL objectsAlan Jeffrey2019-09-201-6/+11
| |
* | Go back to original window size after exiting fullscreenFernando Jiménez Moreno2019-09-201-1/+1
|/
* Replace use of gleam in webgl with sparkle.Josh Matthews2019-09-111-1/+1
|
* Update ipc-channel and related dependenciesBastien Orivel2019-08-271-1/+1
|
* Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)Simon Sapin2019-08-231-1/+1
|
* Update webrender, image, png and raqoteBastien Orivel2019-08-162-2/+2
| | | | This will avoid duping png because of the raqote backend
* Added support for stdout/stderr (ref issue# 23734) to be redirected to ↵angelortiz10072019-08-091-1/+1
| | | | OutputDebugStringA().
* Support waking up headless window event loops while they are sleeping.Josh Matthews2019-07-251-28/+88
|
* Make headless window set current GL context before compositing.Josh Matthews2019-07-251-18/+23
|
* Support running WebGL in its own thread or on the main thread.Josh Matthews2019-07-251-1/+1
|
* Pass the event loop waker into WebXRAlan Jeffrey2019-07-251-2/+2
|
* Update euclid.Emilio Cobos Álvarez2019-07-234-51/+51
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Fix media-controls resources namingFernando Jiménez Moreno2019-07-221-2/+2
|
* Only allow UA widgets as children of media elementsFernando Jiménez Moreno2019-07-221-1/+1
| | | | Do not allow pseudo-elements for replaced elements
* Media UI basic functionalityFernando Jiménez Moreno2019-07-221-2/+3
|
* Barebones media UIFernando Jiménez Moreno2019-07-221-0/+1
|
* Get the glwindow test XR device to share a GL context with WebGLAlan Jeffrey2019-07-176-25/+110
|
* Auto merge of #23762 - servo:jdm-patch-39, r=SimonSapinbors-servo2019-07-121-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Support no_wgl feature in desktop builds. This makes it possible to test WebGL in ANGLE on desktop. <!-- 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/23762) <!-- Reviewable:end -->
| * Support no_wgl feature in desktop builds.Josh Matthews2019-07-121-0/+1
| |
* | Auto merge of #23516 - pcwalton:webrenderup, r=pcwalton,jdmbors-servo2019-07-123-7/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade WebRender This is against an old Servo because I can't build current Servo due to compile errors in RNG crates. I verified that it starts up. --- <!-- 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 #23516 - [x] There are tests for these changes <!-- 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/23516) <!-- Reviewable:end -->
| * Get the `servo` crate building with the new WebRenderPatrick Walton2019-07-093-7/+6
| |
* | Update test API, hook it up to webxr mockingManish Goregaokar2019-07-112-13/+14
|/
* Register a glwindow test XR deviceAlan Jeffrey2019-07-062-1/+18
|
* Auto merge of #23483 - ceyusa:player-context, r=jdmbors-servo2019-07-044-5/+200
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Media player rendering with GL textures These patches pass the application's OpenGL raw context and the its native display address to the media player, in order to create an internal wrapped context, thus it will generate video frames as textures. For now only EGL from glutin-based app and android are in place, though tested only in Linux glutin app. This PR also renders the generated frame textures by Servo/Media and renders them by using a thread that connects Webrenderer's ExternalImageHandler and each instantiated player. **By now, these patches, disable the WebGL rendering**. We need to provide a ExternalImageHandler demuxer. This PR depends on https://github.com/servo/media/pull/270 - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - This PR fixes #22300 and fixes #22920 In order to test it you must launch servo as `./mach run -- --pref media.glvideo.enabled [...]` <!-- 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/23483) <!-- Reviewable:end -->
| * Fix typos, warnings and other nitsFernando Jiménez Moreno2019-07-041-0/+2
| |
| * Fix OSX buildFernando Jiménez Moreno2019-07-041-1/+1
| |
| * Add more raw context handler for glutin portVíctor Manuel Jáquez Leal2019-07-042-14/+62
| |
| * Add media.glvideo preferenceVíctor Manuel Jáquez Leal2019-07-041-2/+10
| |
| * Implement Window's GL context for GlutinVíctor Manuel Jáquez Leal2019-07-042-9/+119
| |
| * Add media (WindowGLContext) module in canvas_traitVíctor Manuel Jáquez Leal2019-07-043-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module adds a structure (WindowGLContext) which holds the OpenGL parameters that are going to be used by servo-media player to render video frames using OpenGL. In order to fill this structure, three new methods were added to WindowMethods trait. In this patch only the Glutin-based implementation provides a simple boilerplate. The WindowGLContext is created in the entry point of libservo, when the application window is created, and later passed to the constellation, the pipeline and to the window element in dom, thus htmlmediaelement has a mean to obtain these parameters via its window.
* | Add `./mach build --with-layout-2020`Simon Sapin2019-07-041-0/+2
|/ | | | | … with corresponding `layout` and `layout_thread` crates, which for now do nothing.
* Auto merge of #23696 - servo:hl, r=jdmbors-servo2019-07-041-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add UWP port - bis This is #23658 with some fixes: - removed nspr from DLL dependencies (was breaking VS build) - exclude symbols from header file (was breaking VS build) - rebased Before merging: - please check the rebased commit that introduces the `--uwp` option (things moved around since https://github.com/servo/servo/commit/7c85dc09b59e653caf60cb18d3b3fdea2ba4d4ae) - should we wait until the WR fix lands upstream? <!-- 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/23696) <!-- Reviewable:end -->
| * Simplify build process for UWP app.Josh Matthews2019-07-031-0/+1
| |
* | Auto merge of #23564 - mmiecz:clipboard-refactoring, r=jdmbors-servo2019-07-032-0/+34
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clipboard refactoring <!-- Please describe your changes on the following line: --> This PR removes clipboard handling from the constellation. Instead, now embedder handles it. --- <!-- 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 #23440 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it is enough to test manually in input box, if copying and pasting still works . <!-- 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. --> <!-- 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/23564) <!-- Reviewable:end -->
| * Remove unneeded clipboard import.Michal Mieczkowski2019-06-151-1/+0
| |