servo/components
bors-servo 4ab1cdece6 Auto merge of #8970 - ecoal95:webgl-array-buffer-data, r=jdm
webgl: Make a general way to get data from a JS array buffer view

This fixes an invalid length being reported from
`float32_array_to_slice` (which used the byte length), and also to
generalize getting data from a JS array buffer view, to reduce code
duplication.

The pending type safety issues, like where we could send a `UInt16Array`
where we expect a `Float32` one, should be solved by IDL bindings in
some cases, like `uniform[n]fv` or `vertexAttrib[n]fv`, and with extra
checks in others, like in the pending `texImage2D(..., ArrayBufferView)`.

r? @jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8970)
<!-- Reviewable:end -->
2016-01-06 01:54:16 +05:30
..
canvas Update offscreen_gl_context 2015-12-22 04:33:03 +01:00
canvas_traits Issue #8738: bufferSubData and texImage2D argument sanity checks. 2015-12-26 18:56:48 +01:00
compositing Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
devtools Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
devtools_traits Support responseCookies, responseContent, responseHeaders, requestCookies, getResponseHeaders, 2015-12-21 10:28:40 -05:00
gfx Auto merge of #9123 - karyon:clippy_cleanup, r=Manishearth 2016-01-03 09:16:34 +05:30
gfx_traits Move LayerKind and ScrollPolicy enums to gfx_traits 2015-12-20 20:43:31 -05:00
layout Hoist the rest of css/matching.rs into style/. 2016-01-04 09:41:31 -08:00
layout_traits Separate script and layout messages, issue #8843 2015-12-26 12:24:51 -05:00
msg Move LayerKind and ScrollPolicy enums to gfx_traits 2015-12-20 20:43:31 -05:00
net minimal implementation of http_network_fetch for testing purposes 2016-01-05 12:14:07 -07:00
net_traits minimal implementation of http_network_fetch for testing purposes 2016-01-05 12:14:07 -07:00
plugins Use Url.join instead of UrlParser.base_url(...).parse (#9002) 2015-12-18 17:02:41 +01:00
profile Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
profile_traits gfx: Measure text shaping time in the time profiler. 2015-12-15 13:28:05 -08:00
script conversions: Make a is_type_compatible method for ArrayBufferViews. 2016-01-04 15:51:01 +01:00
script_traits Separate script and layout messages, issue #8843 2015-12-26 12:24:51 -05:00
servo Hoist the rest of css/matching.rs into style/. 2016-01-04 09:41:31 -08:00
style Hoist the rest of css/matching.rs into style/. 2016-01-04 09:41:31 -08:00
style_traits Use Url.join instead of UrlParser.base_url(...).parse (#9002) 2015-12-18 17:02:41 +01:00
util Fix a bunch of clippy lints 2016-01-02 23:27:15 +01:00
webdriver_server Use Url.join instead of UrlParser.base_url(...).parse (#9002) 2015-12-18 17:02:41 +01:00