aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Make TexImage2D and TexSubImage2D struct variantsAnthony Ramine2018-11-161-16/+16
| |
* | Prefix some pixels functions with rgba8_Anthony Ramine2018-11-161-2/+2
| |
* | Move prepare_pixels helper functions to canvas_traitsAnthony Ramine2018-11-161-339/+27
| |
* | Introduce TexPixelsAnthony Ramine2018-11-161-41/+69
| |
* | Call prepare_pixels in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-161-45/+48
|/
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-2/+0
| | | | A `crate_name::foo` path always works in 2018
* Reorder importsPyfisch2018-11-061-11/+17
|
* Format remaining filesPyfisch2018-11-061-10/+23
|
* `cargo fix --edition`Simon Sapin2018-11-061-40/+40
|
* Implement WEBGL_color_buffer_float and EXT_color_buffer_half_float (fixes ↵Josh Matthews2018-11-051-12/+11
| | | | #22113)
* Properly support gl_PointSize and gl_PointCoordAnthony Ramine2018-10-181-6/+0
| | | | | | | | Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
* Auto merge of #21877 - servo:webgl, r=jdmbors-servo2018-10-091-54/+31
|\ | | | | | | | | | | | | | | Improve some byte-swap and premultiply operations <!-- 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/21877) <!-- Reviewable:end -->
| * Share some code between 2D canvas and WebGLAnthony Ramine2018-10-091-41/+22
| |
| * Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-061-1/+1
| |
| * Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-12/+8
| |
* | Auto merge of #21785 - sumit0190:new_markasdirty, r=jdmbors-servo2018-10-081-3/+7
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add framebuffer check for mark_as_dirty, #21691 <!-- Please describe your changes on the following line: --> Check `bound_framebuffer` in each `mark_as_dirty` call, so that we don't dirty the canvas if we don't have a bound framebuffer. --- <!-- 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 #21691 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because there isn't a direct way to test it (yet). <!-- 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/21785) <!-- Reviewable:end -->
| * Add framebuffer check for mark_as_dirty, #21691sumit01902018-09-241-3/+7
| |
* | Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-10/+13
| | | | | | | | The changes keep trickling down.
* | webgl: Add feature to store backtraces for each WebGL API call for easier ↵Josh Matthews2018-10-011-3/+25
| | | | | | | | debugging.
* | webgl: Restore active texture if it's changed while deleting a texture.Josh Matthews2018-09-211-1/+1
|/
* Validate GLSL names (fixes #21287)Anthony Ramine2018-09-201-2/+0
|
* Remove some misplaced framebuffer validationsAnthony Ramine2018-09-201-10/+0
|
* Format script componentchansuke2018-09-191-640/+977
|
* Auto merge of #21353 - DanxiongLei:damonlei_fix, r=jdmbors-servo2018-09-191-4/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix(webgl): fix issue https://github.com/servo/servo/issues/21352 If we have a bounded framebuffer previously, which is not the one to delete. we would not change the !binding, but we would change the GLSide with Command::BindFramebuffer(Default). change it to: check the id before sending the Command --- - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [x] These changes fix #21352 - [ ] There are tests for these changes OR - [x] These changes do not require tests because `it's obviously simple.` <!-- 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/21353) <!-- Reviewable:end -->
| * fix(webgl): fix issue https://github.com/servo/servo/issues/21352danxionglei2018-08-071-4/+3
| | | | | | | | | | If we have a bounded framebuffer previously, which is not the one to delete. we would not change the !binding, but we would change the GLSide with Command::BindFramebuffer(Default).
* | Implement gl.getParameter(gl.UNPACK_COLORSPACE_CONVERSION_WEBGL)Anthony Ramine2018-09-181-1/+9
| |
* | Fix a small texSubImage2D bugAnthony Ramine2018-09-181-5/+6
| |
* | Implement proper origin checks for WebGL textures (fixes #21522)Anthony Ramine2018-09-181-33/+33
| |