Commit Graph

355 Commits

Author SHA1 Message Date
Butkovits Atila
45b7f3a396 Backed out 16 changesets (bug 1922506) for causing bustages at WebGLContext.cpp. CLOSED TREE
Backed out changeset 6c65c91ac5eb (bug 1922506)
Backed out changeset 436ba666d8d0 (bug 1922506)
Backed out changeset 4cc4f3c552f5 (bug 1922506)
Backed out changeset bb3750f2dd54 (bug 1922506)
Backed out changeset e2f3ebe49fcf (bug 1922506)
Backed out changeset e21674489b6c (bug 1922506)
Backed out changeset 755664733050 (bug 1922506)
Backed out changeset 0e37aed34cfd (bug 1922506)
Backed out changeset 779cc3d4d972 (bug 1922506)
Backed out changeset 355dd07c36a4 (bug 1922506)
Backed out changeset 7e1b5399826c (bug 1922506)
Backed out changeset 58ca4b4ddd1a (bug 1922506)
Backed out changeset 72a97745d6de (bug 1922506)
Backed out changeset 26717f25380d (bug 1922506)
Backed out changeset 71ad1af83798 (bug 1922506)
Backed out changeset 54f6a55f077b (bug 1922506)
2024-11-06 18:22:37 +02:00
Fatih
22f577ac29 Bug 1922506: Implement MOZ_debug.CONTEXT_TYPE extenstion. r=tjr,jgilbert,webidl,saschanaz
WSI_INFO is also very similar to this, but WSI_INFO contains a lot of info that we already collect, also there's a note about old Android devices crashing when queried, see https://searchfox.org/mozilla-central/rev/dca2603d55b5b39d3b8ab8e93c08b42563f5aad8/gfx/gl/GLContextProviderEGL.cpp#581-585

Differential Revision: https://phabricator.services.mozilla.com/D226809
2024-11-06 14:37:16 +00:00
Andrew Osmond
40d996236a Bug 1869182 - Make WebGL use SharedSurfacesChild/Parent to avoid copies with SourceSurfaceSharedData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D196105
2024-09-24 21:00:49 +00:00
Brad Werth
ffea0be19d Bug 1885446 Part 2: Make ConvertImage do colorSpace conversion. r=jgilbert
This uses existing gl math to do colorSpace conversion between
predefined DOM colorSpaces (sRGB and Display P3). It does not yet
accurately read the inbound colorSpace of the image -- it just assumes
it is sRGB.

Differential Revision: https://phabricator.services.mozilla.com/D218362
2024-09-10 23:27:57 +00:00
Brad Werth
ed9166951f Bug 1885446 Part 1: Stub the WebGL unpackColorSpace attribute. r=jgilbert,webidl,smaug
This is a stub so webidl reviewers can review this without having to review
the implementation. This is not attempting to do anything with
unpackColorSpace other than ensure that it is get and set in the same
ways that are used for drawingBufferColorSpace.

Differential Revision: https://phabricator.services.mozilla.com/D214053
2024-09-10 23:27:57 +00:00
Tom Ritter
ffb7757eb1 Bug 1899874: Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug
willReadFrequently does basically what we want for Canvas2D;
however it won't work on Windows _and_ it doesn't exist for WebGL

So we will just add our own (privileged) attribute we can set

Differential Revision: https://phabricator.services.mozilla.com/D212177
2024-08-07 00:31:45 +00:00
Jamie Nicol
e2c9335f53 Bug 1910516 - Treat webgl context as in-process when determining texture type if context is lost. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D218047
2024-07-30 21:03:10 +00:00
Kelsey Gilbert
74331bb704 Bug 1909019 - Use ParamTraits_TiedFields/_IsEnumCase in WebRenderMessageUtils instead of PlainOldDataSerializer. (partial) r=gw,mccr8,ahale
Differential Revision: https://phabricator.services.mozilla.com/D217508
2024-07-26 23:51:25 +00:00
Iulian Moraru
fb811cfefc Backed out 2 changesets (bug 1909019) for causing base-toolchains build bustages on Maybe.h. CLOSED TREE
Backed out changeset 6d4968c19bfe (bug 1909019)
Backed out changeset c1c101a0dde5 (bug 1909019)
2024-07-26 22:38:28 +03:00
Kelsey Gilbert
d455fa2c18 Bug 1909019 - Use ParamTraits_TiedFields/_IsEnumCase in WebRenderMessageUtils instead of PlainOldDataSerializer. (partial) r=gw,mccr8,ahale
Differential Revision: https://phabricator.services.mozilla.com/D217508
2024-07-26 16:54:46 +00:00
Kelsey Gilbert
ee4554d100 Bug 1908380 - Check for context loss in WebGLVertexArrayJS::WebGLVertexArrayJS. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D217634
2024-07-24 21:45:34 +00:00
Kelsey Gilbert
ef3160faba Bug 1909372 - Remove WebGLContextAttributes.colorSpace. r=gfx-reviewers,webidl,lsalzman,saschanaz
The WebGL spec never added this, and WebGL expects this to change via
drawingBufferColorSpace, so I don't think we should push for a spec
addition for .colorSpace.

Differential Revision: https://phabricator.services.mozilla.com/D217350
2024-07-23 18:02:41 +00:00
Jamie Nicol
33a638edb7 Bug 1898238 - Use SharedSurface_EGLImage for out-of-process webgl and accelerated canvas on Android. r=sotaro,jgilbert
Adds a pref wegb.enable-egl-image which is true by default. When
enabled, we use EGL images as the preferred texture type for
out-of-process webgl and accelerated canvas on Android. In-process
webgl will never attempt to use EGL images, regardless of the value of
the pref, as we are unable to send EGL images cross-process.

Differential Revision: https://phabricator.services.mozilla.com/D211293
2024-07-22 20:23:39 +00:00
Jamie Nicol
9526c88d05 Bug 1898238 - Don't call TexTypeForWebgl when initializing offscreen canvas. r=aosmond,jgilbert
This is only used if the OffscreenCanvas has a webgl context, in which
case it forwards the tex type to WebGLContext::PresentFrontBuffer(). A
later patch in this series will make TexTypeForWebgl() return a
different value depending on whether the webgl context is in-process
or remote, which is something that cannot be known when the
OffscreenCanvas is initialized. This patch therefore removes the field
from OffscreenCanvas and makes WebGLContext::PresentFrontBuffer() call
TexTypeForWebgl() itself.

Differential Revision: https://phabricator.services.mozilla.com/D211289
2024-07-22 20:23:37 +00:00
Iulian Moraru
724263a29c Backed out 5 changesets (bug 1898238) for causing non unified build bustages on RenderEGLImageTextureHost.cpp. CLOSED TREE
Backed out changeset ae8e94c8f819 (bug 1898238)
Backed out changeset 549abd685d11 (bug 1898238)
Backed out changeset 6359e558d765 (bug 1898238)
Backed out changeset 332c668a15bc (bug 1898238)
Backed out changeset 19fa8d4af66f (bug 1898238)
2024-07-22 20:27:45 +03:00
Jamie Nicol
5ee6cc0f0e Bug 1898238 - Use SharedSurface_EGLImage for out-of-process webgl and accelerated canvas on Android. r=sotaro,jgilbert
Adds a pref wegb.enable-egl-image which is true by default. When
enabled, we use EGL images as the preferred texture type for
out-of-process webgl and accelerated canvas on Android. In-process
webgl will never attempt to use EGL images, regardless of the value of
the pref, as we are unable to send EGL images cross-process.

Differential Revision: https://phabricator.services.mozilla.com/D211293
2024-07-22 16:02:34 +00:00
Jamie Nicol
ae417c018f Bug 1898238 - Don't call TexTypeForWebgl when initializing offscreen canvas. r=aosmond,jgilbert
This is only used if the OffscreenCanvas has a webgl context, in which
case it forwards the tex type to WebGLContext::PresentFrontBuffer(). A
later patch in this series will make TexTypeForWebgl() return a
different value depending on whether the webgl context is in-process
or remote, which is something that cannot be known when the
OffscreenCanvas is initialized. This patch therefore removes the field
from OffscreenCanvas and makes WebGLContext::PresentFrontBuffer() call
TexTypeForWebgl() itself.

Differential Revision: https://phabricator.services.mozilla.com/D211289
2024-07-22 16:02:33 +00:00
Kelsey Gilbert
2fc4d570e3 Bug 1885032 - Support EXT_depth_clamp in webgl. r=gfx-reviewers,webidl,lsalzman,smaug
Differential Revision: https://phabricator.services.mozilla.com/D215713
2024-07-17 21:12:23 +00:00
Cristian Tuns
eaf1eefde7 Backed out 2 changesets (bug 1899874) It is crashing the browser on windows and linux, Bug 1906687. CLOSED TREE
Backed out changeset cd0e7d18bbff (bug 1899874)
Backed out changeset 347c3fe4a18f (bug 1899874)
2024-07-09 17:48:05 -04:00
Kelsey Gilbert
8ee0e704a2 Bug 1892542 - Webgl e.g. createBuffer() made infallible. r=gfx-reviewers,webidl,saschanaz,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D208050
2024-07-08 17:24:12 +00:00
Kelsey Gilbert
800ebc4c42 Bug 1784338 - Clamp webgl.blendColor in no-ext webgl1. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D215672
2024-07-03 20:25:23 +00:00
Tom Ritter
e336c97393 Bug 1899874: Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug
willReadFrequently does basically what we want for Canvas2D;
however it won't work on Windows _and_ it doesn't exist for WebGL

So we will just add our own (privileged) attribute we can set

Differential Revision: https://phabricator.services.mozilla.com/D212177
2024-07-03 08:29:51 +00:00
Stanca Serban
81b1ce4a56 Backed out 20 changesets (bug 1900828, bug 1900863, bug 1902359, bug 1901771, bug 1902671, bug 1901291, bug 1902003, bug 1901799, bug 1897271, bug 1901260, bug 1899874, bug 1903609, bug 1902086, bug 1902364) for causing multiple failures. CLOSED TREE
Backed out changeset 93cd1edda657 (bug 1900828)
Backed out changeset 693209b2919f (bug 1899874)
Backed out changeset b73df6e562de (bug 1899874)
Backed out changeset a93ca984ca88 (bug 1903609)
Backed out changeset 8303598ec6b0 (bug 1903609)
Backed out changeset e3a3c98b34fd (bug 1903609)
Backed out changeset 962fe23bb97a (bug 1903609)
Backed out changeset 00f2e924c9f2 (bug 1903609)
Backed out changeset 0ade4bbe618d (bug 1901291)
Backed out changeset a13f96530518 (bug 1901260)
Backed out changeset 510bc857cdf4 (bug 1902671)
Backed out changeset 754801e10b4b (bug 1902364)
Backed out changeset 7dc2bd362cb9 (bug 1902359)
Backed out changeset 502943b3d954 (bug 1902086)
Backed out changeset 1368337eb6d5 (bug 1902086)
Backed out changeset 0add6564e69b (bug 1902003)
Backed out changeset 929d9508ad19 (bug 1901799)
Backed out changeset 5baeea7c14f6 (bug 1901771)
Backed out changeset 8cf0f72c6a98 (bug 1897271)
Backed out changeset f32d78084462 (bug 1900863)
2024-06-25 16:08:06 +03:00
Tom Ritter
939c788e8b Bug 1899874: Add a privileged forceSoftwareRendering attribute to Canvas Attributes. r=jgilbert,webidl,smaug
willReadFrequently does basically what we want for Canvas2D;
however it won't work on Windows _and_ it doesn't exist for WebGL

So we will just add our own (privileged) attribute we can set

Differential Revision: https://phabricator.services.mozilla.com/D212177
2024-06-25 11:53:33 +00:00
Kelsey Gilbert
f72ec6e498 Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale
Differential Revision: https://phabricator.services.mozilla.com/D207651
2024-05-06 23:36:51 +00:00
Stanca Serban
8996a6a522 Backed out changeset 995596d4362c (bug 1885447) for causing build bustages in AutoMappable.h. CLOSED TREE 2024-04-23 22:19:00 +03:00
Kelsey Gilbert
7393b7c768 Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale
Differential Revision: https://phabricator.services.mozilla.com/D207651
2024-04-23 16:54:05 +00:00
Kelsey Gilbert
d280c37494 Bug 1887335 - ClientWaitSync max-timeout check move to child, remove from parent. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D206381
2024-04-02 20:36:26 +00:00
Kelsey Gilbert
3590c64ad0 Bug 1887335 - ClientWaitSync warns when forgetting to flush. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D206296
2024-04-02 20:36:26 +00:00
Kelsey Gilbert
4a79a6f495 Bug 1887335 - AutoEnqueueFlush in FenceSync, EnqueueError/Warning. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D206295
2024-04-02 20:36:25 +00:00
Kelsey Gilbert
e4080e620a Bug 1887335 - Poll=4ms for WebGLSync completion, async-notify child. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D206294
2024-04-02 20:36:25 +00:00
Lee Salzman
d1022ace1c Bug 1881738 - Clean up ClientWebGLContext::GetFrontBuffer sync handling. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D206304
2024-04-02 15:07:46 +00:00
Lee Salzman
975610c0ab Bug 1881738 - Don't send invalid remote texture owner id when WebGLChild is destroyed. r=aosmond
It seems like Canvas2D and WebGPU already avoid sending over invalid owner ids in GetFrontBuffer.
WebGL, however, can still blindly send an invalid texture owner id when the actor is being destroyed,
but the WebGL context is still alive.

Differential Revision: https://phabricator.services.mozilla.com/D206276
2024-04-01 20:34:25 +00:00
Kelsey Gilbert
af33d3ce1a Bug 1886214 - Cache PWebGL::IsEnabled. r=gfx-reviewers,lsalzman,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D205091
2024-03-21 17:37:41 +00:00
Narcis Beleuzu
a420dc78ba Backed out changeset 68318849486e (bug 1886214) for webgl failure on test_2_conformance2__extensions__oes-draw-buffers-indexed.html 2024-03-20 04:14:02 +02:00
unknown
8b4d30f9af Bug 1886214 - Cache PWebGL::IsEnabled. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D205091
2024-03-20 01:22:49 +00:00
unknown
6b54094ea8 Bug 1885028 - PlainOldDataSerializer use removed from dom/canvas. r=gfx-reviewers,lsalzman,ahale
Differential Revision: https://phabricator.services.mozilla.com/D204432
2024-03-14 00:21:23 +00:00
Kelsey Gilbert
ecea021dd3 Bug 1883225 - webgl.texSubImage(video): re-enable gpu-blit for RGBA, and RGB iff RGB8+SRGB8 renderable. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D203698
2024-03-09 05:35:20 +00:00
Kelsey Gilbert
8ef95f8d10 Bug 1878930 - s/RawBuffer/Span/: TexImage: Use span, fix dtwebgl callers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202027
2024-02-29 00:37:30 +00:00
Kelsey Gilbert
bace796669 Bug 1878930 - s/RawBuffer/Span/: TexImage: GetRangeFromData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202025
2024-02-29 00:37:29 +00:00
Kelsey Gilbert
73a4bedb0b Bug 1878930 - s/RawBuffer/Span/: UniformData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202024
2024-02-29 00:37:28 +00:00
Kelsey Gilbert
d9f415a3d4 Bug 1878930 - s/RawBuffer/Span/: ReadPixels. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202023
2024-02-29 00:37:28 +00:00
Kelsey Gilbert
001a04e5b2 Bug 1878930 - s/RawBuffer/Span/: Buffer(Sub)Data, Invalidate(Sub)Framebuffer. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202022
2024-02-29 00:37:28 +00:00
zhanghe9702
5a12a40dd4 Bug 1881896 - fixed FuncScope of ClientWebGLContext::BindAttribLocation, just correct function name. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D202652
2024-02-28 17:47:19 +00:00
Sandor Molnar
d9c4b21b0d Backed out 7 changesets (bug 1878930) for causing build bustages @ dom/canvas/WebGLTypes.h CLOSED TREE
Backed out changeset 631db0feebb4 (bug 1878930)
Backed out changeset 72ab4dbbf8ed (bug 1878930)
Backed out changeset e5119acd8c8f (bug 1878930)
Backed out changeset 3cd4b2423281 (bug 1878930)
Backed out changeset 4a5512ff4424 (bug 1878930)
Backed out changeset 6f5c64075e31 (bug 1878930)
Backed out changeset fb3b3487a529 (bug 1878930)
2024-02-20 21:25:02 +02:00
Kelsey Gilbert
15143f68a7 Bug 1878930 - s/RawBuffer/Span/: TexImage: Use span, fix dtwebgl callers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202027
2024-02-20 17:59:08 +00:00
Kelsey Gilbert
2769782e2f Bug 1878930 - s/RawBuffer/Span/: TexImage: GetRangeFromData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202025
2024-02-20 17:59:07 +00:00
Kelsey Gilbert
2a1d0926b2 Bug 1878930 - s/RawBuffer/Span/: UniformData. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202024
2024-02-20 17:59:07 +00:00
Kelsey Gilbert
c50cc3dbf5 Bug 1878930 - s/RawBuffer/Span/: ReadPixels. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202023
2024-02-20 17:59:07 +00:00
Kelsey Gilbert
d6b80ba920 Bug 1878930 - s/RawBuffer/Span/: Buffer(Sub)Data, Invalidate(Sub)Framebuffer. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202022
2024-02-20 17:59:06 +00:00