gecko-dev/gfx
Kris Maglione 3e44c16cf9 Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.

Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.

Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.

However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.

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

--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
..
2d Bug 1562810 - Rename some static pref functions. r=KrisWright 2019-07-02 22:32:09 +00:00
angle Bug 1507696 - Cherry-pick CopyTexImage3D fixes. r=lsalzman 2019-06-27 06:21:11 +00:00
cairo Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
config Bug 1550422 - P23. Remove now unused gfxPrefs. r=jrmuizel 2019-05-26 14:31:53 +00:00
docs Bug 1560149 - Followup to fix some typos. r=me 2019-07-03 13:56:36 -04:00
gl Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-01 13:05:40 +03:00
graphite2
harfbuzz Bug 1560439 - Update HarfBuzz to 2.5.3. r=jfkthame 2019-06-29 17:29:36 +00:00
ipc Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-06-29 02:23:28 +03:00
layers Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika 2019-06-12 12:40:51 -07:00
ots Bug 1531912 - Update OTS to 7.1.9. r=jfkthame 2019-03-02 15:32:15 +00:00
qcms Bug 1558883 - Add QCMS transform correctness and performance tests. r=miko 2019-06-25 09:45:56 -04:00
sfntly Bug 1523969 part 8 - Move method definition inline comments to new line in 'gfx/'. r=kats 2019-02-25 16:07:19 -06:00
skia Bug 1558375 - Don't set the FT_LOAD_NO_AUTOHINT flag for fonts that have FT_FACE_FLAG_TRICKY, to avoid broken rendering. r=lsalzman 2019-06-15 12:40:02 +00:00
src Bug 1562331 - Make webgl.* static prefs follow the naming convention. r=KrisWright 2019-06-29 07:56:43 +10:00
tests Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika 2019-06-13 09:34:39 -07:00
thebes Bug 1562810 - Rename some static pref functions. r=KrisWright 2019-07-02 22:32:09 +00:00
vr Bug 1559843 - Replace VR code endling to LF. r=kip 2019-07-02 23:40:27 +00:00
webrender_bindings Bug 1561303. Add some asserts for the surface size. r=nical 2019-07-01 07:28:03 +00:00
wr Bug 1562788 - Add support for benchmarking llvmpipe and swiftshader in wrench. r=nical 2019-07-02 21:52:16 +00:00
ycbcr Bug 1561491 - Make gl.* static prefs follow the naming convention. r=KrisWright 2019-06-26 13:05:06 +10:00
moz.build Bug 1536162 - Update bugzilla component for gfx/wr. r=jrmuizel 2019-03-21 20:40:57 +00:00