aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/webgl.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Auto merge of #23226 - mmatyas:webgl_compressed_textures, r=jdmbors-servo2019-05-211-0/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add initial support for WebGL compressed textures This patch is an initial implementation of WebGL compressed texture support, it contains - functions for registering and querying compressed texture extensions - initial implementation of `CompressedTexImage2D` and `CompressedTexSubImage2D` and their parameter validation - implementation of S3TC (DXT1, DXT3, DXT5) and ETC1 extensions as examples What's still missing: - some of the parameter validation steps are missing - the pixel comparison tests fail for more complex cases (I'm probably missing something trivial at the GL calls) Related: #10209 and #20594 cc @jdm @zakorgy --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] Related issues: #10209, #20594 - [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/23226) <!-- Reviewable:end -->
| * Add initial support for WebGL compressed texturesMátyás Mustoha2019-05-211-0/+46
| |
* | Allow webvr thread consumers to request input dataManish Goregaokar2019-05-031-2/+6
|/
* Remove offscreen_gl_context dependency from canvas_traits and script.Josh Matthews2019-03-071-1/+24
|
* Pass the GL context to the VRDisplay when renderingAlan Jeffrey2019-02-271-1/+2
|
* Use webvr future_frame_data to avoid blocking the WebGL threadAlan Jeffrey2019-02-261-2/+7
|
* Report all messages processed by the webgl thread.Josh Matthews2019-01-311-2/+31
|
* Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-201-3/+3
| | | | 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-8/+3
|
* Move prepare_pixels to the canvas threadAnthony Ramine2018-11-201-327/+0
| | | | Nothing else uses it in the whole crate graph.
* Call prepare_pixels on the WebGL threadAnthony Ramine2018-11-201-9/+21
|
* Move prepare_pixels to canvas_traits::webglAnthony Ramine2018-11-201-4/+48
|
* Use Size2D in TexImage2D and TexSubImage2D messagesAnthony Ramine2018-11-201-4/+2
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove some boolean flags in tex_image_2d and tex_sub_image_2dAnthony Ramine2018-11-161-0/+18
|
* Simplify define_resource_idAnthony Ramine2018-11-161-7/+1
|
* Send alignment info directly in TexImage2D and TexSubImage2d messagesAnthony Ramine2018-11-161-0/+2
|
* Make TexImage2D and TexSubImage2D struct variantsAnthony Ramine2018-11-161-2/+21
|
* Prefix some pixels functions with rgba8_Anthony Ramine2018-11-161-1/+1
|
* Move prepare_pixels helper functions to canvas_traitsAnthony Ramine2018-11-161-0/+371
|
* Reorder importsPyfisch2018-11-061-8/+8
|
* Format remaining filesPyfisch2018-11-061-25/+64
|
* Use question mark operator instead of `try` macro with a raw identifierKeith Yeung2018-11-061-1/+1
| | | Co-Authored-By: SimonSapin <simon.sapin@exyr.org>
* `cargo fix --edition`Simon Sapin2018-11-061-7/+7
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-12/+12
|
* Properly support gl_PointSize and gl_PointCoordAnthony Ramine2018-10-181-0/+6
| | | | | | | | Fixes #21719. Fixes #20993. Fixes #20992. Fixes #21007. Fixes #20979.
* Share some code between 2D canvas and WebGLAnthony Ramine2018-10-091-2/+2
|
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-8/+13
| | | | The changes keep trickling down.
* webgl: Add feature to store backtraces for each WebGL API call for easier ↵Josh Matthews2018-10-011-3/+11
| | | | debugging.
* Properly support PACK_ALIGNMENT in WebGL 1Anthony Ramine2018-09-121-2/+0
|
* webgl: Move framebuffer initialization logic to WebGL thread.Josh Matthews2018-09-101-0/+1
|
* Use byte channels to send textures to the WebGL threadAnthony Ramine2018-09-081-2/+2
|
* Use ipc::bytes_channel in ReadPixelsAnthony Ramine2018-09-081-2/+2
|
* Use a bytes channel in BufferDataAnthony Ramine2018-09-071-2/+3
| | | | This means we don't need to copy the input ArrayBuffer at all on the DOM side.
* Remove Clone impl for WebGLMsgAnthony Ramine2018-09-071-2/+2
|
* Properly check limit in gl.activeTexture()Anthony Ramine2018-08-231-1/+1
|
* Merge code from Draw* and Draw*Instanced methodsAnthony Ramine2018-08-021-2/+2
| | | | | This made me realise we weren't supporting OES_element_index_uint in the ANGLE_instanced_arrays extension.
* Use the DOM cache for gl.getTexParameter(gl.TEXTURE_*_FILTER)Anthony Ramine2018-08-021-4/+2
| | | | Part of #20596.
* Simplify gl.getShaderParameter() (fixes #20562)Anthony Ramine2018-07-311-14/+0
| | | | | | The expectation change is due to the shader now using its DOM-side compile status. It is actually a bug for the shader to think it actually compiled successfully, but at least it does so consistently now.
* Cache which capabilities are enabled in the context (fixes #20534)Anthony Ramine2018-07-251-8/+0
| | | | This is needed for #20555.
* Implement gl.getUniform()Anthony Ramine2018-07-181-0/+14
|
* Use active uniforms data to implement gl.uniform* checksAnthony Ramine2018-07-171-8/+21
|
* Move ANGLE name shenanigans to WebGL threadAnthony Ramine2018-07-161-36/+0
|
* Store active uniforms on the DOM sideAnthony Ramine2018-07-161-1/+13
|
* Remove WebGLCommand::GetActiveAttribAnthony Ramine2018-07-111-1/+0
|
* Implement instanced WebGL drawing calls (part of #20791)Anthony Ramine2018-07-081-0/+3
|
* Implement gl.getParameter(gl.MAX_VIEWPORT_DIMS)Anthony Ramine2018-07-081-0/+4
|
* Make gl.useProgram(null) do the right thingAnthony Ramine2018-07-051-1/+1
|
* Store active attribs in DOM and optimise active attributes APIsAnthony Ramine2018-07-051-19/+61
|
* Store vertex attribs data in DOM and optimise GetVertexAttribAnthony Ramine2018-07-051-21/+1
|