gecko-dev/dom/canvas
Lee Salzman cd73425fee Bug 1794237 - Ensure worst case alignment of UniformData Range when serialized. r=jgilbert
The UniformData call accepts a Range<uint8_t>. When serialized by ClientWebGLContext,
however, the data is only serialized to the alignment of the supplied uint8_t type.
The HostWebGLContext may then alias it to a Range<uint32_t> or similar, while the data
was only aligned to 1-byte alignment. On some platforms such as ARM, these unaligned
accesses can cause a SIGBUS.

As a temporary workaround, we will now pessimistically align such ranges as if they
might be accessed as any possible data type with kUniversalAlignment.

Differential Revision: https://phabricator.services.mozilla.com/D160289
2022-10-25 21:37:23 +00:00
..
crashtests Bug 1771007 - Add testcase. r=aosmond 2022-07-31 15:36:59 +00:00
gtest Bug 1768189 - Part 7: Apply modernize-concat-nested-namespaces to dom/cache/FileUtilsImpl.h ... r=andi 2022-05-09 20:41:05 +00:00
test Bug 1796779 - Add a test for serialization of '.font' on offscreen canvas2d. r=gfx-reviewers,jrmuizel 2022-10-21 17:09:13 +00:00
BasicRenderingContext2D.h Bug 1768189 - Part 7: Apply modernize-concat-nested-namespaces to dom/cache/FileUtilsImpl.h ... r=andi 2022-05-09 20:41:05 +00:00
CacheInvalidator.cpp
CacheInvalidator.h Bug 1723050 - Part 6: Replace typedef by using in dom/canvas/ r=jgilbert 2021-07-30 15:30:52 +00:00
CanvasGradient.cpp
CanvasGradient.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
CanvasImageCache.cpp Bug 1794442 - Avoid reusing CanvasImageCache entries for different backends. r=lsalzman 2022-10-14 20:40:11 +00:00
CanvasImageCache.h Bug 1794442 - Avoid reusing CanvasImageCache entries for different backends. r=lsalzman 2022-10-14 20:40:11 +00:00
CanvasPath.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
CanvasPattern.cpp
CanvasPattern.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
CanvasRenderingContext2D.cpp Bug 1461589 - Handle font-variant-emoji during font matching. r=emilio 2022-10-22 09:43:49 +00:00
CanvasRenderingContext2D.h Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman 2022-10-16 22:52:40 +00:00
CanvasRenderingContextHelper.cpp Bug 1769878, ensure objects owned by the worker thread are cleared when the worker is shutting down, r=asuth,aosmond 2022-06-22 14:06:31 +00:00
CanvasRenderingContextHelper.h Bug 1746750 - Part 3. Implement partial OffscreenCanvasRenderingContext2D. r=lsalzman,webidl,smaug 2022-02-03 20:00:25 +00:00
CanvasUtils.cpp Bug 1796819 - Remove OffscreenCanvas origin trial / domain allowlist. r=aosmond 2022-10-21 19:00:57 +00:00
CanvasUtils.h Bug 1779315 - Avoid tainting OffscreenCanvas if the principals match. r=lsalzman 2022-07-13 16:06:50 +00:00
ClientWebGLContext.cpp Bug 1696693 - Don't blit-tex-upload for srgb textures. r=gfx-reviewers,bradwerth 2022-10-19 01:22:43 +00:00
ClientWebGLContext.h Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman 2022-10-16 22:52:40 +00:00
ClientWebGLExtensions.cpp Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl 2021-08-27 01:47:14 +00:00
ClientWebGLExtensions.h Bug 1795372 - Keepalive mNotLost within FuncScope. r=gfx-reviewers,lsalzman 2022-10-14 23:10:19 +00:00
DrawTargetWebgl.cpp Bug 1793887 - Limit the size of stroked path uploads. r=aosmond 2022-10-25 17:46:22 +00:00
DrawTargetWebgl.h Bug 1793769 - Avoid recreating the main DrawTargetWebgl SharedContext. r=aosmond 2022-10-14 20:06:20 +00:00
DrawTargetWebglInternal.h Bug 1773280 - Extend DrawTargetWebgl's glyph cache to support stroked glyphs. r=aosmond,gfx-reviewers 2022-09-06 05:06:17 +00:00
GeneratePlaceholderCanvasData.h Bug 1768189 - Part 7: Apply modernize-concat-nested-namespaces to dom/cache/FileUtilsImpl.h ... r=andi 2022-05-09 20:41:05 +00:00
HostWebGLContext.cpp Bug 1777426 - Support fast readbacks in CopyToSwapChain with async present. r=sotaro,jgilbert 2022-07-12 06:56:19 +00:00
HostWebGLContext.h Bug 1777426 - Support fast readbacks in CopyToSwapChain with async present. r=sotaro,jgilbert 2022-07-12 06:56:19 +00:00
ImageBitmap.cpp Bug 1776796 - Rename MarkAsContentSource r=media-playback-reviewers,alwu 2022-07-27 00:20:45 +00:00
ImageBitmap.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
ImageBitmapRenderingContext.cpp Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman 2022-10-16 22:52:40 +00:00
ImageBitmapRenderingContext.h Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman 2022-10-16 22:52:40 +00:00
ImageBitmapSource.h Bug 1768189 - Part 7: Apply modernize-concat-nested-namespaces to dom/cache/FileUtilsImpl.h ... r=andi 2022-05-09 20:41:05 +00:00
ImageData.cpp Bug 1763424 - Limit ImageData typed array to 2Gb when created using its constructor r=edgar 2022-04-07 19:46:47 +00:00
ImageData.h Bug 1682612 - Check for ArrayBuffer Detach/Transfer in texImage2D(ImageData). r=gfx-reviewers,aosmond 2022-03-21 23:21:42 +00:00
ImageUtils.cpp Bug 1778232 - ImageFormat::s/CAIRO_SURFACE/MOZ2D_SURFACE/. r=jrmuizel 2022-07-06 07:46:17 +00:00
ImageUtils.h Bug 1771948 - Cleanup dom/canvas dom/geolocation and some dom/media includes r=sylvestre 2022-06-05 09:23:00 +00:00
moz.build Backed out changeset 0a2985a48339 (bug 1769747) for causing gl failures. 2022-10-05 01:38:13 +03:00
MurmurHash3.cpp Bug 1771948 - Cleanup dom/canvas dom/geolocation and some dom/media includes r=sylvestre 2022-06-05 09:23:00 +00:00
MurmurHash3.h
nsICanvasRenderingContextInternal.cpp Bug 1780042 - Set CanvasPattern principal for main thread OffscreenCanvas. r=lsalzman 2022-08-02 15:51:45 +00:00
nsICanvasRenderingContextInternal.h Bug 1794956 - TransferToImageBitmap should reset bitmap but not state. r=gfx-reviewers,lsalzman 2022-10-16 22:52:40 +00:00
OffscreenCanvas.cpp Bug 1796819 - Remove OffscreenCanvas origin trial / domain allowlist. r=aosmond 2022-10-21 19:00:57 +00:00
OffscreenCanvas.h Bug 1769878 - Remove redundant RefPtr<nsIGlobalObject> from EncodeComplete callback. r=smaug 2022-06-22 14:06:30 +00:00
OffscreenCanvasDisplayHelper.cpp Bug 1784565 - Annotate OffscreenCanvasDisplayHelper's mutex. r=gfx-reviewers,lsalzman 2022-08-12 21:16:06 +00:00
OffscreenCanvasDisplayHelper.h Bug 1774300 - Remove unnecessary include r=padenot,jgilbert 2022-10-06 00:37:23 +00:00
OffscreenCanvasRenderingContext2D.cpp Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
OffscreenCanvasRenderingContext2D.h Bug 1779227 - Enable the font attribute to be set on a disconnected <canvas> element without throwing an error. r=aosmond 2022-07-12 18:36:32 +00:00
PWebGL.ipdl Bug 1777872 - Use Shmem for backing DrawTargetWebgl's Skia target. r=jgilbert 2022-07-12 09:25:35 +00:00
QueueParamTraits.h Bug 1778808 - Trim unused code, particularly in TiedFields.h. r=nika 2022-08-09 21:01:56 +00:00
SanitizeRenderer.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=sylvestre 2022-01-11 15:49:03 +00:00
SourceSurfaceWebgl.cpp Bug 1771007 - Avoid sending SourceSurfaceWebgl off-thread. r=jrmuizel,gfx-reviewers 2022-07-26 01:28:48 +00:00
SourceSurfaceWebgl.h Bug 1771007 - Avoid sending SourceSurfaceWebgl off-thread. r=jrmuizel,gfx-reviewers 2022-07-26 01:28:48 +00:00
TextMetrics.h Bug 1768189 - Part 7: Apply modernize-concat-nested-namespaces to dom/cache/FileUtilsImpl.h ... r=andi 2022-05-09 20:41:05 +00:00
TexUnpackBlob.cpp Backed out changeset 0a2985a48339 (bug 1769747) for causing gl failures. 2022-10-05 01:38:13 +03:00
TexUnpackBlob.h Bug 1640607 - Send SurfaceDescriptors for GPU blitting for video-to-webgl. r=lsalzman 2021-01-14 01:23:06 +00:00
TiedFields.h Bug 1778808 - Trim unused code, particularly in TiedFields.h. r=nika 2022-08-09 21:01:56 +00:00
TupleUtils.h Bug 1778808 - Trim unused code, particularly in TiedFields.h. r=nika 2022-08-09 21:01:56 +00:00
WebGL2Context.cpp
WebGL2Context.h
WebGL2ContextBuffers.cpp
WebGL2ContextFramebuffers.cpp
WebGL2ContextMRTs.cpp Bug 1778808 - Use stricter TiedFields instead of IsTriviallySerializable in WebGL's QueueParamTraits. r=lsalzman,nika 2022-08-09 21:01:55 +00:00
WebGL2ContextQueries.cpp
WebGL2ContextRenderbuffers.cpp
WebGL2ContextSamplers.cpp
WebGL2ContextState.cpp
WebGL2ContextSync.cpp
WebGL2ContextTransformFeedback.cpp
WebGL2ContextUniforms.cpp Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl 2021-08-27 01:47:14 +00:00
WebGLBuffer.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLBuffer.h
WebGLChild.cpp Bug 1777656: Delete mozilla::ipc::SharedMemory::SharedMemorytype. r=nika,media-playback-reviewers,padenot 2022-07-05 20:08:31 +00:00
WebGLChild.h Bug 1738734 - Directly pass around handles rather than using TransportDescriptor, r=jld,media-playback-reviewers,alwu 2022-02-08 23:53:45 +00:00
WebGLCommandQueue.h Bug 1794237 - Ensure worst case alignment of UniformData Range when serialized. r=jgilbert 2022-10-25 21:37:23 +00:00
WebGLContext.cpp Bug 1785925 - Add LUT and Colorspace support to GLBlitHelper. r=lsalzman,media-playback-reviewers,alwu 2022-09-13 17:40:43 +00:00
WebGLContext.h Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLContextBuffers.cpp
WebGLContextDraw.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLContextExtensions.cpp Bug 1772999 - Allow OES_draw_buffers_indexed by default. r=gfx-reviewers,jrmuizel 2022-10-20 20:11:49 +00:00
WebGLContextFramebufferOperations.cpp Bug 1449575 - Don't attempt ColorMask elision in WebGL. r=gfx-reviewers,aosmond 2022-03-24 19:39:06 +00:00
WebGLContextGL.cpp Bug 1778549 - Don't crash on validation failure in ReadPixelsPbo. r=gfx-reviewers,lsalzman 2022-08-03 06:10:31 +00:00
WebGLContextLossHandler.cpp
WebGLContextLossHandler.h
WebGLContextState.cpp Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl 2021-08-27 01:47:14 +00:00
WebGLContextTextures.cpp Bug 1692832 - isTexUploadFromPbo iff isPboBound. r=lsalzman 2021-03-10 18:35:16 +00:00
WebGLContextUtils.cpp Bug 1768190 - Forbid same tex unit different sampler types even if unbound. r=gfx-reviewers,lsalzman 2022-08-02 05:56:20 +00:00
WebGLContextUtils.h
WebGLContextValidate.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLContextVertexArray.cpp
WebGLContextVertices.cpp Bug 1778808 - Use stricter TiedFields instead of IsTriviallySerializable in WebGL's QueueParamTraits. r=lsalzman,nika 2022-08-09 21:01:55 +00:00
WebGLExtensions.cpp Bug 1735431 - Merge WebGLExtension* into WebGLExtensions.cpp. r=gfx-reviewers,nical 2021-10-19 23:07:00 +00:00
WebGLExtensions.h Bug 1726265 - Prototype webgl draft ext OES_draw_buffers_indexed. r=lsalzman,emilio,webidl 2021-08-27 01:47:14 +00:00
WebGLFormats.cpp Bug 1778549 - Don't crash on validation failure in ReadPixelsPbo. r=gfx-reviewers,lsalzman 2022-08-03 06:10:31 +00:00
WebGLFormats.h Bug 1778549 - Don't crash on validation failure in ReadPixelsPbo. r=gfx-reviewers,lsalzman 2022-08-03 06:10:31 +00:00
WebGLFramebuffer.cpp Bug 1449575 - Don't attempt ColorMask elision in WebGL. r=gfx-reviewers,aosmond 2022-03-24 19:39:06 +00:00
WebGLFramebuffer.h Bug 1754130 - Support presenting a WebGLFramebuffer to its own swap chain without opaque FB. r=aosmond,jgilbert 2022-02-11 19:49:56 +00:00
WebGLInternalFormatsTable.h
WebGLIpdl.h Bug 1785925 - Add LUT and Colorspace support to GLBlitHelper. r=lsalzman,media-playback-reviewers,alwu 2022-09-13 17:40:43 +00:00
WebGLMemoryTracker.cpp
WebGLMemoryTracker.h
WebGLMethodDispatcher.h Bug 1755780 - Support CopyToSwapChain on WebGLContext. r=jgilbert 2022-02-21 17:33:09 +00:00
WebGLObjectModel.h
WebGLParent.cpp Bug 1777872 - Use Shmem for backing DrawTargetWebgl's Skia target. r=jgilbert 2022-07-12 09:25:35 +00:00
WebGLParent.h Bug 1777872 - Use Shmem for backing DrawTargetWebgl's Skia target. r=jgilbert 2022-07-12 09:25:35 +00:00
WebGLProgram.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLProgram.h Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLQuery.cpp
WebGLQuery.h
WebGLQueueParamTraits.h Bug 1778808 - Use stricter TiedFields instead of IsTriviallySerializable in WebGL's QueueParamTraits. r=lsalzman,nika 2022-08-09 21:01:55 +00:00
WebGLRenderbuffer.cpp
WebGLRenderbuffer.h
WebGLSampler.cpp
WebGLSampler.h
WebGLShader.cpp Bug 1747299 - [UniqueBuffer] Use UniqueBuffer::Take instead of copy constructors for void*. r=gfx-reviewers,sotaro 2021-12-25 00:31:48 +00:00
WebGLShader.h
WebGLShaderValidator.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLShaderValidator.h Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLStrongTypes.h
WebGLSync.cpp
WebGLSync.h
WebGLTexelConversions.cpp Bug 1677183 - Implement WebGPU's Queue.copyExternalImageToTexture. r=jgilbert,jimb,emilio 2022-08-18 16:11:46 +00:00
WebGLTexelConversions.h Bug 1677183 - Implement WebGPU's Queue.copyExternalImageToTexture. r=jgilbert,jimb,emilio 2022-08-18 16:11:46 +00:00
WebGLTexture.cpp Bug 1781728 - Fix code style r=jgilbert 2022-08-24 22:20:39 +00:00
WebGLTexture.h Bug 1781728 - Clamp WebGL mipmap levels r=jgilbert 2022-08-24 22:20:39 +00:00
WebGLTextureUpload.cpp Backed out changeset 0a2985a48339 (bug 1769747) for causing gl failures. 2022-10-05 01:38:13 +03:00
WebGLTransformFeedback.cpp Bug 1715690 - Generalize WebGL RENDERER into large buckets. r=lsalzman 2021-06-14 21:27:08 +00:00
WebGLTransformFeedback.h
WebGLTypes.h Bug 1795372 - Keepalive mNotLost within FuncScope. r=gfx-reviewers,lsalzman 2022-10-14 23:10:19 +00:00
WebGLValidateStrings.cpp Bug 1725069 - Allow GLSL-invalid chars in shaderSource. r=gfx-reviewers,kvark 2021-09-16 20:19:11 +00:00
WebGLValidateStrings.h Bug 1725069 - Allow GLSL-invalid chars in shaderSource. r=gfx-reviewers,kvark 2021-09-16 20:19:11 +00:00
WebGLVertexArray.cpp
WebGLVertexArray.h Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLVertexArrayFake.cpp Bug 1779800 - Fix WebGL instancing in some cases on Mac. r=gfx-reviewers,lsalzman 2022-09-15 00:47:03 +00:00
WebGLVertexArrayFake.h
WebGLVertexArrayGL.cpp
WebGLVertexArrayGL.h
XRWebGLLayer.cpp Bug 1596772 - Make nsICanvasRenderingContextInternal::GetParentObject off-screen compatible. r=aosmond 2021-12-14 14:21:10 +00:00
XRWebGLLayer.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00