aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits
Commit message (Collapse)AuthorAgeFilesLines
...
* Call rgba8_byte_swap_colors_inplace on the WebGL threadAnthony Ramine2018-11-202-8/+4
|
* Move prepare_pixels to the canvas threadAnthony Ramine2018-11-202-330/+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-196-6/+6
|
* 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-163-1/+376
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-082-2/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-9/+0
|
* Reorder importsPyfisch2018-11-062-9/+9
|
* Format remaining filesPyfisch2018-11-063-84/+140
|
* 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>
* Switch most crates to the 2018 editionSimon Sapin2018-11-061-0/+1
|
* `cargo fix --edition`Simon Sapin2018-11-062-8/+8
|
* Update remaining references to cssparser 0.24.Emilio Cobos Álvarez2018-11-051-1/+1
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-293-31/+31
|
* Exit Canvas paint thread on shutdownPaul Rouget2018-10-291-0/+1
|
* 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
|
* Abstract some stuff common to ctx.getImageData and ctx.putImageDataAnthony Ramine2018-10-081-3/+3
|
* Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-061-1/+1
|
* Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-061-4/+4
|
* Introduce ImageData::get_rectAnthony Ramine2018-10-061-1/+1
| | | | | | | We use that to send only the pixels that will be actually drawn to the canvas thread in CanvasRenderingContext2d::PutImageData. We also make the canvas thread byte swap and premultiply colours in-place.
* Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-35/+0
|
* Align canvas.putImageData with specAnthony Ramine2018-10-051-1/+1
| | | | The arguments are supposed to be long values, not floats.
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-022-12/+17
| | | | The changes keep trickling down.
* webgl: Add feature to store backtraces for each WebGL API call for easier ↵Josh Matthews2018-10-012-3/+14
| | | | debugging.
* Remove Canvas2dMsg::DrawImageSelfAnthony Ramine2018-09-171-1/+0
| | | | | Now that all canvas share the same thread, it's useless to have a separate message for that.
* Don't create 2D canvas contexts arbitrarilyAnthony Ramine2018-09-161-1/+1
| | | | | Sometimes, the canvas still has no rendering context, in this case it represents a transparent black rectangle.
* Use a byte channel to retrieve pixels of 2D canvasAnthony Ramine2018-09-131-2/+2
|
* Properly support PACK_ALIGNMENT in WebGL 1Anthony Ramine2018-09-121-2/+0
|
* Auto merge of #21461 - jdm:webgltmp2, r=noxbors-servo2018-09-121-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Move framebuffer initialization logic to WebGL thread.Josh Matthews2018-09-101-0/+1
| |
* | Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+1
|/ | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* 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-073-4/+21
|
* Format components canvas and canvas_traits #21373kingdido9992018-08-303-23/+24
|
* Properly check limit in gl.activeTexture()Anthony Ramine2018-08-231-1/+1
|
* WR updatePaul Rouget2018-08-061-2/+2
|
* 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.