aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-2/+2
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-101-1/+16
| | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* Add Support for WebGL TransormfeedbackIstvan Miklos2019-11-081-0/+4
| | | | 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-43/+74
| | | | | | | Adds support for `bufferData`, `bufferSubData`, `copyBufferSubData` and `getBufferSubData`. Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.3
* Auto merge of #24616 - teapotd:imageinfo-option-refactoring, r=jdmbors-servo2019-11-011-11/+14
|\ | | | | | | | | | | | | | | | | | | | | | | Store Option<ImageInfo> instead of making fields of ImageInfo optional Fixes #24582 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #24582 - [X] These changes do not require tests
| * Store Option<ImageInfo> instead of making fields optionalteapotd2019-11-011-11/+14
| |
* | Use surfman for managing GL surfacesPatrick Walton2019-11-011-26/+47
|/ | | | | | 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-33/+13
| | | | next frame.
* Auto merge of #24333 - mmatyas:webgl_fns_samplers, r=jdmbors-servo2019-10-081-11/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WebGLSampler support Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13 <!-- Please describe your changes on the following line: --> cc @jdm @zakorgy --- <!-- 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: --> - [x] 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/24333) <!-- Reviewable:end -->
| * Add WebGLSampler supportMátyás Mustoha2019-10-081-11/+1
| | | | | | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
* | Auto merge of #24340 - jdm:image-cache-cors, r=Manishearthbors-servo2019-10-071-7/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow using CORS filtered image responses as WebGL textures More specifically, this makes the "is this image same origin?" check consider the CORS status of the original response, rather than relying on an overly-strict "is this image's response's URL same-origin with a particular global?" check. To do this, we make the image cache double keyed based on the requested URL as well as the requesting origin, and store the CORS status of the eventual response with the final image that eventually gets sent to the HTMLImageElement consumer. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24330 and fix #24368 - [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/24340) <!-- Reviewable:end -->
| * | Support CORS attributes for image elements.Josh Matthews2019-10-041-7/+10
| |/
* / implement get_image_pixels() for video elementVíctor Manuel Jáquez Leal2019-10-041-3/+8
|/
* Initial implementation of WebGLQueriesMátyás Mustoha2019-10-011-1/+1
| | | | | | | | 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-2/+8
| | | | when creating an XR GL layer.
* webgl: Implement component narrowing checks for CopyTexImage2D.Josh Matthews2019-09-201-0/+41
|
* webgl: Report invalid operations for more APIs that can't use an incomplete ↵Josh Matthews2019-09-201-1/+10
| | | | framebuffer.
* Create depth and stencil attachments for XRWebGLLayerAlan Jeffrey2019-08-281-0/+4
|
* Fix build error when using the 'webgl_backtrace' featureMátyás Mustoha2019-08-141-2/+2
|
* Don't panic if WebGL thread can't be reached during finalization.Josh Matthews2019-07-291-7/+13
|
* Replace use of callbacks in webxr by channelsAlan Jeffrey2019-07-261-4/+4
|
* Remove extra webgl message pumping thread.Josh Matthews2019-07-251-7/+101
|
* Convert CGTraitInterface to use safe JSContext instead of raw JSContextmarmeladema2019-07-241-115/+99
|
* 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.
* Dead code eliminationAlan Jeffrey2019-07-181-4/+0
|
* Make GL/GLES decisions based on the API in use.Josh Matthews2019-07-121-4/+10
|
* Add stub makeXRCompatible()Manish Goregaokar2019-06-111-0/+10
|
* Add initial support for WebGL compressed texturesMátyás Mustoha2019-05-211-25/+108
|
* Upgrade to rustc 1.35.0-nightly (4c27fb19b 2019-03-25)Simon Sapin2019-03-261-1/+1
|
* #8539 Config preferences backend restructurePeter Hall2019-03-201-5/+2
|
* Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-5/+5
|
* Report all messages processed by the webgl thread.Josh Matthews2019-01-311-2/+2
|
* Auto merge of #22528 - Manishearth:webxr, r=jdm,MortimerGorobors-servo2019-01-041-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preliminary WebXR support This implements just enough WebXR to display to 3DOF devices in immersive mode only. Couple missing things: - [ ] Handling reference spaces (even if just supporting eye-level spaces) - [x] Spec links - [ ] We enter immersive mode when baseLayer is set, but it seems like we're supposed to do this when requestSession is called (https://github.com/immersive-web/webxr/issues/453) - [ ] VR/XR should block less (https://github.com/servo/servo/issues/22505) - [x] More pref-gating - [x] `views` is a method instead of an attribute because we don't support FrozenArray <s>Once I add spec links and pref gating</s> this can be landed as-is for further experimentation. r? @jdm @MortimerGoro <!-- 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/22528) <!-- Reviewable:end -->
| * Link to relevant issuesManish Goregaokar2019-01-031-0/+4
| |
| * Support fetching viewport infoManish Goregaokar2018-12-211-0/+7
| |
* | Rustfmt has changed its default style :/Simon Sapin2018-12-281-12/+13
|/
* Make HTMLCanvasElement::fetch_all_data return a shared memory blobAnthony Ramine2018-11-211-6/+4
|
* Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-201-21/+30
| | | | 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-47/+26
|
* Move PixelFormat to the pixels crateAnthony Ramine2018-11-201-2/+1
|
* Call prepare_pixels on the WebGL threadAnthony Ramine2018-11-201-36/+25
|
* Move prepare_pixels to canvas_traits::webglAnthony Ramine2018-11-201-91/+40
|
* Use Size2D in TexImage2D and TexSubImage2D messagesAnthony Ramine2018-11-201-4/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Auto merge of #22214 - jabedude:validate-argument, r=jdmbors-servo2018-11-171-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add GetShaderPrecisionFormat argument validation This patch adds a check on the shader_type argument. If it is not one either FRAGMENT_SHADER or VERTEX_SHADER, we return INVALID_ENUM. <!-- 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 - [X] These changes fix #22080 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because @jdm wants to wait until the PR is open to test. <!-- 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/22214) <!-- Reviewable:end -->
| * Add GetShaderPrecisionFormat argument validationJosh Abraham2018-11-171-0/+8
| | | | | | | | | | This patch adds a check on the shader_type argument. If it is not one either FRAGMENT_SHADER or VERTEX_SHADER, we return INVALID_ENUM.
* | Pass a TexPixels value to tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-161-52/+39
| |
* | Remove some boolean flags in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-161-30/+71
| |
* | Send alignment info directly in TexImage2D and TexSubImage2d messagesAnthony Ramine2018-11-161-20/+2
| |
* | Fix the data type sent in tex_sub_image_2dAnthony Ramine2018-11-161-1/+3
| |