aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement checks for vertex attribs enabled as arrays without a bound bufferAnthony Ramine2018-06-201-18/+73
|
* Implement EXT_texture_filter_anisotropicAnthony Ramine2018-06-061-36/+47
|
* Auto merge of #20884 - jdm:more-limits, r=avadacatavrabors-servo2018-05-311-1/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't forward GL parameter gets for constant limits. This avoids IPC traffic for unchanging constants that are determined when the GL context is created. These changes require https://github.com/emilio/rust-offscreen-rendering-context/pull/123. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20876. - [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/20884) <!-- Reviewable:end -->
| * Don't forward GL parameter gets for constant limits.Josh Matthews2018-05-311-1/+30
| |
* | Don't panic when tearing down a WebGL context and the thead is unreachable.Josh Matthews2018-05-291-1/+1
|/ | | This avoids some cascading double-panics when there are errors in the WebGL rendering thread.
* Implement most of the unsupported parameters in gl.getParameter()Anthony Ramine2018-05-241-0/+15
| | | | | | | | | | | | Fixes #20536. Fixes #20537. Fixes #20538. Fixes #20544. Fixes #20545. Fixes #20546. Fixes #20548. Fixes #20549. Fixes #20551.
* Auto merge of #20669 - simartin:issue_20623, r=jdmbors-servo2018-05-201-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #20623: Check the input to WebGLRenderingContext's clear(). Validate the input to this function as per specifications. --- - [X] `./mach build -d` does not report any errors - [X] `./mach build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20623 - [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/20669) <!-- Reviewable:end -->
| * Issue #20623: Check the input to WebGLRenderingContext's clear().Simon Martin2018-04-211-0/+3
| |
* | webgl: Add getParameter(UNPACK_PREMULTIPLY_ALPHA_WEBGL) support.Eric Anholt2018-05-071-0/+4
| |
* | webgl: Add getParameter(UNPACK_FlIP_Y_WEBGL) support.Eric Anholt2018-05-071-0/+4
| |
* | webgl: Drop a silly check for 0 in GetTexParameter.Eric Anholt2018-05-051-7/+1
| | | | | | | | | | | | 0 is not among the valid values for a wrap mode or filter, so it won't ever be returned unless the driver is broken, and even if it was a valid value we would want to pass it through.
* | Update to gleam 0.5Anthony Ramine2018-05-051-68/+94
| |
* | Implement WebGL GetRenderbufferParameterFausto Núñez Alberro2018-04-241-0/+39
|/ | | | This needed a bump of gleam to version 0.4.33
* Implement gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)Matt McCoy2018-04-171-0/+8
|
* Check the bound buffer element array only for count > 0 in gl.drawElementsAnthony Ramine2018-04-161-11/+13
| | | | See https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.2
* Check mode first in gl.drawElementsAnthony Ramine2018-04-161-10/+10
|
* Emit InvalidEnum for invalid targets passed to gl.renderbufferStorageAnthony Ramine2018-04-061-1/+1
|
* Properly check for invalid targets in gl.BindFramebufferAnthony Ramine2018-04-061-6/+1
| | | | It should always emit InvalidEnum, not InvalidOperation.
* Remove SAMPLE_COVERAGE_INVERT from WebGLRenderingContext::validate_feature_enumAnthony Ramine2018-04-051-1/+1
| | | | This constant is not mentioned in the docs of glEnable or glIsEnabled.
* Mention #20534 near the enable/disable/isEnabled WebGL methodsAnthony Ramine2018-04-051-1/+3
|
* Properly clamp arguments to WebGLRenderingContext.depthRangeAnthony Ramine2018-04-051-7/+2
|
* Manually clamp the argument of WebGLRenderingContext.clearDepthAnthony Ramine2018-04-051-1/+1
| | | | Better be safe than to feed stuff to some GPU driver that wouldn't clamp it.
* Properly allow more than FUNC_ADD in blendEquationSeparateAnthony Ramine2018-04-041-5/+13
|
* Properly allow FUNC_SUBTRACT and FUNC_REVERSE_SUBTRACT in blendEquationAnthony Ramine2018-04-041-4/+7
|
* Cache BUFFER_USAGE value on the DOM sideAnthony Ramine2018-04-041-18/+8
|
* Fix the signature of WebGLRenderingContext::BufferSubDataAnthony Ramine2018-04-041-5/+3
|
* Move handle_potential_webgl_error to the dom macros moduleAnthony Ramine2018-04-041-15/+0
|
* Fix the emitted error for invalid targets in WebGLRenderingContext::BufferData_Anthony Ramine2018-04-041-1/+1
|
* Introduce WebGLRenderingContext::bound_bufferAnthony Ramine2018-04-041-29/+17
|
* Improve WebGLBuffer::buffer_dataAnthony Ramine2018-04-041-18/+2
| | | | It now checks the usage argument itself and use generics for the data vector.
* Properly use Float32List and Int32List for WebGL uniform methodsAnthony Ramine2018-04-031-138/+90
|
* Remove obsolete BufferDataSourceAnthony Ramine2018-04-031-4/+4
|
* Clean up signature of some fallible WebGL methodsAnthony Ramine2018-04-031-24/+34
|
* Use ByteBuf for the canvas messagesAnthony Ramine2018-03-261-13/+26
| | | | | The type Vec<u8> is super unefficient to work with in Serde if all you want to represent is a simple blob.
* Update mozjs.Emilio Cobos Álvarez2018-03-251-63/+108
|
* Implement gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)Anthony Ramine2018-03-241-0/+8
|
* Implement missing WebGLShader checksAnthony Ramine2018-03-241-1/+4
| | | | | Methods compileShader and getShaderParameter should emit an error when the shader has been deleted.
* Implement WebGLRenderingContextBase.getAttachedShadersAnthony Ramine2018-03-241-0/+8
|
* Implement missing checks in WebGLRenderingContext::GetBufferParameterAnthony Ramine2018-03-241-9/+29
|
* Auto merge of #20400 - servo:webgl, r=emiliobors-servo2018-03-241-0/+33
|\ | | | | | | | | | | | | | | Implement HTMLCanvasElement.toDataURL for WebGL canvas (fixes #19147) <!-- 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/20400) <!-- Reviewable:end -->
| * Implement HTMLCanvasElement.toDataURL for WebGL canvas (fixes #19147)Anthony Ramine2018-03-231-0/+33
| |
* | Use safe to_vec() for typed arrays in WebGL bindingsIgor Matuszewski2018-03-231-75/+21
| |
* | Fix indentationIgor Matuszewski2018-03-231-6/+6
| |
* | Fix sanity check in vertex attribIgor Matuszewski2018-03-231-16/+16
| |
* | Appease test-tidyIgor Matuszewski2018-03-231-3/+3
| |
* | Adapt uniform[fv] and similar to accept typed array argsIgor Matuszewski2018-03-231-207/+216
| |
* | Adapt function bodies for usage with typed array argsIgor Matuszewski2018-03-231-74/+54
| |
* | Change WebGL function signatures accepting typed arraysIgor Matuszewski2018-03-231-23/+16
|/
* Implement OES_element_index_uint (fixes #20384)Anthony Ramine2018-03-231-0/+1
|
* Fix some more WebGL methodsAnthony Ramine2018-03-231-17/+6
|