aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | Remove a panic due to missing video supportAnthony Ramine2018-09-141-2/+4
| |
* | Remove erroneous check from CopyTexImage2DAnthony Ramine2018-09-131-16/+0
| | | | | | | | | | The internal format of the bound texture doesn't matter, what matters is which components can be found in the framebuffer.
* | Properly support PACK_ALIGNMENT in WebGL 1Anthony Ramine2018-09-121-83/+112
| |
* | Simplify WebGLRenderingContext::PixelStoreiAnthony Ramine2018-09-121-25/+8
| |
* | Auto merge of #21461 - jdm:webgltmp2, r=noxbors-servo2018-09-121-32/+31
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various webgl fixes for framebuffer attachment test These changes resolve all panics on macOS when running framebuffer-object-attachment.html in headless and headful testing. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes OR - [x] Fixes #13710. Fixes #20570. <!-- 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/21461) <!-- Reviewable:end -->
| * | webgl: Ensure that depth and stencil attachments are rebound after messing ↵Josh Matthews2018-09-101-26/+8
| | | | | | | | | | | | with DEPTH_STENCIL attachments.
| * | webgl: Move framebuffer initialization logic to WebGL thread.Josh Matthews2018-09-101-2/+15
| | |
| * | webgl: Differentiate between missing colour attachments and incomplete ↵Josh Matthews2018-09-101-4/+8
| | | | | | | | | | | | attachments.
| * | webgl: Ensure that framebuffers have a color attachment before reading or ↵Josh Matthews2018-09-101-1/+1
| | | | | | | | | | | | writing.
* | | Reuse input buffer for RGB/UNSIGNED_BYTE in rgba8_image_to_tex_image_dataAnthony Ramine2018-09-101-7/+8
| | |
* | | Reuse input vector for LUMINANCE_ALPHA/HALF_FLOATAnthony Ramine2018-09-101-5/+6
| | |
* | | Fix the remaining LUMINANCE* cases in rgba8_image_to_tex_image_dataAnthony Ramine2018-09-101-18/+5
|/ /
* | Fix the UNSIGNED_SHORT_4_4_4_4 case of premultiply_pixelsAnthony Ramine2018-09-091-9/+9
| |
* | Fix the UNSIGNED_SHORT_5_5_5_1 case of premultiply_pixelsAnthony Ramine2018-09-091-2/+3
| |
* | Remove some useless argument mutabilityAnthony Ramine2018-09-091-2/+2
| | | | | | | | I wonder why this doesn't trigger a warning.
* | Fix the LUMINANCE of rgba8_image_to_tex_image_dataAnthony Ramine2018-09-091-4/+1
| | | | | | | | | | The internal format and format values match, thus the canvas or image input must be interpreted as already in LUMINANCE format.
* | Fix the LUMINANCE_ALPHA case of rgba8_image_to_tex_image_dataAnthony Ramine2018-09-091-1/+1
| | | | | | | | | | The internal format and format values match, thus the canvas or image input must be interpreted as already in LUMINANCE_ALPHA format.
* | Reuse the input vector in more cases of rgba8_image_to_tex_image_dataAnthony Ramine2018-09-081-56/+70
| |
* | Fix the ALPHA/FLOAT case of rgba8_image_to_tex_image_dataAnthony Ramine2018-09-081-1/+1
| | | | | | | | I'm pretty sure this is supposed to write the ALPHA component.
* | Reuse input of rgba8_image_to_tex_image_data in some casesAnthony Ramine2018-09-081-9/+8
| |
* | Make rgba8_image_to_tex_image_data not overallocate in some caseAnthony Ramine2018-09-081-1/+1
| |
* | Make rgba8_image_to_tex_image_data a free-standing functionAnthony Ramine2018-09-081-201/+202
| |