aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Auto merge of #6293 - ecoal95:webgl-objects, r=noxbors-servo2015-06-091-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements: * WebGLFramebuffer * WebGLRenderbuffer * WebGLTexture And adds the following methods to `WebGLRenderingContext`: * create{Texture,Framebuffer,Renderbuffer} * bind{Texture,Framebuffer,Renderbuffer} * destroy{Buffer,Texture,Framebuffer,Renderbuffer} Fixes: * WebGLUniform location shouldn't inherit from WebGLObject. Known Issues: * WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this Also refactors a huge part of the current implementation, to allow failing on creation of different WebGL objects. Blocked on https://github.com/servo/gleam/pull/22 A reftest for most of the added functionality is not doable right now, we need a few more functions in order to upload a texture, for example. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293) <!-- Reviewable:end -->
| * Implement new WebGL interfaces and methodsecoal952015-06-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements: * WebGLFramebuffer * WebGLRenderbuffer * WebGLTexture And adds the following methods to `WebGLRenderingContext`: * create{Texture,Framebuffer,Renderbuffer} * bind{Texture,Framebuffer,Renderbuffer} * destroy{Buffer,Texture,Framebuffer,Renderbuffer} Fixes: * WebGLUniform location shouldn't inherit from WebGLObject. Known Issues: * WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this Also refactors a huge part of the current implementation, to allow failing on creation of different WebGL objects. Blocked on https://github.com/servo/gleam/pull/22 A reftest for most of the added functionality is not doable right now, we need a few more functions in order to upload a texture, for example.
* | Use the correct log crate and setup env_logger in main.Eduard Burtescu2015-06-061-1/+0
|/
* Layerize canvasecoal952015-05-201-2/+3
| | | | | | | Note that this keeps using readback right now, `NativeSurface` painting will be implemented soon. Also see https://github.com/servo/servo/issues/6142
* Remove Glutin dependency for WebGLecoal952015-05-071-1/+0
| | | | | | | | | | Now we have mac support, and since android build is broken, we can drop glutin from WebGL code. Went back to upstream (see: https://github.com/servo/rust-offscreen-rendering-context/pull/1#issuecomment-99234534) Rebased
* Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.Simon Sapin2015-05-051-2/+2
|
* WebGL context hardware acceleration + error detectionecoal952015-04-271-1/+5
|
* Kicks off a WebGL implementationDiego Marcos2015-04-201-1/+5
|
* Implements drawImage for html image as ImageSourceDiego Marcos2015-04-071-0/+1
|