Anthony Ramine
38a79e4506
Update Rust to 1.11.0-nightly (ad7fe6521 2016-06-23)
...
I also properly bump any dependency related to the serde_macros removal
from webrender_traits
2016-06-27 14:13:44 +02:00
Anthony Ramine
abfd52a721
Reorder dependencies
2016-06-26 17:11:27 +02:00
Anthony Ramine
f8c3fe1076
Make canvas send their data themselves to other canvas
2016-06-16 18:24:04 +01:00
Josh Matthews
3cb8af20c2
Remove empty lines following braces.
2016-05-27 13:32:05 -04:00
Ms2ger
efd953f768
Update documentation for {CanvasPaintThread, WebGLPaintThread}::new().
2016-05-19 12:15:02 +02:00
Simon Sapin
83b3ebf6ac
Simplify TOML syntax
...
* Sections like `[dependencies.foo]` can be entries in a `[dependencies]`
section with the `{key = value}` syntax.
* Per-target dependencies can be expressed with more general `cfg(…)`
conditions instead of exact target triples:
https://github.com/rust-lang/cargo/pull/2328
2016-04-26 23:51:36 +02:00
bors-servo
0a3a50a129
Auto merge of #10706 - zwn:unused-extern-crates, r=nox
...
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 -->
2016-04-22 13:40:38 -07:00
Zbynek Winkler
41c293293b
Remove references to unused crates.
...
The cleanup is based on info from using "-W unused-extern-crates".
2016-04-22 22:20:06 +02:00
Ms2ger
38c10f89f2
Use num-traits in canvas.
2016-04-20 15:27:35 +02:00
Emilio Cobos Álvarez
6fcc03c965
webgl: Make the api return the context limits and use them for validations
...
This allows keeping the VertexAttrib* calls asynchronous.
Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.
The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
2016-04-03 01:21:56 +02:00
bors-servo
4e4a213c73
Auto merge of #9911 - magni-:dont_use_lookup_tables, r=michaelwu
...
Do not use lookup tables for put_image_data
Fixes #9599
"This is the first Rust code I have ever written" (and also my first time writing real browser code, it's been quite the learning experience).
Some questions:
> For really fast CPU results, use integer SIMD instructions to handle more than one pixel at a time.
This was out of the scope of #9599 , right? I started looking into doing that, but it seems to be a lot more work than the `E-easy` label would suggest. [`std::simd`](https://doc.rust-lang.org/1.0.0/std/simd/index.html ) is marked as "unstable", is that a blocker?
> 128 can be added before dividing to round more accurately.
@michaelwu, what did you mean by that?
Also, the #9599 is `Do not use lookup tables for {Get,Put}ImageData operations`, but we only use lookup tables for the `Put`, not the `Get`, right?
Sorry for all the noobish questions.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9911 )
<!-- Reviewable:end -->
2016-04-01 23:57:19 +05:30
bors-servo
524a004e77
Auto merge of #10291 - jfhumann:10211, r=emilio
...
<!-- 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/10291 )
<!-- Reviewable:end -->
2016-04-01 01:57:20 +05:30
Emilio Cobos Álvarez
97f4ef28d4
Update webrender to master
...
I'll rebase #10224 against it.
2016-03-31 15:49:22 +02:00
Paul Padier
86dcef1455
Clean up spacing
2016-03-31 14:20:36 +09:00
Paul Padier
1e8e5d61d2
Don't use premultiply table for put_image_data
2016-03-31 14:20:36 +09:00
Anthony Ramine
48b5d1d6be
Update webrender with crates.io's offscreen_gl_context ( fixes #10296 )
...
Crate webrender is bumped to the first commit in https://github.com/servo/webrender/pull/248 .
Crate webrender_traits is bumped to the merge of https://github.com/servo/webrender_traits/pull/21 .
2016-03-31 02:02:02 +02:00
Anthony Ramine
a81793c908
Reorder dependencies in components/canvas/Cargo.toml
2016-03-31 01:36:50 +02:00
Jan-Fabian Humann
d778562844
#10211 : Stop re-exporting webrender_traits WebGL types from canvas_traits
2016-03-30 20:05:16 +02:00
Ms2ger
d21cf30c2c
Simplify channel usage in canvas paint threads.
2016-03-29 15:35:46 +02:00
Emilio Cobos Álvarez
5ed93a5c4a
Change old references of ecoal95
2016-03-23 18:12:40 +01:00
Emilio Cobos Álvarez
a02daf7144
canvas: Remove all the canvas layerization infrastructure
...
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.
2016-03-23 18:12:37 +01:00
Ms2ger
22447055b9
Stop returning in-process senders from {CanvasPaintThread, WebGLPaintThread}::start.
2016-03-21 18:26:46 +01:00
Ms2ger
08083f1c9d
Deny unsafe code in more crates.
2016-03-18 14:43:03 +01:00
Anthony Ramine
f7af675861
Update log to 0.3.5
2016-03-16 23:36:04 -07:00
Anthony Ramine
79c68f54e3
Bump gleam to 0.2.8
2016-03-09 20:17:08 +01:00
Anthony Ramine
f89c321141
Bump euclid to 0.6.4
2016-03-09 20:15:11 +01:00
Corey Farwell
75353e19a7
Indicate components should not be published to crates.io.
...
http://doc.crates.io/manifest.html#the-publish--field-optional
2016-03-03 15:04:44 -05:00
Corey Farwell
83b22fd97f
Update webrender crate refs to reflect ownership change.
...
Also updated the 'webrender' ref to point to the latest commit.
2016-02-23 19:49:50 -05:00
Glenn Watson
c0531c312f
Add WebRender integration to Servo.
...
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!
2016-02-18 10:35:29 +10:00
Anthony Ramine
874fa5595f
Bump euclid to 0.6.2
2016-02-13 00:08:08 +01:00
bors-servo
647637193d
Auto merge of #9512 - timvandermeij:feature-cleanup, r=frewsxcv
...
Remove old features 'clone_from_slice' and 'convert'
Fixes #9495 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9512 )
<!-- Reviewable:end -->
2016-02-04 18:11:52 +05:30
Ms2ger
2ea9f2d028
Update Euclid.
2016-02-04 11:02:09 +01:00
Tim van der Meij
a9472ede64
Remove old features 'clone_from_slice' and 'convert'
2016-02-03 00:55:13 +01:00
Glenn Watson
814b94b6bd
This updates gleam to a version that relies on OpenGL 3.3 (which is needed for the instancing changes in WR - see servo/gleam@fc7e28e ).
...
Hopefully the build machines and everyone using Servo has GL 3.3 available on their machines - if it causes any problems, we can revert this change and investigate further.
2016-02-01 09:21:59 +10:00
Matthew Kuo
9d2eacf039
Remove remaining unused imports
2016-01-17 20:55:53 -08:00
bors-servo
c13e84010d
Auto merge of #9107 - ecoal95:webgl-uniforms-and-nits, r=simartin
...
webgl: Track the current program, implement some uniform functions, and nits
Was done while implementing sequence arguments.
Depends on #9056 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9107 )
<!-- Reviewable:end -->
2016-01-13 22:14:59 +05:30
Emilio Cobos Álvarez
48962bd6b6
webgl: Improve debugging
...
Now we can keep track of errors more easily.
2016-01-13 15:28:34 +01:00
Emilio Cobos Álvarez
532b53ddc9
webgl: Implement Uniform1f, Uniform1fv, and Uniform4f
...
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.
2016-01-13 13:41:30 +01:00
Ms2ger
86d3c576f2
Remove some unused extern crates.
2016-01-13 09:37:28 +01:00
Josh Leverette
1bde88395c
modified to use map
instead of match
.
2016-01-11 23:36:03 -06:00
Josh Leverette
bc1850240f
Refactor WebGLPaintTask to prevent creating extra IPC channels #9228
2016-01-10 13:26:15 -06:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Emilio Cobos Álvarez
0d1dfb9c43
webgl: Create the paint task object in the thread
...
This avoids problems like:
https://github.com/servo/servo/issues/9006#issuecomment-170007845
2016-01-08 21:46:07 +00:00
Emilio Cobos Álvarez
992a36234c
Update offscreen_gl_context
2015-12-22 04:33:03 +01:00
David Zbarsky
6a72d4dd12
Implement WebGL scissor method
2015-12-15 20:43:38 -08:00
David Zbarsky
0f4d6d58aa
Implement various WebGL functions
2015-12-13 17:39:20 -08:00
Tetsuharu OHZEKI
196f15b696
Fix warnings: Remove unused 'slice_bytes' flag
2015-12-11 10:21:23 -05:00
Tetsuharu OHZEKI
7267163f49
Fix warnings: use clone_from_slice instead of copy_memory
2015-12-11 10:20:24 -05:00
bors-servo
d01233a7b4
Auto merge of #8922 - saneyuki:warning, r=mbrubeck
...
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 -->
2015-12-11 04:57:58 +05:30
Tetsuharu OHZEKI
e8c12c1c6d
Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all
2015-12-10 16:49:29 -05:00