aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
...
| * Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-091-54/+53
| | | | | | | | implementations.
* | Add support for WebGL2 GetFragDataLocationMátyás Mustoha2020-03-091-0/+6
|/ | | | | | Adds support for the `GetFragDataLocation` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.7
* Auto merge of #25863 - servo:synup, r=jdmbors-servo2020-03-051-2/+3
|\ | | | | | | Remove syn 0.15 from our crate graph
| * Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-051-2/+3
| | | | | | | | | | | | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* | Add support for WebGL2 FramebufferTextureLayerMátyás Mustoha2020-03-041-0/+13
| | | | | | | | | | | | Adds support for `FramebufferTextureLayer` WebGL2 call. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* | Add support for WebGL2 framebuffer invalidationMátyás Mustoha2020-03-031-0/+6
|/ | | | | | | Adds support for the `invalidateFramebuffer` and `invalideSubFramebuffer` WebGL2 calls. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
* Add support for WebGL2 clear buffer operationsMátyás Mustoha2020-02-241-0/+12
| | | | | | | | | | | Adds support for the following WebGL2 methods: - `clearBufferfv` - `clearBufferiv` - `clearBufferuiv` - `clearBufferfi` See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.11
* Add profiling for WebXRManish Goregaokar2020-02-221-4/+27
|
* Add support for WebGL2 uniform matrix operationsMátyás Mustoha2020-01-171-0/+60
| | | | | | Adds support for the `uniformMatrix[234]x[234]fv` WebGL2 functions. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8
* Add support for WebGL2 unsigned uniform operationsMátyás Mustoha2020-01-151-0/+38
| | | | | | | This adds support for the WebGL2 `uniform[1234]ui` and `uniform[1234]uiv` operations. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8
* Add initial support for WebGL2 uniform buffer functionsMátyás Mustoha2020-01-091-0/+67
| | | | | | | | | | | | | | | Adds initial support for the following WebGL2 calls: - bindBufferBase - bindBufferRange - getUniformIndices - getUniformBlockIndex - getActiveUniforms - getActiveUniformBlockParameter - getActiveUniformBlockName - uniformBlockBinding See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.16
* webgl: Set more ANGLE shader translation properties for WebGL 2.Josh Matthews2020-01-071-6/+13
|
* Add extra debug assertions for WebGL errorsAlan Jeffrey2019-12-061-0/+7
|
* Add support for WebGL2 ReadPixels functionsMátyás Mustoha2019-11-261-0/+11
| | | | | | | Adds support for the new ReadPixels functions introduced with WebGL2 and the relevant PixelStorei parameters. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.10
* Avoid recompiling script every time surfman changesAlan Jeffrey2019-11-181-0/+1
|
* Auto merge of #24676 - Manishearth:unpatch, r=jdmbors-servo2019-11-111-18/+50
|\ | | | | | | | | | | | | | | Remove patched webxr Unsure if this compiles yet, testing locally. r? @jdm
| * Update surfman to use Git versionManish Goregaokar2019-11-111-0/+4
| |
| * Remove patched webxrManish Goregaokar2019-11-081-18/+46
| |
* | Add Support for WebGL TransormfeedbackIstvan Miklos2019-11-081-2/+55
|/ | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.15
* Implement the basic WebGL2 buffer data operationsMátyás Mustoha2019-11-051-0/+21
| | | | | | | Adds support for `bufferData`, `bufferSubData`, `copyBufferSubData` and `getBufferSubData`. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.3
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-727/+926
| | | | | | 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>
* webgl: Lazily clear the canvas right before the first webgl command of the ↵Josh Matthews2019-10-101-80/+77
| | | | next frame.
* webgl: Clear the drawing buffer when preserveDrawingBuffer is false.Josh Matthews2019-10-091-0/+38
|
* 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.