aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Add WebGLSampler supportMátyás Mustoha2019-10-081-0/+24
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
* Initial implementation of WebGLSyncIstvan Miklos2019-10-021-0/+27
| | | | | | | This patch adds initial support for WebGLSync. Note: There is no test for the isSync, deleteSync and waitSync functions in the `conformance2/sync/sync-webgl-specific.html`.
* Initial implementation of WebGLQueriesMátyás Mustoha2019-10-011-0/+17
| | | | | | | | This patch adds initial support for WeGLQueries. Most related WebGL functions and objects are implemented [1]. What's still missing is the `EXT_disjoint_timer_query_webgl2` support. [1]: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.12
* webxr: Use the same texture format as the original GL context's framebuffer ↵Josh Matthews2019-09-201-5/+6
| | | | when creating an XR GL layer.
* webgl: Support vertex array objects on macOS.Josh Matthews2019-09-131-9/+69
|
* Replace use of gleam in webgl with sparkle.Josh Matthews2019-09-111-25/+20
|
* Fallback to old extensions API if NUM_EXTENSIONS errorsAlan Jeffrey2019-09-031-0/+5
|
* Fix extension querying when using WebGL2Mátyás Mustoha2019-08-261-1/+12
| | | | | | | | This patch fixes a crash caused by using a deprecated GL call. Starting with OpenGL 3 (used by WebGL2), the `glGetString(GL_EXTENSIONS)` call is deprecated, and some drivers produce GL_INVALID_ENUM error. Querying can be done by checking the number of extensions first, then getting the extensions one by one.
* Drop webgl main thread data during shutdown.Josh Matthews2019-07-291-6/+8
|
* Replace use of callbacks in webxr by channelsAlan Jeffrey2019-07-261-20/+2
|
* When using the WebGL external image API, use sync calls if we happen to be ↵Alan Jeffrey2019-07-261-79/+88
| | | | on the WebGL thread
* Remove extra webgl message pumping thread.Josh Matthews2019-07-251-19/+17
|
* Support running WebGL in its own thread or on the main thread.Josh Matthews2019-07-251-42/+153
|
* Update euclid.Emilio Cobos Álvarez2019-07-231-1/+1
| | | | | | | | 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.
* Make GL/GLES decisions based on the API in use.Josh Matthews2019-07-121-1/+6
|
* Auto merge of #23516 - pcwalton:webrenderup, r=pcwalton,jdmbors-servo2019-07-121-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 -->
| * WebRender units are no longer reexported.Patrick Walton2019-07-091-1/+1
| |
* | Use separate IPC-only locking mechanism when locking from webxrManish Goregaokar2019-07-111-4/+20
|/
* Introduce WebrenderExternalImageRegistryFernando Jiménez Moreno2019-07-041-7/+21
|
* Webrender external image handler demuxFernando Jiménez Moreno2019-07-041-47/+0
|
* Add initial support for WebGL compressed texturesMátyás Mustoha2019-05-211-0/+37
|
* Auto merge of #23000 - jdm:invisible-webgl, r=noxbors-servo2019-03-081-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make webgl behave better with session history This prevents the compositor from animating pages that are not actually visible, so pages using webgl do not needlessly impact the performance of the rest of the browser. Additionally, this fixes a problem that was alluded to in [this code](https://github.com/servo/rust-offscreen-rendering-context/blob/b5228c098b889a9806a5f93582903e192b3939ef/src/draw_buffer.rs#L282-L285), causing Servo to delete arbitrary resources when a GC occurred in content that used three.js. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22987 and fix #22977 and fix #20934 and fix #20953 and fix #20930 and fix #20950 and fix #20924 - [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/23000) <!-- Reviewable:end -->
| * Ensure that removed contexts are made active before removal.Josh Matthews2019-03-081-0/+4
| |
* | Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-7/+5
|/
* Pass the GL context to the VRDisplay when renderingAlan Jeffrey2019-02-271-9/+13
|
* Report all messages processed by the webgl thread.Josh Matthews2019-01-311-2/+3
|
* Ensure that resized GL contexts do not destroy their resources while in use ↵Josh Matthews2019-01-171-2/+27
| | | | by WR.
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-4/+4
|
* Update webrenderManish Goregaokar2018-11-271-3/+3
|
* Auto merge of #22234 - jdm:android-gl-crash, r=Manishearthbors-servo2018-11-231-3/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix android GL crash There were two issues, fundamentally: 1. POINT_SPRITE is not supported on GLES, which was causing the GL_INVALID_ENUM error when using any WebGL API. 2. The version check was using the wrong version value to determine if enabling point sprites was necessary. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22162 - [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/22234) <!-- Reviewable:end -->
| * webgl: Don't unnecessarily enable point sprites on GLES.Josh Matthews2018-11-211-3/+14
| |
* | Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-201-12/+20
| | | | | | | | This avoids a copy in the case of textures coming from HTMLImageElement.
* | Call rgba8_byte_swap_colors_inplace on the WebGL threadAnthony Ramine2018-11-201-11/+22
| |
* | Move prepare_pixels to the canvas threadAnthony Ramine2018-11-201-0/+327
| | | | | | | | Nothing else uses it in the whole crate graph.
* | Call prepare_pixels on the WebGL threadAnthony Ramine2018-11-201-8/+38
| |
* | Use Size2D in TexImage2D and TexSubImage2D messagesAnthony Ramine2018-11-201-8/+6
|/
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Send alignment info directly in TexImage2D and TexSubImage2d messagesAnthony Ramine2018-11-161-0/+6
|
* Make TexImage2D and TexSubImage2D struct variantsAnthony Ramine2018-11-161-29/+33
|
* Prefix some pixels functions with rgba8_Anthony Ramine2018-11-161-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-3/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-19/+24
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format remaining filesPyfisch2018-11-061-485/+629
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Properly support gl_PointSize and gl_PointCoordAnthony Ramine2018-10-181-0/+8
| | | | | | | | Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
* Auto merge of #21725 - pyfisch:update-wr, r=jdmbors-servo2018-10-121-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Webrender New version is 9156a4465f6ad715a0206cdd9a7e9a6f0385fbd6 --- - [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 just updating WR <!-- 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/21725) <!-- Reviewable:end -->
| * Update WebrenderPyfisch2018-10-091-1/+2
| | | | | | | | | | New version is 9156a4465f6ad715a0206cdd9a7e9a6f0385fbd6
* | Share some code between 2D canvas and WebGLAnthony Ramine2018-10-091-17/+10
| |
* | Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-2/+2
|/