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:
Jeff Gilbert 2020-03-27 08:37:28 +00:00
parent 79b5dc835f
commit 0e2a962631
3 changed files with 6 additions and 6 deletions

View File

@ -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());

View File

@ -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.

View File

@ -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