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

26 Коммитов

Автор SHA1 Сообщение Дата
unknown 456d695946 Bug 1665289 - Convert WebGLChild's kDefaultCmdsShmemSize to a pref. r=lsalzman
Also reduce it from 100KB to 10KB, since we want more concurrency.

Differential Revision: https://phabricator.services.mozilla.com/D90358
2020-09-16 15:22:22 +00:00
David Parks df6398ff5c Bug 1659523: Free WebGL command shmem when actor is destroyed r=jgilbert
Using the Shmem after our actor has lost IPC capability (say, because the other endpoint crashed) will cause the content process to also crash.  ActorDestroy is where we detect that condition.

Differential Revision: https://phabricator.services.mozilla.com/D87352
2020-08-25 21:33:15 +00:00
Sylvestre Ledru 843f943758 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D85678
2020-08-02 15:29:15 +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
Jeff Gilbert f25a4cdbe8 Bug 1607940 - IPC TexImage. r=lsalzman,nika,handyman
Differential Revision: https://phabricator.services.mozilla.com/D83291
2020-07-21 22:57:01 +00:00
Jeff Gilbert 35f892e782 Bug 1607940 - Stand up webgl.out-of-process:true path. r=handyman,nika,froydnj
* Use clearer pref names.
* Default (and only support) IPDL dispatching.
* Make DispatchCommands async-only.
* Sync ipdl command per sync webgl entrypoint.
  * Eat the boilerplate cost, since there's not too many.
* Run SerializedSize off same path as Serialize.
* All shmem uploads go through normal DispatchCommands.
* Defer pruning of dead code for now so we can iterate quickly.
* Use Read/Write(begin,end) instead of (begin,size).
  * This would have prevented a bug where we read/wrote N*sizeof(T)*sizeof(T).

Differential Revision: https://phabricator.services.mozilla.com/D81495
2020-07-21 22:56:52 +00:00
Doug Thayer 13300d3228 Bug 1627075 - Include WebGLParent.h in WebGLChild.h r=handyman,jgilbert
Depends on D77634

Differential Revision: https://phabricator.services.mozilla.com/D79536
2020-07-08 02:46:46 +00:00
Narcis Beleuzu a182c015f5 Backed out 6 changesets (bug 1627075) for bustages on startupcache/StartupCache.cpp . CLOSED TREE
Backed out changeset 21605186687e (bug 1627075)
Backed out changeset e29b15980da2 (bug 1627075)
Backed out changeset eb5265addd5e (bug 1627075)
Backed out changeset dfd71f4ecb81 (bug 1627075)
Backed out changeset 13ecd68b3c0d (bug 1627075)
Backed out changeset 333d035afe92 (bug 1627075)
2020-07-07 23:30:48 +03:00
Doug Thayer 3a473583f8 Bug 1627075 - Include WebGLParent.h in WebGLChild.h r=handyman,jgilbert
Depends on D77634

Differential Revision: https://phabricator.services.mozilla.com/D79536
2020-07-07 17:04:34 +00:00
Mihai Alexandru Michis 87cb0ad6fa Backed out 6 changesets (bug 1627075) for causing bustages in StartupCache.cpp
CLOSED TREE

Backed out changeset fc144caf5d06 (bug 1627075)
Backed out changeset a345e05df151 (bug 1627075)
Backed out changeset 288a67aed661 (bug 1627075)
Backed out changeset 2cb021a493d8 (bug 1627075)
Backed out changeset 920398d1c3d3 (bug 1627075)
Backed out changeset ebdcd96a9d20 (bug 1627075)
2020-07-07 08:47:14 +03:00
Doug Thayer db15f70a3e Bug 1627075 - Include WebGLParent.h in WebGLChild.h r=handyman,jgilbert
Depends on D77634

Differential Revision: https://phabricator.services.mozilla.com/D79536
2020-07-07 04:36:34 +00:00
Noemi Erli b13f2bcb47 Backed out 7 changesets (bug 1627075) for causing @nsZipArchive crashes CLOSED TREE
Backed out changeset 9705b2759d45 (bug 1627075)
Backed out changeset 699212a443c3 (bug 1627075)
Backed out changeset 7ae4df10749c (bug 1627075)
Backed out changeset ece9a4223349 (bug 1627075)
Backed out changeset 6c4eedaa0d04 (bug 1627075)
Backed out changeset f5106898239f (bug 1627075)
Backed out changeset b6029c7c0016 (bug 1627075)
2020-07-02 14:05:53 +03:00
Doug Thayer 4505c2efac Bug 1627075 - Include WebGLParent.h in WebGLChild.h r=handyman,jgilbert
Depends on D77634

Differential Revision: https://phabricator.services.mozilla.com/D79536
2020-07-02 02:51:49 +00:00
Mihai Alexandru Michis bab20702a8 Backed out 6 changesets (bug 1627075) for causing failures regarding startupcache.
CLOSED TREE

Backed out changeset cf23b456ba12 (bug 1627075)
Backed out changeset b07887474f51 (bug 1627075)
Backed out changeset 65c0e6790a33 (bug 1627075)
Backed out changeset 6cd31f17a931 (bug 1627075)
Backed out changeset 0f0d1bd2a8ac (bug 1627075)
Backed out changeset 763a5a7b43a0 (bug 1627075)
2020-07-01 22:16:28 +03:00
Doug Thayer f6598088e1 Bug 1627075 - Include WebGLParent.h in WebGLChild.h r=handyman,jgilbert
Depends on D77634

Differential Revision: https://phabricator.services.mozilla.com/D79536
2020-07-01 17:10:05 +00:00
David Parks 744a8b7f58 Bug 1635956: Part 3 - Implement Shmem functionality in WebGL ProducerConsumerQueue r=jgilbert
Implements LookupSharedMemory and AllocShmem in ProducerConsumerQueue (and fixes a few minor build issues).  To be used in construction of a ProducerConsumerQueue, an actor has to subclass IPcqActor.

Differential Revision: https://phabricator.services.mozilla.com/D74974
2020-06-02 06:18:52 +00:00
David Parks 66aa1517ba Bug 1632283 : Part 1 - Extend IpdlQueue to allow caching async messages r=jgilbert
IpdlQueue currently sends an async Ipdl message for every async WebGL call.  This is a lot of overhead.  This patch buffers those calls so that they can be send in large batches when either a synchronous call happens or the client calls FlushAsyncCache.  The commands are then sent and processed in-order.

Differential Revision: https://phabricator.services.mozilla.com/D72047
2020-06-01 22:33:00 +00:00
Razvan Maries 6ed9617381 Backed out 2 changesets (bug 1632283) for build buistages on IpdlQueue.h CLOSED TREE
Backed out changeset bad8fd79458d (bug 1632283)
Backed out changeset 8cfbadcbe2e8 (bug 1632283)
2020-06-01 22:24:31 +03:00
David Parks 919d391caf Bug 1632283 : Part 1 - Extend IpdlQueue to allow caching async messages r=jgilbert
IpdlQueue currently sends an async Ipdl message for every async WebGL call.  This is a lot of overhead.  This patch buffers those calls so that they can be send in large batches when either a synchronous call happens or the client calls FlushAsyncCache.  The commands are then sent and processed in-order.

Differential Revision: https://phabricator.services.mozilla.com/D72047
2020-05-29 20:25:35 +00:00
Narcis Beleuzu ad3d073808 Backed out changeset 7e47a8d17381 (bug 1632283) for build bustages on IpdlQueue.h . CLOSED TREE 2020-05-29 07:03:36 +03:00
David Parks 56caa29a7f Bug 1632283 : Part 1 - Extend IpdlQueue to allow caching async messages r=jgilbert
IpdlQueue currently sends an async Ipdl message for every async WebGL call.  This is a lot of overhead.  This patch buffers those calls so that they can be send in large batches when either a synchronous call happens or the client calls FlushAsyncCache.  The commands are then sent and processed in-order.

Differential Revision: https://phabricator.services.mozilla.com/D72047
2020-05-28 17:00:09 +00:00
David Parks cbf4e1a5cc Bug 1621762: Part 7 - Add IpdlQueue actor traits to WebGLParent/WebGLChild r=jgilbert,jld
Adds IpdlQueue capability to PWebGL actors.  The WebGLChild, used in content processes, implements SyncProducerActor and AsyncConsumerActor because it sends (sync and async) messages and receives responses to them that it reads as async messages.  The WebGLParent, used in the compositor process, is a SyncConsumerActor and AsyncProducerActor for dual reasons.

Differential Revision: https://phabricator.services.mozilla.com/D68264
2020-04-30 22:24:44 +00:00
Daniel Varga 452acadb3b Backed out 7 changesets (bug 1621762) for causing build bustages at builds/worker/workspace/obj-build/dist/include/mozilla/dom/ProducerConsumerQueue.h
CLOSED TREE

Backed out changeset 03903e8f368e (bug 1621762)
Backed out changeset 21ef72486643 (bug 1621762)
Backed out changeset 70d103786c83 (bug 1621762)
Backed out changeset a3e1332998c3 (bug 1621762)
Backed out changeset 010f653b87d2 (bug 1621762)
Backed out changeset 0496adcb4582 (bug 1621762)
Backed out changeset 8d85420fd2e6 (bug 1621762)
2020-04-30 06:06:33 +03:00
David Parks 053f3b98ca Bug 1621762: Part 7 - Add IpdlQueue actor traits to WebGLParent/WebGLChild r=jgilbert,jld
Adds IpdlQueue capability to PWebGL actors.  The WebGLChild, used in content processes, implements SyncProducerActor and AsyncConsumerActor because it sends (sync and async) messages and receives responses to them that it reads as async messages.  The WebGLParent, used in the compositor process, is a SyncConsumerActor and AsyncProducerActor for dual reasons.

Differential Revision: https://phabricator.services.mozilla.com/D68264
2020-04-30 01:56:55 +00:00
Jeff Gilbert e1d0fe64bb Bug 1477756 - Client-side bindings mirror for precise CC, and merge similar codepaths. r=handyman
* Context loss using RAII
* Move Program reflection Client-side

Depends on D54018

Differential Revision: https://phabricator.services.mozilla.com/D54019

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:16 +00:00
David Parks 198fa063c2 Bug 1477756 - Initial out-of-process WebGL implementation. r=mccr8,handyman
Splits WebGLContext into ClientWebGLContext and HostWebGLContext.  The Client enables the JS-control of a WebGL context in a content procecss while the Host executes the WebGL graphics operations (via a WebGLContext that maintains much of the existing code) in the compositor process.  At this point, the cross-process behavior is disabled -- this series of patches is an incremental step toward that final goal.

Differential Revision: https://phabricator.services.mozilla.com/D54018

--HG--
extra : moz-landing-system : lando
2020-01-08 22:19:14 +00:00