mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1624944 - Uniform data uploads should accept SharedArrayBuffers. r=webidl,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D68508 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
79b5dc835f
commit
0e2a962631
@ -604,9 +604,9 @@ class WebGLVertexArrayJS final : public nsWrapperCache, public webgl::ObjectJS {
|
||||
|
||||
////////////////////////////////////
|
||||
|
||||
typedef dom::Float32ArrayOrUnrestrictedFloatSequence Float32ListU;
|
||||
typedef dom::Int32ArrayOrLongSequence Int32ListU;
|
||||
typedef dom::Uint32ArrayOrUnsignedLongSequence Uint32ListU;
|
||||
typedef dom::MaybeSharedFloat32ArrayOrUnrestrictedFloatSequence Float32ListU;
|
||||
typedef dom::MaybeSharedInt32ArrayOrLongSequence Int32ListU;
|
||||
typedef dom::MaybeSharedUint32ArrayOrUnsignedLongSequence Uint32ListU;
|
||||
|
||||
inline Range<const float> MakeRange(const Float32ListU& list) {
|
||||
if (list.IsFloat32Array()) return MakeRangeAbv(list.GetAsFloat32Array());
|
||||
|
@ -25,7 +25,7 @@ interface WebGLSync {
|
||||
interface WebGLTransformFeedback {
|
||||
};
|
||||
|
||||
typedef (Uint32Array or sequence<GLuint>) Uint32List;
|
||||
typedef ([AllowShared] Uint32Array or sequence<GLuint>) Uint32List;
|
||||
|
||||
// WebGL2 spec has this as an empty interface that pulls in everything
|
||||
// via WebGL2RenderingContextBase.
|
||||
|
@ -108,8 +108,8 @@ interface WebGLShaderPrecisionFormat {
|
||||
readonly attribute GLint precision;
|
||||
};
|
||||
|
||||
typedef (Float32Array or sequence<GLfloat>) Float32List;
|
||||
typedef (Int32Array or sequence<GLint>) Int32List;
|
||||
typedef ([AllowShared] Float32Array or sequence<GLfloat>) Float32List;
|
||||
typedef ([AllowShared] Int32Array or sequence<GLint>) Int32List;
|
||||
|
||||
// Shared mixin for the things that WebGLRenderingContext and
|
||||
// WebGL2RenderingContext have in common. This doesn't have all the things they
|
||||
|
Loading…
Reference in New Issue
Block a user