aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement gl.getParameter(gl.VIEWPORT)Anthony Ramine2018-03-221-1/+9
|
* Implement gl.getParameter(gl.CURRENT_PROGRAM)Anthony Ramine2018-03-221-0/+3
|
* Make some WebGL parameters non-optional (fixes #8753)Anthony Ramine2018-03-221-125/+70
| | | | | | | Those parameters aren't optional in the current spec. The test element-array-buffer-delete-recreate.html now fails because we don't actually implement gl.getParameter(gl.CURRENT_PROGRAM).
* Implement a missing INVALID_OPERATION check in DrawArraysAnthony Ramine2018-03-221-17/+21
|
* Fix an off-by-one error with limits.max_vertex_attribsAnthony Ramine2018-03-221-4/+4
|
* Implement WebGL getFramebufferAttachmentParameter APIIgor Gutorov2018-03-221-1/+93
|
* Simplify GetShaderPrecisionFormatIgor Gutorov2018-03-211-13/+20
|
* Simplify BufferParameterIgor Gutorov2018-03-201-9/+13
|
* Simplify VertexAttribOffsetIgor Gutorov2018-03-201-1/+5
|
* Simplify GetTexParameterIgor Gutorov2018-03-201-21/+29
|
* WIP: Accept typed array arguments in codegenIgor Matuszewski2018-03-141-4/+3
|
* constellation: Make setting up the WebGL state fallible.Emilio Cobos Álvarez2018-03-091-1/+5
| | | | | | | | | | This fixes a regression caused by the glutin update. We now are creating EGL contexts in Linux Wayland, instead of X context, so the GLContextFactory assumption of one GL back-end per platform is broken. This just works around it, for now, but in general I think not relying on available WebGL state is a good thing, and we do that already for WebVR anyway.
* Add WebGL function glGetTexParameterMartina Kollarova2018-03-061-0/+31
| | | | | | | Set the expected result of the test `tex-input-validation.html` to CRASH, since that is caused by unrelated problems. The test was previously not executing completely, because it stopped when it didn't find the implementation of getTexParameter.
* Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-2/+2
|
* Set the correct Angle GLSL output when using WebGL 2Imanol Fernandez2017-11-131-2/+4
|
* Auto merge of #19040 - MortimerGoro:webgl2_extensions, r=emiliobors-servo2017-10-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for filtering WebGL extensions based on WebGL version <!-- Please describe your changes on the following line: --> Add support for filtering WebGL extensions based on WebGL version --- <!-- 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/19040) <!-- Reviewable:end -->
| * Add support for filtering WebGL extensions based on WebGL versionImanol Fernandez2017-10-311-1/+1
| |
* | Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-14/+14
|/
* Kick off WebGL 2.0 implementationImanol Fernandez2017-10-271-12/+21
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-14/+14
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-14/+14
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.