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
Roman Klauke
f1efe9a043
remove the "core" feature from canvas
...
The core feature is marked as stable. This commit removes the usage
of this feature.
2015-12-10 20:21:10 +01:00
David Zbarsky
789a90a82f
Implement IsPointInPath
2015-12-05 17:49:49 -08:00
bors-servo
2cfcc26d9e
Auto merge of #8788 - ecoal95:fix-webgl-texturing, r=jdm
...
webgl: Fix texturing
These two tiny changes were making WebGL textures not work.
It was not seen in our texturing test since it only used one texture,
we render to a texture by default, and that texture was bound to
`gl::TEXTURE_2D`.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8788 )
<!-- Reviewable:end -->
2015-12-04 22:12:26 +05:30
Emilio Cobos Álvarez
f3bd1f7879
webgl: Ensure we don't generate gl errors in the paint task
...
The validations performed in the script side of this should always
prevent this from happening, and this will allow us to catch bugs like
the previous one.
2015-12-04 10:58:26 +01:00
bors-servo
32b90cdb6f
Auto merge of #8800 - servo:warnings, r=metajack
...
Fix warnings
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
Fix #8709 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8800 )
<!-- Reviewable:end -->
2015-12-04 05:37:38 +05:30
bors-servo
5ee6fe120d
Auto merge of #8712 - simartin:issue_8462, r=ecoal95
...
Issue #8462 : Add support for BufferSubData, CompressedTexImage2D and CompressedSubTexImage2D and reenable individual webgl WPT tests
Fixes https://github.com/servo/servo/issues/8462
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8712 )
<!-- Reviewable:end -->
2015-12-04 01:07:14 +05:30
Simon Sapin
b19cc7e44c
Fix warnings
...
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
2015-12-03 17:05:26 +01:00
bors-servo
8b95d7b8d8
Auto merge of #8757 - servo:skia, r=mbrubeck
...
Use skia and deps from crates.io.
This makes the initial download for skia go from a 300 MB git repository to a 5 MB tarball. This should help with issues like #6132 and #7687 .
Fix https://github.com/servo/skia/issues/70
This builds, but the at the moment causes a number of tidy errors for duplicated crates.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8757 )
<!-- Reviewable:end -->
2015-12-03 12:58:29 +05:30
Emilio Cobos Álvarez
3af24ed119
webgl: Fix texturing
...
These two tiny changes were making WebGL textures not work.
It was not seen in our texturing test since we render to a texture by
default, and that texture was bound to `gl::TEXTURE_2D`.
2015-12-03 02:53:37 +01:00
Simon Sapin
aa1eba4f5a
Use skia and deps from crates.io.
...
Fix https://github.com/servo/skia/issues/70
2015-12-02 19:07:59 +01:00
Simon Martin
f79e1521b2
Issue #8462 : Add support for BufferSubData, CompressedTexImage2D and
...
CompressedSubTexImage2D and re-enable individual webgl WPT tests.
2015-12-01 20:40:42 +01:00
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
Patrick Walton
2843000810
Update ipc-channel
to pick up the improved error reporting.
...
Intended to help diagnose intermittent failures.
2015-11-23 16:38:39 -08:00
Simon Sapin
69d398f29a
Update to rust-cssparser 0.4.0
2015-11-05 08:57:01 +01:00
Manish Goregaokar
ce5586f74a
Update euclid to 0.3
2015-10-28 21:34:23 +05:30
Nathan Froyd
9e348e2e8e
add premultiply table for PutImageData
2015-10-21 18:30:35 -04:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00
Patrick Walton
24fdc8a3c7
Handle zero-sized source surfaces properly, and upgrade ipc-channel
to
...
incorporate the fix for zero-sized shmem on Mac.
Depends on servo/rust-azure#201 and pcwalton/ipc-channel#10.
Closes #7422 .
2015-09-30 23:09:36 -07:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
bors-servo
6a12f00d6d
Auto merge of #7605 - nox:skew, r=mbrubeck
...
Implement "transform: skew()"
Thanks to @Jinwoo-Song for the original commit, which I just rebased and cleaned up. Fixes #6237 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7605 )
<!-- Reviewable:end -->
2015-09-16 06:31:48 -06:00
Mathieu Rheaume
7320433cca
Remove 'get_*' on getters as per RFC 0344 on various components
2015-09-12 20:14:01 -04:00
Anthony Ramine
f11fcebd9c
Bump euclid to 0.2
2015-09-12 01:06:26 +02:00
ecoal95
167885707d
webgl: Add shader validation and translation
...
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).
2015-08-30 14:23:14 +02:00
ecoal95
6341c77700
webgl: Implement multiple calls and improve error detection
...
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
2015-08-25 17:16:46 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
João Oliveira
9c11781880
replace .len() == 0 with is_empty()
...
closes #7198
2015-08-14 04:00:33 +01:00
bors-servo
6a8bc85284
Auto merge of #7092 - dzbarsky:putimagedata, r=jdm
...
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 -->
2015-08-09 07:00:56 -06:00
David Zbarsky
2f47bdff4b
Fix getImageData with sizes < 1 pixel
2015-08-08 15:43:22 -04:00
David Zbarsky
05c78fbd48
Inline write_pixels
2015-08-08 15:35:16 -04:00