Anthony Ramine
55dcee94be
Bump heapsize to 0.3
2016-02-13 11:13:19 +01:00
Anthony Ramine
874fa5595f
Bump euclid to 0.6.2
2016-02-13 00:08:08 +01:00
Anthony Ramine
d0ab28a735
Bump cssparser to 0.5.3
2016-02-13 00:08:07 +01:00
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Anthony Ramine
5bb3fc395a
Bump cssparser to 0.5.2
2016-02-04 14:14:23 +01:00
Ms2ger
2ea9f2d028
Update Euclid.
2016-02-04 11:02:09 +01:00
Simon Sapin
6fd46b5e6a
Update cssparser.
...
https://github.com/servo/rust-cssparser/pull/91
2016-01-21 17:58:03 +01:00
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
Simon Martin
f2fe401d7d
Issue #8738 : bufferSubData and texImage2D argument sanity checks.
2015-12-26 18:56:48 +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
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
bors-servo
95e6b1d101
Auto merge of #8831 - simartin:ticket_6791, r=eefriedman
...
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 -->
2015-12-07 02:39:32 +05:30
Simon Martin
fa555d0e2e
Issue #6791 : Allow more array types in bufferData and bufferSubData.
2015-12-06 15:28:59 +01:00
David Zbarsky
789a90a82f
Implement IsPointInPath
2015-12-05 17:49:49 -08:00
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
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
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
184b2bacf3
Fix serde_macros
2015-10-28 21:53:15 +05:30
Manish Goregaokar
ce5586f74a
Update euclid to 0.3
2015-10-28 21:34:23 +05:30
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
Manish Goregaokar
3c969b346a
Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev.
2015-09-23 14:44:59 +02:00
Anthony Ramine
f11fcebd9c
Bump euclid to 0.2
2015-09-12 01:06:26 +02:00
Thiago Pontes
a2a9c0489d
Make use of FromStr and Default traits in lib canvas
...
fixup! Make use of FromStr and Default traits in lib canvas
2015-09-03 14:42:53 -03: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
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03: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
bors-servo
dbce4c5bd8
Auto merge of #6975 - dzbarsky:get-tiny, r=jdm
...
Fix getImageData with sizes < 1 pixel
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6975 )
<!-- Reviewable:end -->
2015-08-09 06:32:30 -06:00
David Zbarsky
2f47bdff4b
Fix getImageData with sizes < 1 pixel
2015-08-08 15:43:22 -04:00
David Zbarsky
51938d579f
Switch PutImageData to using CopySurface
2015-08-08 15:35:08 -04:00
Patrick Walton
6b32e5d7a7
servo: Update ipc-channel
to pick up bincode
support.
...
Large improvement in page load times, especially in debug builds.
2015-08-08 09:43:53 -07:00
David Zbarsky
48c24f8492
Pass a Rect instead of an Option<Rect> to PutImageData
2015-08-08 04:50:55 -04:00
Patrick Walton
bb99b2f3c8
script: Make most of 2D canvas and WebGL run over IPC.
...
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.
2015-07-25 00:50:12 -07:00
Patrick Walton
626974994a
canvas: Move to shared memory for images and canvas backing stores.
...
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.
2015-07-24 16:14:24 -07:00
bors-servo
ae01e97efa
Auto merge of #6487 - pcwalton:background-tiling, r=glennw
...
gfx: Use a pattern instead of tiling images manually.
r? @SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6487 )
<!-- Reviewable:end -->
2015-07-07 05:42:07 -06:00
Patrick Walton
3500af37d0
gfx: Use a pattern instead of tiling images manually.
2015-07-07 10:41:47 -07:00
ecoal95
8438db89e1
address review comments
2015-07-06 23:02:51 +02:00
ecoal95
9b306aced6
webgl: implement getError
2015-07-06 19:55:48 +02:00
ecoal95
42bd43a696
webgl: Make bind* calls more spec-compliant
2015-07-06 19:54:06 +02:00
ecoal95
b1765c6882
webgl: Refactor implementation to move logic inside the DOM interfaces
...
This improves the encapsulation and consistency in our WebGL
implementation.
Also allows to implement new methods such as `getShaderSource()`.
It will also allow us to use `delete()` in the destructors of them (note
that we will want to keep track of them from the context).
2015-07-06 19:54:05 +02:00
Ms2ger
73a7e92bfd
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
2015-06-25 20:02:36 +02:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
bors-servo
ceaca2e288
Auto merge of #6357 - ecoal95:more-webgl, r=pcwalton
...
See the commit descriptions for more details.
Blocked on https://github.com/servo/gleam/pull/24
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6357 )
<!-- Reviewable:end -->
2015-06-13 15:05:08 -06:00