aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/canvas_paint_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update webrender and serde_bytesAnthony Ramine2019-11-131-1/+1
|
* Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-101-1/+1
| | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* Update euclid.Emilio Cobos Álvarez2019-07-231-1/+1
| | | | | | | | There are a few canvas2d-related dependencies that haven't updated, but they only use euclid internally so that's not blocking landing the rest of the changes. Given the size of this patch, I think it's useful to get this landed as-is.
* Fix formatting.Josh Matthews2019-06-031-3/+1
|
* Add cargo feature to control canvas backend.Josh Matthews2019-06-031-3/+7
|
* Make CanvasData use GenericDrawTargetpylbrecht2019-05-311-1/+1
|
* Changes for sender recieverMaharsh2019-05-091-1/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* Format remaining filesPyfisch2018-11-061-126/+71
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Exit Canvas paint thread on shutdownPaul Rouget2018-10-291-0/+1
|
* Simplify ctx.drawImage a bitAnthony Ramine2018-10-111-8/+4
| | | | There is no need to swap between RGBA and BGRA twice.
* Abstract some stuff common to ctx.getImageData and ctx.putImageDataAnthony Ramine2018-10-081-8/+4
|
* Align ctx.createImageData and ctx.getImageData with the specAnthony Ramine2018-10-061-3/+4
|
* Avoid copying pixels in ctx.putImageData sometimesAnthony Ramine2018-10-061-2/+6
|
* Introduce ImageData::get_rectAnthony Ramine2018-10-061-12/+2
| | | | | | | 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-1/+2
|
* Make HTMLCanvasElement::get_size return a Size2D<u32>Anthony Ramine2018-10-021-1/+1
| | | | The changes keep trickling down.
* Remove Canvas2dMsg::DrawImageSelfAnthony Ramine2018-09-171-16/+4
| | | | | 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-3/+9
| | | | | Sometimes, the canvas still has no rendering context, in this case it represents a transparent black rectangle.
* Avoid a byte swap roundtripAnthony Ramine2018-09-141-3/+2
|
* Moved Canvas rendering to a single thread.Brody-Eastwood2018-04-231-1090/+233
|
* Add unique canvas IDs to all canvas operations.Brody Eastwood2018-04-021-13/+29
|
* Use ByteBuf for the canvas messagesAnthony Ramine2018-03-261-10/+43
| | | | | The type Vec<u8> is super unefficient to work with in Serde if all you want to represent is a simple blob.
* Update WR (accelerated webgl fix on mac, line decoration optimizations).Glenn Watson2018-03-231-0/+1
|
* Use specific assertion for canvasCYBAI2018-01-251-1/+1
|
* remove unsued IpcReceivertigercosmos2017-12-201-1/+1
|
* Revert "Send IPC receiver for canvas as part of CreateCanvasPaintThread message"Josh Matthews2017-12-181-3/+6
| | | | This reverts commit a504c9358b70fcf02bd8f2067fcbd17d16c89439.
* remove unused `self` in canvas_paint_threadtigercosmos2017-12-171-1/+1
|
* Send IPC receiver for canvas as part of CreateCanvasPaintThread messagetigercosmos2017-12-161-6/+3
|
* Implement Ellipse Canvas 2D APIJoone Hur2017-09-011-0/+14
| | | | | | | | | * Update rust-azure to 0.21.0 * Mark the following test case as fail: tests/wpt/mozilla/tests/mozilla/css-paint-api/background-image-tiled.html * Make the ellipse test case pass. BUG: https://github.com/servo/servo/issues/17598
* Implement CanvasRenderingContext2d.fillText's "unimplemented" messageBruno Bernardino2017-08-231-0/+5
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-11/+5
| | | | | 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-5/+11
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-11/+5
|
* Update WR.Glenn Watson2017-08-091-11/+19
| | | | | | | * CPU text run optimizations. * Linux subpixel positioning / rasterization. * Update debug flags API. * Update to resource transactions API.
* Implemented paint worklet arguments.Alan Jeffrey2017-07-291-0/+7
|
* Use AntialiasMode in CanvasPaintThread::newDarkDrek2017-07-291-9/+8
| | | | Change suggested in #17661
* Don't delete webrender image keys immediately.Alan Jeffrey2017-07-171-2/+18
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-8/+8
|
* Clear canvas thread state on recreation.Alan Jeffrey2017-07-051-0/+2
|
* Update WR (CPU text optimizations, image format renames).Glenn Watson2017-06-161-1/+1
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-16/+12
|
* Clear webrender image id when resizing a canvas.Alan Jeffrey2017-06-131-0/+4
|
* Update WR (various optimizations, gradient improvements).Glenn Watson2017-04-031-16/+33
|
* Update WR (opaque rect optimization, stacking context culling).Glenn Watson2017-03-271-1/+2
| | | | | | | | | Correct viewport test references These references were using an incorrect value for the expected container width. Now that WebRender is no longer clipping to stacking context boundaries the rendered width is correct (100% of viewport width = 240px).
* Fix crop_area_byte_length calculation in crop_image and add testsn0max2017-03-161-1/+1
|