Граф коммитов

595 Коммитов

Автор SHA1 Сообщение Дата
sotaro 80a705656a Bug 1743930 - Remove unused TextureAllocationFlags flag handling r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D132648
2021-12-02 07:08:43 +00:00
Alexandru Michis dcb0a66282 Backed out changeset d889e102b481 (bug 1743930) for causing mda failures in DeviceManagerDx.cpp 2021-12-02 05:42:06 +02:00
sotaro 639a9cd58e Bug 1743930 - Remove unused TextureAllocationFlags flag handling r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D132648
2021-12-02 02:42:00 +00:00
sotaro d19f650408 Bug 1743743 - Remove TextureReadbackSink and ReadbackManagerD3D11 r=gfx-reviewers,nical
TextureReadbackSink and ReadbackManagerD3D11 are not used.

Differential Revision: https://phabricator.services.mozilla.com/D132542
2021-12-01 09:11:30 +00:00
Nika Layzell 26555d958a Bug 1734739 - Part 1: Stop requiring otherpid for ShareTo, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D128218
2021-11-24 17:56:00 +00:00
Nika Layzell e8759da1c8 Bug 1734735 - Part 6: Remove dead TextureSync code, r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D128215
2021-11-23 16:15:22 +00:00
sotaro 01cd151a04 Bug 1741775 - Remove LayersBackend::LAYERS_OPENGL r=gfx-reviewers,nical
LayersBackend::LAYERS_OPENGL is not used any more.

Code under widget/uikit is dead code.

Differential Revision: https://phabricator.services.mozilla.com/D131461
2021-11-20 22:52:14 +00:00
sotaro 136d8c49e7 Bug 1741123 - Remove LayersBackend::LAYERS_D3D11 r=gfx-reviewers,bradwerth,nical
Remove LayersBackend::LAYERS_D3D11 is not used any more.

Differential Revision: https://phabricator.services.mozilla.com/D131107
2021-11-18 21:27:48 +00:00
Nika Layzell d73755617d Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.

This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.

Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-09 14:17:32 +00:00
Cristian Tuns cbd178830f Backed out 10 changesets (bug 1732343) for causing coverage build bustages (Bug 1739590).
Backed out changeset bba94c79f3e1 (bug 1732343)
Backed out changeset d30fa1e1f605 (bug 1732343)
Backed out changeset ed0b4f757c4b (bug 1732343)
Backed out changeset a272da134c34 (bug 1732343)
Backed out changeset ccb259d73843 (bug 1732343)
Backed out changeset a292990b62de (bug 1732343)
Backed out changeset 7d1854782ca8 (bug 1732343)
Backed out changeset 29eaabd9ffb3 (bug 1732343)
Backed out changeset 1aa26657a7a6 (bug 1732343)
Backed out changeset 7a6708dc620a (bug 1732343)
2021-11-05 07:21:04 -04:00
Nika Layzell b8279164db Bug 1732343 - Part 2: Migrate all uses of base::FileDescriptor to UniqueFileHandle, r=handyman
This is useful for the following parts, as UniqueFileHandle is a cross-platform
type which can also be used to support transferring HANDLEs between processes.

This change requires fairly sweeping changes to existing callsites, which
previously did not require owning access to the handle types when transferring.
For the most part these changes were straightforward, but manual.

Differential Revision: https://phabricator.services.mozilla.com/D126564
2021-11-04 19:20:17 +00:00
Matt Woodrow c19e47f6c4 Bug 1729841 - Remove TextureDIB. r=jgilbert,gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D125023
2021-09-15 04:09:43 +00:00
Bob Owen bda2b82dc9 Bug 1730598: Flush and DetachAllSnapshots in TextureClient::EndDraw. r=lsalzman
This is required to make sure dependents are updated.

Differential Revision: https://phabricator.services.mozilla.com/D125529
2021-09-14 16:11:41 +00:00
Bob Owen 74b9880c08 Bug 1709603: Use a separate permanent canvas back buffer when texture has synchronization. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D125201
2021-09-10 16:37:05 +00:00
Tetsuharu Ohzeki 1de09d73e8 Bug 1729817 - Remove unused TextureClient::PrintInfo(). r=gfx-reviewers,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D125017
2021-09-09 15:46:19 +00:00
Nicolas Silva 7bf2ebdc97 Bug 1728350 - Remove X11 TextureClient/Host. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D124080
2021-09-01 17:07:45 +00:00
Matt Woodrow 9c596f7090 Bug 1727488 - Remove ShadowLayerForwarder. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123594
2021-08-26 04:59:56 +00:00
Butkovits Atila c83e348e26 Backed out 2 changesets (bug 1727488, bug 1727489) for causing bustages on KnowsCompositor.cpp. CLOSED TREE
Backed out changeset 5a00db1b7a6a (bug 1727489)
Backed out changeset 13686567e748 (bug 1727488)
2021-08-26 04:49:16 +03:00
Matt Woodrow 12aab272c2 Bug 1727488 - Remove ShadowLayerForwarder. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123594
2021-08-26 00:25:20 +00:00
Iulian Moraru 8dd046d72c Backed out changeset caf7cc8417e8 (bug 1727488) for causing bp-hybrid bustages. CLOSED TREE 2021-08-25 18:17:37 +03:00
Matt Woodrow 69af86dd8e Bug 1727488 - Remove ShadowLayerForwarder. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D123594
2021-08-25 13:57:04 +00:00
Jeff Muizelaar bc83bb5886 Bug 1726672 - Remove PaintThread. r=mattwoodrow
Basically just rm PaintThread.cpp and get things to build.

Differential Revision: https://phabricator.services.mozilla.com/D123170
2021-08-20 13:20:44 +00:00
sotaro db4c4dc4b7 Bug 1696156 - Remove TextureFlags::DEALLOCATE_MAIN_THREAD flag r=nical
TextureFlags::DEALLOCATE_MAIN_THREAD seems not necessary since Bug 1200595 fix,. It aligned how TextureClient is deallocated.

Differential Revision: https://phabricator.services.mozilla.com/D107050
2021-03-08 13:15:05 +00:00
sotaro 6f458ab05e Bug 1695846 - Remove unused flags of TextureClient r=nical
Flags were used for WebGL SharedSurface

Differential Revision: https://phabricator.services.mozilla.com/D106879
2021-03-02 10:48:55 +00:00
Bob Owen be799e35a1 Bug 1692894 p1: Don't create devices for canvas when remote canvas is in use. r=jrmuizel
This also adds related DLLs to be delay loaded to xul's moz.build. This means
that if we don't create the devices they are not loaded at all.

Differential Revision: https://phabricator.services.mozilla.com/D105630
2021-02-25 15:10:57 +00:00
Gerald Squelart 2416d881e2 Bug 1691589 - Reduce reliance on GeckoProfiler.h when only labels (and maybe markers) are needed - r=necko-reviewers,geckoview-reviewers,sg,agi,florian
There are no code changes, only #include changes.
It was a fairly mechanical process: Search for all "AUTO_PROFILER_LABEL", and in each file, if only labels are used, convert "GeckoProfiler.h" into "ProfilerLabels.h" (or just add that last one where needed).
In some files, there were also some marker calls but no other profiler-related calls, in these cases "GeckoProfiler.h" was replaced with both "ProfilerLabels.h" and "ProfilerMarkers.h", which still helps in reducing the use of the all-encompassing "GeckoProfiler.h".

Differential Revision: https://phabricator.services.mozilla.com/D104588
2021-02-16 04:44:19 +00:00
Simon Giesecke e06a2d56fc Bug 1680269 - Fix build when building without MOZ_GECKO_PROFILER. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D99063
2020-12-09 08:58:06 +00:00
stransky 2b71bad118 Bug 1675453 [Linux] Use GetDMABufDevice() instead of gfxPlatformGtk() to get DMABuf configuration, r=jhorak
Depends on D95995

Differential Revision: https://phabricator.services.mozilla.com/D95996
2020-11-06 14:13:06 +00:00
Jean-Yves Avenard 5de404e405 Bug 1595994 - P1D. Properly serialize display size when sending image over IPC. r=mattwoodrow
The code always assumed that the size of the image with the Y plane dimensions, which, while often the case, isn't correct.
We remove the assertions that the display offset was always (0,0) and properly carry the actual data over IPC.

Remoting the theora decoder and enabling fast video copy exposed several other related issues in the various D3D11 image types.
Various WPT uses theora YUV44 images (because we do not support YUV444 H264 ones). Those images are made of 32 pixels planes with a display size set to 20 pixels. Prior P1D the backend image was a ShareYCbCrPlanar image which correctly handled the size settings.

Like the image serializer, the various D3D11 images always assumed that the Y plane size was the image size.

This however expose existing issues where the offset position of the display is completely ignored for some image type. See bug 1669054

All those problems explain why sometimes we displayed more pixels than we should have.

Depends on D91914

Differential Revision: https://phabricator.services.mozilla.com/D92233
2020-10-20 23:30:04 +00:00
Andrew Osmond 90f11a9082 Bug 1668575 - Disable DMABUF with software WebRender. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D93623
2020-10-15 03:41:46 +00:00
Kartikaya Gupta 2f71360177 Bug 1666802 - Move the SurfaceFormat serializer into an ostream operator. r=mattwoodrow
This also adds some missing types to the serializer.

Differential Revision: https://phabricator.services.mozilla.com/D93144
2020-10-11 23:22:28 +00:00
Kartikaya Gupta 99ea4a1c2a Bug 1666802 - Move the TextureFlags serializer into an ostream operator. r=mattwoodrow
This also adds all the missing flags to the serializer.

Differential Revision: https://phabricator.services.mozilla.com/D93143
2020-10-11 21:19:32 +00:00
Matt Woodrow bd855a3f9e Bug 1668713 - Disable D2D canvas when using SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D92171
2020-10-07 21:07:06 +00:00
Narcis Beleuzu d837dcf204 Backed out changeset d9cf68ab07e9 (bug 1668713) for valgrind bustages on TextureClient.cpp 2020-10-06 05:51:45 +03:00
Matt Woodrow a4d2cce5dd Bug 1668713 - Disable D2D canvas when using SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D92171
2020-10-02 15:13:13 +00:00
Kartikaya Gupta 0c8da73b4f Bug 1667863 - Replace AppendToString of IntSizeTyped with ostream usage. r=mattwoodrow
Depends on D91655

Differential Revision: https://phabricator.services.mozilla.com/D91656
2020-09-29 02:58:35 +00:00
sotaro 575dbde8c0 Bug 1665257 - Add ASSERT to TextureClient::InitIPDLActor() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D90347
2020-09-16 09:47:42 +00:00
sotaro 1369377c0a Bug 1650389 - Add gfx::BackendType check to GetTextureType() r=jrmuizel
TextureType::AndroidHardwareBuffer usage needs gfx::BackendType check. gfxVars::UseAHardwareBufferContent() requests BackendSelector::Content.

Differential Revision: https://phabricator.services.mozilla.com/D82191
2020-07-06 14:50:14 +00:00
sotaro ce3a41744b Bug 1648411 - Add AHardwareBuffer layer buffer support on android r=jnicol
AHardwareBuffer is supported since Android O(APIVersion 26). Implementation of AndroidHardwareBufferTextureData referred AndroidNativeWindowTextureData. Implementation of AndroidHardwareBufferTextureHost referred obsoleted GrallocTextureHost.

android fence is not supported yet.

Differential Revision: https://phabricator.services.mozilla.com/D81808
2020-07-02 13:43:19 +00:00
Martin Stransky 1a8c767e6f Bug 1649120 [Linux] Rename Wayland/DMABuf in gfx code, r=sotaro
We change DMABuf config keys from Wayland specific to universal ones as they can be used in both X11 and Wayland backends.

Depends on D81515

Differential Revision: https://phabricator.services.mozilla.com/D81516
2020-07-01 11:22:42 +00:00
Bob Owen 3ba9a0b436 Bug 1641722: Deactivate remote canvas 2D when device creation or stream read failure occurs. r=jrmuizel,chutten
This also adds telemetry probes to track:
* number of times remote canvas 2D is activated
* number of times remote canvas 2D is deactivated due to device creation failure
* number of times remote canvas 2D is deactivated due to a stream read error.

Differential Revision: https://phabricator.services.mozilla.com/D81032
2020-06-26 11:37:31 +00:00
Dorel Luca caf588721d Backed out changeset 8570bd4a1f0b (bug 1641722) for Build bustage in telemetry/.deps/TelemetryScalarData.h. CLOSED TREE 2020-06-26 13:26:54 +03:00
Bob Owen d3745901a1 Bug 1641722: Deactivate remote canvas 2D when device creation or stream read failure occurs. r=jrmuizel,chutten
This also adds telemetry probes to track:
* number of times remote canvas 2D is activated
* number of times remote canvas 2D is deactivated due to canvas device creation failure
* number of times remote canvas 2D is deactivated due to a stream read error.

Differential Revision: https://phabricator.services.mozilla.com/D81032
2020-06-26 08:22:12 +00:00
Jean-Yves Avenard 8d2ff29220 Bug 1647133 - P4. Use nsISerialEventTarget where it's actually that. r=mattwoodrow
We are here, always actually dealing with the compositor thread, with the exception of VRDisplayPresentation which is passing  the main thread.

Depends on D80422

Differential Revision: https://phabricator.services.mozilla.com/D80423
2020-06-22 09:38:34 +00:00
Martin Stransky 2b91832e28 Bug 1645704 [Wayland] Rename WaylandDMABufSurface to DMABufSurface at gxf, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D79637
2020-06-21 13:59:17 +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