aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/webgl.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove components/nonzero, use std::num::NonZero insteadSimon Sapin2018-06-161-1/+1
|
* Implement EXT_texture_filter_anisotropicAnthony Ramine2018-06-061-3/+19
|
* Auto merge of #20884 - jdm:more-limits, r=avadacatavrabors-servo2018-05-311-10/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-10/+0
| |
* | Improve debugging output for WebGL errors.Josh Matthews2018-05-291-143/+4
|/
* Implement most of the unsupported parameters in gl.getParameter()Anthony Ramine2018-05-241-1/+19
| | | | | | | | | | | | Fixes #20536. Fixes #20537. Fixes #20538. Fixes #20544. Fixes #20545. Fixes #20546. Fixes #20548. Fixes #20549. Fixes #20551.
* Update to gleam 0.5Anthony Ramine2018-05-051-31/+174
|
* Implement WebGL GetRenderbufferParameterFausto Núñez Alberro2018-04-241-0/+2
| | | | This needed a bump of gleam to version 0.4.33
* Implement gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)Matt McCoy2018-04-171-0/+2
|
* Use new std::num::NonZero* types instead of deprecated core::nonzero::NonZeroSimon Sapin2018-04-091-3/+3
|
* Properly clamp arguments to WebGLRenderingContext.depthRangeAnthony Ramine2018-04-051-1/+1
|
* 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.
* Cache BUFFER_USAGE value on the DOM sideAnthony Ramine2018-04-041-2/+0
|
* Use ByteBuf for the canvas messagesAnthony Ramine2018-03-261-6/+7
| | | | | The type Vec<u8> is super unefficient to work with in Serde if all you want to represent is a simple blob.
* Implement gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)Anthony Ramine2018-03-241-1/+3
|
* Implement gl.getParameter(gl.VIEWPORT)Anthony Ramine2018-03-221-2/+4
|
* Implement WebGL getFramebufferAttachmentParameter APIIgor Gutorov2018-03-221-0/+2
|
* Simplify GetShaderPrecisionFormatIgor Gutorov2018-03-211-1/+1
|
* Simplify BufferParameterIgor Gutorov2018-03-201-1/+1
|
* Simplify VertexAttribOffsetIgor Gutorov2018-03-201-1/+1
|
* Simplify GetTexParameterIgor Gutorov2018-03-201-1/+1
|
* Add WebGL function glGetTexParameterMartina Kollarova2018-03-061-0/+2
| | | | | | | 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.
* Set the correct Angle GLSL output when using WebGL 2Imanol Fernandez2017-11-131-0/+11
|
* Add support for filtering WebGL extensions based on WebGL versionImanol Fernandez2017-10-311-1/+1
|
* Kick off WebGL 2.0 implementationImanol Fernandez2017-10-271-1/+13
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Auto merge of #18875 - servo:stable-js, r=nox,jdmbors-servo2017-10-161-3/+3
|\ | | | | | | | | | | | | | | Remove the need for rust-mozjs to use unstable Rust features <!-- 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/18875) <!-- Reviewable:end -->
| * Replace NonZeroU32 and NonZeroUsize with a generic NonZeroSimon Sapin2017-10-161-3/+3
| | | | | | | | The API is identical to core::nonzero::NonZero
* | Implement DOM to textureImanol Fernandez2017-10-161-3/+25
|/
* Use NonZeroU32 in canvas_traitsSimon Sapin2017-10-131-3/+3
|
* Improve Webrender<->WebGL synchronizationImanol Fernandez2017-09-201-1/+1
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-0/+506
| | | | | This reverts commit 4d10d39e8fe841c5fe2ac58da2daaa13c10c140e, reversing changes made to ee94e2b7c0bd327abe8f9545b2a1f792f67a2bdd.
* Revert "Auto merge of #17891 - MortimerGoro:webgl_move, r=glennw,emilio"Emilio Cobos Álvarez2017-08-161-506/+0
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-0/+506