aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Elide lifetimes where possible after rustup (#34824)Martin Robinson2025-01-031-1/+0
| | | | | | | | | The new version of rust allows us to elide some lifetimes and clippy is now complaining about this. This change elides them where possible and removes the clippy exceptions. Fixes #34804. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Upgrade rustc to 1.83 (#34793)Nico Burns2025-01-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upgrade rustc to 1.83 Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix crown (change copied from linked clippy function) Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix named lifetime lint Signed-off-by: Nico Burns <nico@nicoburns.com> * Bump shell.nix Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix non-local impl warnings Signed-off-by: Nico Burns <nico@nicoburns.com> * Format with 1.83 formatting changes Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix manual non-local impl Signed-off-by: Nico Burns <nico@nicoburns.com> * More fixes for crown Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix tidy Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix needless_return lints Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix doc comment lint Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix missing wait lint Signed-off-by: Nico Burns <nico@nicoburns.com> * Allow needless_lifetimes lint Signed-off-by: Nico Burns <nico@nicoburns.com> * more doc comments Signed-off-by: Nico Burns <nico@nicoburns.com> * More needless_returns Signed-off-by: Nico Burns <nico@nicoburns.com> * is_empty lint Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix needless_lifetime lints Signed-off-by: Nico Burns <nico@nicoburns.com> * fix div_ceil lint Signed-off-by: Nico Burns <nico@nicoburns.com> * Allow non-minimal bool Signed-off-by: Nico Burns <nico@nicoburns.com> * Non-local impl in constellation Signed-off-by: Nico Burns <nico@nicoburns.com> * Missing wait in constellation Signed-off-by: Nico Burns <nico@nicoburns.com> * fmt Signed-off-by: Nico Burns <nico@nicoburns.com> * remove useless lints table Signed-off-by: Nico Burns <nico@nicoburns.com> * Fixup comments Signed-off-by: Nico Burns <nico@nicoburns.com> * Allow non-local definition in sandboxing code to simplify feature flagging Signed-off-by: Nico Burns <nico@nicoburns.com> * Remove wait calls and allow zombie_processes lint Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com>
* feat: `webxr` feature flag (#34241)Ngo Iok Ui (Wu Yu Wei)2024-11-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add webxr feature flag Add webxr feature flag to embedder_traits Add webxr flag to constellation Add webxr flag to compositor Add webxr flag to canvas Turn registry into optional Add webxr flag to servo lib Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Co-authored-by: august kline <me@augustkline.com> * Cargo fmt Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Add missing license Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> * Cargo clippy Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me> Co-authored-by: august kline <me@augustkline.com>
* remove `extern crate` (#30311)Samson2023-09-081-5/+0
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Support for webxr layer managementAlan Jeffrey2020-06-281-3/+0
|
* Integrate swapchain surface provider changes into webgl and webxr ↵Josh Matthews2020-03-091-0/+3
| | | | implementations.
* Remove azure canvas backendDaniel Alley2020-02-251-4/+0
| | | | closes #25833
* Remove dependency of constellation on canvasKunal Mohan2020-02-061-14/+0
| | | | | | move `ConstellationCanvasMsg` to canvas_traits and start canvas paint thread to components/servo. This, however, does not remove dependency for conditional compilation options.
* Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-0/+14
|
* Use surfman for managing GL surfacesPatrick Walton2019-11-011-1/+5
| | | | | | Co-authored-by: Alan Jeffrey <ajeffrey@mozilla.com> Co-authored-by: Zakor Gyula <gyula.zakor@h-lab.eu> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
* Rename {azure,raqote}_backend feature flags to canvas2d-{azure,raqote}Simon Sapin2019-07-011-2/+2
|
* Add cargo feature to control canvas backend.Josh Matthews2019-06-031-0/+6
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-15/+0
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-0/+1
|
* Moved Canvas rendering to a single thread.Brody-Eastwood2018-04-231-0/+1
|
* Use ByteBuf for the canvas messagesAnthony Ramine2018-03-261-0/+1
| | | | | The type Vec<u8> is super unefficient to work with in Serde if all you want to represent is a simple blob.
* Implement DOM to textureImanol Fernandez2017-10-161-0/+1
|
* Use FnvHashMap in WebGL implementation.Imanol Fernandez2017-08-241-0/+1
|
* Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"Anthony Ramine2017-08-161-4/+6
| | | | | 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-6/+4
| | | | | This reverts commit 90f55ea4580e2a15f7d70d0491444f18b972d450, reversing changes made to 2e60b27a2186a8cba4b952960155dfcf3f47d7db.
* Improve WebGL architecture.Imanol Fernandez2017-08-151-4/+6
|
* Upgrade to the latest version of WebRenderMartin Robinson2017-07-131-1/+1
|
* Kill the plugins crate and its clippy supportAnthony Ramine2017-02-211-3/+0
| | | | | | Sometimes clippy gets outdated by months, and its current support setup means that each Servo component need to opt into it by depending on the plugins crate manually, and not all components do that.
* Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).Ms2ger2017-01-241-1/+0
|
* Remove azure(canvas) dependency from canvas_traitsRoman Zaynetdinov2016-12-251-0/+1
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Remove gfx_traits::color.Ms2ger2016-10-311-1/+0
|
* Auto merge of #10706 - zwn:unused-extern-crates, r=noxbors-servo2016-04-221-1/+0
|\ | | | | | | | | | | | | | | | | | | | | Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
| * Remove references to unused crates.Zbynek Winkler2016-04-221-1/+0
| | | | | | | | The cleanup is based on info from using "-W unused-extern-crates".
* | Use num-traits in canvas.Ms2ger2016-04-201-1/+1
|/
* Don't use premultiply table for put_image_dataPaul Padier2016-03-311-1/+0
|
* Deny unsafe code in more crates.Ms2ger2016-03-181-0/+2
|
* Add WebRender integration to Servo.Glenn Watson2016-02-181-1/+1
| | | | | | | | WebRender is an experimental GPU accelerated rendering backend for Servo. The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used). WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
* Remove old features 'clone_from_slice' and 'convert'Tim van der Meij2016-02-031-1/+0
|
* Remove some unused extern crates.Ms2ger2016-01-131-1/+0
|
* task -> threadrohan.prinja2016-01-101-2/+2
|
* Fix warnings: Remove unused 'slice_bytes' flagTetsuharu OHZEKI2015-12-111-1/+0
|
* Fix warnings: use clone_from_slice instead of copy_memoryTetsuharu OHZEKI2015-12-111-0/+1
|
* Auto merge of #8922 - saneyuki:warning, r=mbrubeckbors-servo2015-12-111-1/+0
|\ | | | | | | | | | | | | | | Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8922) <!-- Reviewable:end -->
| * Fix warnings: Use Vec.extend_from_slice instead of Vec.push_allTetsuharu OHZEKI2015-12-101-1/+0
| |
* | remove the "core" feature from canvasRoman Klauke2015-12-101-1/+0
|/ | | | | The core feature is marked as stable. This commit removes the usage of this feature.
* Add check up on extern crate order and sort extern crates alphabeticallyGuillaume Gomez2015-11-281-2/+2
|
* add premultiply table for PutImageDataNathan Froyd2015-10-211-0/+1
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-8/+9
|
* script: Make most of 2D canvas and WebGL run over IPC.Patrick Walton2015-07-251-1/+1
| | | | | | To actually make the multiprocess communication work, we'll need to reroute the task creation to the pipeline or the compositor. But this works as a first step.
* canvas: Move to shared memory for images and canvas backing stores.Patrick Walton2015-07-241-0/+1
| | | | | | | | | | | | | The idea here is to land this before making images and canvas IPC-safe, because this will shake out bugs relating to the shared memory. There are currently test timeouts that are preventing multiprocess images and canvas from landing, and I believe those are due to the inefficiency of sending large amounts of data in the unoptimized builds we test with. By moving to shared memory, this should drastically reduce the number of copies and `serde` serialization. Under the hood, this uses Mach OOL messages on Mac and temporary memory-mapped files on Linux.
* Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.Ms2ger2015-06-251-1/+3
|
* Use euclid from crates.ioecoal952015-06-191-1/+1
|