aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove explicit dependencies on serde_deriveSimon Sapin2017-06-161-1/+1
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-6/+3
|
* Kill the plugins crate and its clippy supportAnthony Ramine2017-02-211-2/+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.
* webgl: Add support for premultiplying alpha.Eric Anholt2017-01-281-3/+7
| | | | Now the affected testcase only fails due to unpack alignment.
* Update rustc to 1.16.0-nightly (7821a9b99 2017-01-23).Ms2ger2017-01-241-2/+0
|
* WebVR API Implementation, r=larsbergstromImanol Fernandez2017-01-091-1/+2
|
* Upgrade to rustc 1.16.0-nightly (6f1ae663e 2017-01-06)Simon Sapin2017-01-061-1/+0
|
* Remove azure(canvas) dependency from canvas_traitsRoman Zaynetdinov2016-12-251-136/+0
|
* canvas: Cleanup CanvasData and layout and script messages.Emilio Cobos Álvarez2016-11-071-4/+9
|
* Remove #![feature(rustc_attrs)]Anthony Ramine2016-11-031-1/+0
|
* Remove #![feature(custom_derive)]Anthony Ramine2016-11-031-1/+0
|
* Use heapsize_derive instead of heapsize_pluginSimon Sapin2016-11-031-3/+3
|
* Remove gfx_traits::color.Ms2ger2016-10-311-13/+8
|
* Remove old rendering backend.Glenn Watson2016-10-181-1/+1
| | | | | | | | | | | | | | This removes paint threads, rust-layers dependency, and changes optional webrender types to be required. The use_webrender option has been removed, however I've left the "-w" command line option in place so that wpt runner can continue to pass that. Once it's removed from there we can also remove the -w option. Once this stage is complete, it should be fine to change the display list building code to generate webrender display lists directly and avoid the conversion step.
* Update to Rust 1.14.0-nightly (19ac57926 2016-10-08)Anthony Ramine2016-10-091-1/+5
| | | | A cargo bump and a switch to serde_derive is needed to do this rustup.
* Fix canvas image tests when using webrender.Glenn Watson2016-08-301-0/+18
| | | | | | When webrender is enabled, image decoding doesn't pre-multiply by alpha, but the canvas code expects the image data to be pre-multiplied form.
* Remove #[serde(bound = "")] attributesDavid Tolnay2016-08-121-1/+0
| | | | These were fixed in serde_codegen 0.8.0 by serde-rs/serde#456.
* Update Rust to 1.12.0-nightly (9316ae515 2016-07-24)Eduard Burtescu2016-07-261-0/+1
|
* Move util::vec::byte_swap to canvas_traitsAnthony Ramine2016-07-041-0/+13
|
* Make canvas send their data themselves to other canvasAnthony Ramine2016-06-161-0/+2
|
* Remove references to unused crates.Zbynek Winkler2016-04-221-2/+0
| | | | The cleanup is based on info from using "-W unused-extern-crates".
* #10211: Stop re-exporting webrender_traits WebGL types from canvas_traitsJan-Fabian Humann2016-03-301-4/+2
|
* canvas_traits: Remove unused layers dependencyEmilio Cobos Álvarez2016-03-231-4/+0
|
* canvas: Remove all the canvas layerization infrastructureEmilio Cobos Álvarez2016-03-231-18/+0
| | | | | | | It was never complete, and with webrender as a backend the way we render WebGL contexts has changed a bit. This should remove quite a bit of overhead.
* Deny unsafe code in more crates.Ms2ger2016-03-181-0/+2
|
* Add WebRender integration to Servo.Glenn Watson2016-02-181-177/+17
| | | | | | | | 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!
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-2/+2
|
* webgl: Improve debuggingEmilio Cobos Álvarez2016-01-131-0/+77
| | | | Now we can keep track of errors more easily.
* webgl: Implement Uniform1f, Uniform1fv, and Uniform4fEmilio Cobos Álvarez2016-01-131-1/+2
| | | | | | I was going to implement Uniform4fv with sequences, (since it practically implemented), but we can't until we support Float32Array args because codegen doesn't know how tu differenciate between both.
* Issue #8738: bufferSubData and texImage2D argument sanity checks.Simon Martin2015-12-261-1/+1
|
* Implement WebGL scissor methodDavid Zbarsky2015-12-151-0/+1
|
* Implement various WebGL functionsDavid Zbarsky2015-12-131-3/+11
|
* 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.
* Auto merge of #8831 - simartin:ticket_6791, r=eefriedmanbors-servo2015-12-071-2/+2
|\ | | | | | | | | | | | | | | | | | | Issue #6791: Allow more array types in bufferData and bufferSubData. Fix https://github.com/servo/servo/issues/6791 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8831) <!-- Reviewable:end -->
| * Issue #6791: Allow more array types in bufferData and bufferSubData.Simon Martin2015-12-061-2/+2
| |
* | Implement IsPointInPathDavid Zbarsky2015-12-051-0/+7
|/
* Issue #8462: Add support for BufferSubData, CompressedTexImage2D andSimon Martin2015-12-011-0/+1
| | | | CompressedSubTexImage2D and re-enable individual webgl WPT tests.
* Handle zero-sized source surfaces properly, and upgrade `ipc-channel` toPatrick Walton2015-09-301-20/+20
| | | | | | | | incorporate the fix for zero-sized shmem on Mac. Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10. Closes #7422.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-7/+7
|
* Make use of FromStr and Default traits in lib canvasThiago Pontes2015-09-031-78/+104
| | | | fixup! Make use of FromStr and Default traits in lib canvas
* webgl: Add shader validation and translationecoal952015-08-301-3/+1
| | | | | | | | This commit adds angle-based validation and translation to WebGL shaders. The changes to the tex_image_2d test is neccessary (it was not valid GLES 2.0 shader language).
* webgl: Implement multiple calls and improve error detectionecoal952015-08-251-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements WebGL's: * cullFace * frontFace * enable * disable * depthMask * colorMask * clearDepth * clearStencil * depthFunc * depthRange * hint * lineWidth * pixelStorei * polygonOffset * texParameteri * texParameterf * texImage2D (partially) It inlines a lot of OpenGL calls to keep the file `components/canvas/webgl_paint_task.rs` as small as possible while keeping readability. It also improves error detection on previous calls, and sets node damage on the canvas in the drawing calls. It adds a `TexImage2D` reftest, even though it's not enabled because: * WebGL paints the image when it loads (asynchronously), so the reftest doesn't wait for it and it finishes early * If we change the source for the base64 src of the image it works as expected in non-headless mode, but the test harness locks
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-10/+12
|
* Auto merge of #7092 - dzbarsky:putimagedata, r=jdmbors-servo2015-08-091-1/+1
|\ | | | | | | | | | | | | | | | | | | Clean up and fix PutImageData <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092) <!-- Reviewable:end -->
| * Switch PutImageData to using CopySurfaceDavid Zbarsky2015-08-081-1/+1
| |
| * Pass a Rect instead of an Option<Rect> to PutImageDataDavid Zbarsky2015-08-081-1/+1
| |
* | Fix getImageData with sizes < 1 pixelDavid Zbarsky2015-08-081-1/+1
|/
* script: Make most of 2D canvas and WebGL run over IPC.Patrick Walton2015-07-251-35/+63
| | | | | | 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.