Simon Giesecke
8c0d8f3f46
Bug 1676370 - Remove unused includes from GLContext.h. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D96542
Depends on D96541
2020-11-23 16:09:28 +00:00
Simon Giesecke
971b645fe3
Bug 1660470 - Add missing include directives/forward declarations. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Andrew Osmond
ca9f3b661d
Bug 1677165 - Add support for partial present to GLX. r=kvark,jgilbert
...
This adds support for GLX_EXT_buffer_age if available to minimize how
much must be redrawn when using GLX.
Differential Revision: https://phabricator.services.mozilla.com/D93098
2020-11-13 18:41:41 +00:00
Steven Michaud
69821ba2af
Bug 1666293 - Flush explicitly before deleting textures. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D90893
2020-09-21 20:24:51 +00:00
Jeff Gilbert
79587135ae
Bug 1661328
- Enable Mac webgl-ipc tests on Central. r=jmaher,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D89038
2020-09-01 23:29:01 +00:00
Jeff Gilbert
62f6cc5d9c
Bug 1659225 - Apply UNPACK_ params only after init. r=lsalzman
...
+ Add asserts that we are infact in the default state.
Differential Revision: https://phabricator.services.mozilla.com/D87964
2020-08-23 06:09:33 +00:00
Jeff Gilbert
e3e331e9ad
Bug 1658433 - Implement WebGL draft extension EXT_texture_norm16. r=lsalzman,webidl,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D86630
2020-08-12 15:19:17 +00:00
Jeff Gilbert
a824ab4d81
Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
...
Have webrender use its own EGLDisplay, letting WebGL use a different
one.
Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-07 07:14:46 +00:00
Mihai Alexandru Michis
639b2bd075
Backed out changeset f1f10f791e99 (bug 1656034) for causing bustages in DMABufSurface.cpp
...
CLOSED TREE
2020-08-07 02:36:33 +03:00
Jeff Gilbert
b5d6906473
Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
...
Have webrender use its own EGLDisplay, letting WebGL use a different
one.
Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-06 22:53:53 +00:00
Mihai Alexandru Michis
4719cf3e7d
Backed out changeset 06538f141210 (bug 1656034) for causing bustages in GLContextProviderEGL.cpp
...
CLOSED TREE
2020-08-07 00:19:32 +03:00
Jeff Gilbert
78c66237bb
Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
...
Have webrender use its own EGLDisplay, letting WebGL use a different
one.
Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-06 19:56:43 +00:00
Robert Mader
dd996a396b
Bug 1656472 - [X11] Drop CopySubBufferMESA and add SwapBuffersWithDamage support, r=nical
...
This largely reverts D81868, only keeping what's needed to make SwapBuffersWithDamage
work, and also adds BufferAge support to RenderCompositorOGL.
Differential Revision: https://phabricator.services.mozilla.com/D85565
2020-07-31 16:13:54 +00:00
Dzmitry Malyshau
3d822b4eda
Bug 1652972 - Mark EGL context as lost on Shutdown() r=aosmond
...
This is meant to save us in cases where the message loop in GPU process
receives commands related to resources that point to the old EGL context
that was just shut down. Since the symbols are erased, we'd end up with
trying to execute a nullptr on `MakeCurrent()`. With marking the context
as lost, however, no symbols will be accessed.
Differential Revision: https://phabricator.services.mozilla.com/D84868
2020-07-29 02:33:54 +00:00
Emilio Cobos Álvarez
ff61891772
Bug 1653011 - Simplify and make WeakPtr<Derived> usable and compact. r=froydnj,sg,geckoview-reviewers,jgilbert,kvark,snorp
...
Having two classes in the inheritance chain inherit from SupportsWeakPtr
now won't compile, but you can use WeakPtr<Derived> when any base class
inherits from SupportsWeakPtr.
Differential Revision: https://phabricator.services.mozilla.com/D83674
2020-07-23 14:51:46 +00:00
Nicolas Silva
eb34985ecc
Bug 1625070 - Use glxCopySubBufferMESA when available if partial present and WebRender are enabled on GLX. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81868
2020-07-16 14:44:41 +00:00
Narcis Beleuzu
2f4cbd537c
Backed out changeset 74a508f9bac4 (bug 1625070) for wr failure on position-sticky-scroll-reposition.html . CLOSED TREE
2020-07-16 13:03:13 +03:00
Nicolas Silva
8f37bf747b
Bug 1625070 - Use glxCopySubBufferMESA when available if partial present and WebRender are enabled on GLX. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D81868
2020-07-15 18:20:48 +00:00
aardgoose
63856c61b2
Bug 1536674 - Expose KHR_parallel_shader_compile in glx/gl r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D32056
2020-07-06 12:48:47 +00:00
Sylvestre Ledru
85c05f3a47
Bug 1519636 - Reformat recent changes to the Google coding style r=andi
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D79795
2020-06-16 14:37:23 +00:00
Jeff Gilbert
82ef5d6cc1
Bug 1632249 - Check weakptr value before deref in gl::Texture/Renderbuffer. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D79626
2020-06-15 18:26:17 +00:00
Jeff Gilbert
4232c2c466
Bug 1632249 - Replace GLContextProvider::CreateOffscreen with GLContext::CreateOffscreenDefaultFb. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D79390
2020-06-15 18:26:12 +00:00
Jeff Gilbert
a97c615de2
Bug 1632249 - Support compositing out-of-process WebGL. r=handyman,lsalzman,nical,geckoview-reviewers,agi,imanol
...
* Majorly simplity CanvasRenderer
* Replace GLScreenBuffer with trivial GLSwapChain
* Use descriptor structs so that future SharedSurface changes aren't so painful
to propagate
* Mortgage/strip out more OffscreenCanvas code for now
Differential Revision: https://phabricator.services.mozilla.com/D75055
2020-06-15 18:25:55 +00:00
Dorel Luca
255f146f14
Backed out 7 changesets (bug 1632249) for Gtest perma chrash in [@ mozilla::BlockingResourceBase::CheckAcquire()]. CLOSED TREE
...
Backed out changeset 4ff99aab3ee8 (bug 1632249)
Backed out changeset d5b7fe789001 (bug 1632249)
Backed out changeset 64fbb616a0f3 (bug 1632249)
Backed out changeset 6f19f43e0a0b (bug 1632249)
Backed out changeset 073302d26c5e (bug 1632249)
Backed out changeset 7c94d37c446e (bug 1632249)
Backed out changeset 204b899f436d (bug 1632249)
2020-06-11 19:44:20 +03:00
Jeff Gilbert
cf3c8fedea
Bug 1632249 - Support compositing out-of-process WebGL. r=handyman,lsalzman,nical,geckoview-reviewers,agi,imanol
...
* Majorly simplity CanvasRenderer
* Replace GLScreenBuffer with trivial GLSwapChain
* Use descriptor structs so that future SharedSurface changes aren't so painful
to propagate
* Mortgage/strip out more OffscreenCanvas code for now
Differential Revision: https://phabricator.services.mozilla.com/D75055
2020-06-11 06:37:35 +00:00
Mihai Alexandru Michis
59ad7ed333
Backed out 6 changesets (bug 1632249) for causing bustages in CanvasRenderingContext2D.cpp
...
CLOSED TREE
Backed out changeset c93972b05d4f (bug 1632249)
Backed out changeset 04f5127c85d5 (bug 1632249)
Backed out changeset b15d91e64a25 (bug 1632249)
Backed out changeset 71ad2ed8e9ba (bug 1632249)
Backed out changeset 6e9a89ead3a5 (bug 1632249)
Backed out changeset dd00e2da3a0f (bug 1632249)
2020-06-11 02:43:35 +03:00
Jeff Gilbert
9b09e54345
Bug 1632249 - Support compositing out-of-process WebGL. r=handyman,lsalzman,nical,geckoview-reviewers,agi,imanol
...
* Majorly simplity CanvasRenderer
* Replace GLScreenBuffer with trivial GLSwapChain
* Use descriptor structs so that future SharedSurface changes aren't so painful
to propagate
* Mortgage/strip out more OffscreenCanvas code for now
Differential Revision: https://phabricator.services.mozilla.com/D75055
2020-06-10 22:21:02 +00:00
Dorel Luca
7289b66d6f
Backed out 4 changesets (bug 1632249) for Build bustages and mda failures. CLOSED TREE
...
Backed out changeset cdaa8a4e9e36 (bug 1632249)
Backed out changeset 9ff26bcc580c (bug 1632249)
Backed out changeset 16d84439756f (bug 1632249)
Backed out changeset bbfe23c61add (bug 1632249)
2020-06-09 03:19:48 +03:00
Jeff Gilbert
de6377896c
Bug 1632249 - Support compositing out-of-process WebGL. r=handyman,lsalzman,nical,geckoview-reviewers,agi,imanol
...
* Majorly simplity CanvasRenderer
* Replace GLScreenBuffer with trivial GLSwapChain
* Use descriptor structs so that future SharedSurface changes aren't so painful
to propagate
* Mortgage/strip out more OffscreenCanvas code for now
Differential Revision: https://phabricator.services.mozilla.com/D75055
2020-06-08 20:34:15 +00:00
sotaro
74fce68a04
Bug 1632096 - Forward WebRender gl(ANGLE) error message to gfx critical note r=gw
...
Differential Revision: https://phabricator.services.mozilla.com/D72123
2020-04-24 11:32:05 +00:00
Narcis Beleuzu
3eaaf8fd77
Backed out changeset d84032238d5f (bug 1632096) for bustages on GLContext.h . CLOSED TREE
2020-04-24 05:46:10 +03:00
sotaro
41ebbb733f
Bug 1632096 - Forward WebRender gl(ANGLE) error message to gfx critical note r=gw
...
Differential Revision: https://phabricator.services.mozilla.com/D72123
2020-04-23 22:58:27 +00:00
Jeff Gilbert
b8111d92ec
Bug 1615751 - Prune unused parts of GLScreenBuffer. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D62979
--HG--
extra : moz-landing-system : lando
2020-02-15 22:48:36 +00:00
Arthur Iakab
fa5241b0f1
Backed out changeset 57fa22ef0461 (bug 1615751) for multiple build bustages.
...
DONTBUILD
CLOSED TREE
2020-02-15 22:19:55 +02:00
Jeff Gilbert
739ec46d60
Bug 1615751 - Prune unused parts of GLScreenBuffer. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D62979
--HG--
extra : moz-landing-system : lando
2020-02-15 04:15:21 +00:00
Greg V
e5dcb46da9
Bug 1615465 - fix missing nsString include in GLContext r=aosmond
...
Differential Revision: https://phabricator.services.mozilla.com/D62843
--HG--
extra : moz-landing-system : lando
2020-02-14 00:25:19 +00:00
Emilio Cobos Álvarez
d7841a5f17
Bug 1614208 - Remove some include dependencies in nsStyleConsts.h. r=jfkthame,jgilbert
...
We include it everywhere because it's included from gfxTypes.h.
This should avoid including all the generated bindings _everywhere_.
Differential Revision: https://phabricator.services.mozilla.com/D62174
--HG--
extra : moz-landing-system : lando
2020-02-11 01:23:37 +00:00
Greg V
2befd54d63
Bug 1484812 - Use SwapBuffersWithDamage on EGL platforms (Wayland/Android) r=jnicol,mstange,jgilbert
...
EGL_KHR_swap_buffers_with_damage (or EGL_EXT_swap_buffers_with_damage)
is an EGL extension that allows the application to inform the display
server (system compositor) which areas of the window have changed.
This commit implements support for that extension in the layers compositor.
The layers compositor always renders the whole frame, so we're only getting
the benefit of not redrawing unchanged areas *in the system compositor*,
not actually doing partial invalidation/compositing,
but that makes the implementation simpler (no need to track buffer age).
Differential Revision: https://phabricator.services.mozilla.com/D51517
--HG--
extra : moz-landing-system : lando
2020-01-30 10:46:54 +00:00
Martin Stransky
508b813eb7
Bug 1608379 [Wayland] Don't use LOCAL_GL_TEXTURE_EXTERNAL on Wayland, r=sotaro
...
Differential Revision: https://phabricator.services.mozilla.com/D59480
--HG--
extra : moz-landing-system : lando
2020-01-11 17:50:20 +00:00
Jeff Gilbert
581338764d
Bug 1557577 - Remove GLContext::fDrawRangeElements. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D34104
--HG--
extra : moz-landing-system : lando
2019-06-07 10:20:19 +00:00
Jeff Gilbert
047e98938e
Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
...
Also disable clang-format for gfx/gl/GLConsts.h.
Differential Revision: https://phabricator.services.mozilla.com/D28168
--HG--
extra : moz-landing-system : lando
2019-05-23 20:48:21 +00:00
Mihai Alexandru Michis
354eec452c
Backed out changeset a649f69f29df (bug 1536672) for failing crashtest at WebGLContextValidate.cpp. CLOSED TREE
2019-05-23 10:57:29 +03:00
Jeff Gilbert
fb7050f9bf
Bug 1536672 - Implement WebGL OVR_multiview2 behind draft flag. r=lsalzman,qdot
...
Also disable clang-format for gfx/gl/GLConsts.h.
Differential Revision: https://phabricator.services.mozilla.com/D28168
--HG--
extra : moz-landing-system : lando
2019-05-23 02:43:11 +00:00
Jeff Gilbert
544759b391
Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D28266
--HG--
extra : moz-landing-system : lando
2019-04-22 19:58:52 +00:00
Jeff Gilbert
72f3e593fd
Bug 1539648 - Use ANGLE's CHROMIUM_color_buffer_float_rgba for WEBGL_color_buffer_float. r=lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D25139
--HG--
extra : moz-landing-system : lando
2019-03-27 21:42:56 +00:00
Sylvestre Ledru
4aa92e3091
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Jeff Gilbert
2f680de24a
Bug 1528396 - More precise GL symbol loading. r=lsalzman
...
In particular, don't fallback to loading symbols from any loaded
library.
Differential Revision: https://phabricator.services.mozilla.com/D20455
--HG--
extra : moz-landing-system : lando
2019-02-22 21:17:28 +00:00
Jeff Gilbert
d8d7ebde0c
Bug 1129354 - Implement draft extension OES_fbo_render_mipmap. r=lsalzman,qdot
...
Differential Revision: https://phabricator.services.mozilla.com/D20397
--HG--
extra : moz-landing-system : lando
2019-02-22 19:25:20 +00:00
Cosmin Sabou
6872844079
Backed out changeset e74b9560a9d4 (bug 1528396) for causing mochitest webgl failures on test_pixel_pack_buffer. CLOSED TREE
2019-02-21 04:39:09 +02:00
Jeff Gilbert
878881b125
Bug 1528396 - More precise GL symbol loading. r=lsalzman
...
In particular, don't fallback to loading symbols from any loaded
library.
Differential Revision: https://phabricator.services.mozilla.com/D20455
--HG--
extra : moz-landing-system : lando
2019-02-20 15:46:03 +00:00