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

39514 Коммитов

Автор SHA1 Сообщение Дата
Glenn Watson 7606c9048e Bug 1684781 - Pt 2 - Remove root_pic_index. r=nical
Instead, top level tile cache pictures are stored in the scene.

Follow up tasks in this bug will be simplified by having pictures
only exist when they have Some(..) for requested_composite_mode.

This patch removes one case of a pass-through picture, and
simplfies some of the surrounding code in the process.

Differential Revision: https://phabricator.services.mozilla.com/D101539
2021-01-18 21:32:34 +00:00
Markus Stange 5fac6c2b9b Bug 1686830 - Compute eviction thresholds based on the configured shared texture sizes. r=gw
Depends on D102122

Differential Revision: https://phabricator.services.mozilla.com/D102123
2021-01-18 20:29:16 +00:00
Markus Stange 986f0b2a8d Bug 1686830 - Partition the texture cache so that different texture types have different memory budgets, and don't evict each other. r=gw
All LRU partitions use the same freelist to store the entries, and only have
separate LRU indexes. The shared freelist makes it easier to transfer an entry
from one LRU partition to another. If instead we used different LRUCache
instances, moving entries between partitions would be cumbersome because we
would need to look up the strong handle for the entry so that we could remove it
from the old freelist.

Differential Revision: https://phabricator.services.mozilla.com/D102122
2021-01-18 20:29:31 +00:00
Markus Stange 3234fe164d Bug 1686830 - Manage picture cache entries and manually-evicted entries separately from the LRUCache, so that the LRUCache can focus on automatically-evicted entries. r=gw
When I wrote this patch, I thought that it would simplify the next patch in this
series, but I think it didn't make much of a difference in the end.
I still think this patch improves things and is worth taking, though.

Differential Revision: https://phabricator.services.mozilla.com/D102121
2021-01-18 20:29:39 +00:00
Sylvestre Ledru 912aeb9ab5 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D102084
2021-01-18 16:50:16 +00:00
Robert Mader 736a9e904d Bug 1588904 - [Linux/EGL] Use correct rendering device in multi-GPU setup, r=stransky,emilio,jgilbert,geckoview-reviewers,m_kato
Fetch the DRM device in the EGL version of glxtest, set it in gfxInfo and pass
it to gfxVars. Finally, use it in nsDMABufDevice::Configure().

While on it, also clean up EGL typedefs and defines a bit to match how it's
done for GLX.

Inspired by and copied from wlroots and Xwayland. Thanks to emersion!

Differential Revision: https://phabricator.services.mozilla.com/D98108
2021-01-18 09:26:21 +00:00
Matt Woodrow 85f20360d8 Bug 1683120 - Ensure that we always read unlock textures with LayerManagerComposite, even if there was no work to do. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D100967
2021-01-18 04:02:08 +00:00
sotaro eab83ab323 Bug 1686848 - Add fallback handling of FLIP_SEQUENTIAL init failure r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D101856
2021-01-16 22:28:06 +00:00
Mihai Alexandru Michis 075a8d5214 Backed out changeset 03c509adfe55 (bug 1588904) for causing bustages.
CLOSED TREE
2021-01-16 18:09:05 +02:00
Robert Mader 2fd87154fc Bug 1588904 - [Linux/EGL] Use correct rendering device in multi-GPU setup, r=stransky,emilio,jgilbert
Fetch the DRM device in the EGL version of glxtest, set it in gfxInfo and pass
it to gfxVars. Finally, use it in nsDMABufDevice::Configure().

While on it, also clean up EGL typedefs and defines a bit to match how it's
done for GLX.

Inspired by and copied from wlroots and Xwayland. Thanks to emersion!

Differential Revision: https://phabricator.services.mozilla.com/D98108
2021-01-16 15:36:12 +00:00
Sylvestre Ledru d4d28b7263 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.4.18-stable (8157a3f 2020-07-15)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100935
2021-01-16 15:36:39 +00:00
Brindusan Cristian 4c535a3595 Backed out changeset dde159ea0c4c (bug 1588904) for build bustages at xf86drm.h. CLOSED TREE 2021-01-16 14:51:34 +02:00
Robert Mader 88f418e0a5 Bug 1588904 - [Linux/EGL] Use correct rendering device in multi-GPU setup, r=stransky,emilio,jgilbert
Fetch the DRM device in the EGL version of glxtest, set it in gfxInfo and pass
it to gfxVars. Finally, use it in nsDMABufDevice::Configure().

While on it, also clean up EGL typedefs and defines a bit to match how it's
done for GLX.

Inspired by and copied from wlroots and Xwayland. Thanks to emersion!

Differential Revision: https://phabricator.services.mozilla.com/D98108
2021-01-16 12:14:37 +00:00
Markus Stange 6c277c41ff Bug 1686810 - Make the fps counter display the number of frames rendered within the last second. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D101824
2021-01-15 16:03:18 +00:00
Markus Stange 1e70deee3e Bug 1686862 - Account for the new A8 glyphs texture in various places. r=jnicol,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101862
2021-01-15 16:03:18 +00:00
Robert Mader db1a1fe941 Bug 1640053 - Implement full EGL support in glxtest, r=stransky,aosmond
1. On Wayland, use `get_egl_status()` by default
2. On X11/EGL use `x11_egltest()`, avoiding runtime dependencies on GLX
3. Avoid dlopening libgl/libgles on EGL if not needed
4. Some Wayland/X11 `ifdef` cleanups
5. Don't throw warnings when on mesa and using pci device detection

Depends on D101383

Differential Revision: https://phabricator.services.mozilla.com/D100638
2021-01-14 21:24:24 +00:00
Markus Stange 05284fa0b0 Bug 1685744 - Remove the glyph cache limit. r=lsalzman
The limit wasn't doing anything useful anymore, because one of the recent texture
cache refactorings made it so that we weren't actually evicting these glyphs from
the texture cache. In the future, we can implement a similar limit in the texture
cache itself, by giving it per-cache-type limits rather than a global limit.

Differential Revision: https://phabricator.services.mozilla.com/D101834
2021-01-15 02:57:04 +00:00
sotaro f20d0b5b46 Bug 1686860 - Relax version check for CreateSwapChainForHwnd() in RenderCompositorANGLE::CreateSwapChain() r=jrmuizel
The change is related to  Bug 1686805.

Differential Revision: https://phabricator.services.mozilla.com/D101863
2021-01-15 03:08:27 +00:00
Jeff Muizelaar 47bc170179 Bug 1686805 - Relax version check for FLIP_SEQUENTIAL present. r=aosmond
This isn't on by default and shows promise on Win7. Let's
make it available there.

Differential Revision: https://phabricator.services.mozilla.com/D101821
2021-01-15 00:09:58 +00:00
Barret Rennie 2d384c7f0e Bug 1683217 - Require non-zero window size for profiler screenshots in WebRender r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D101685
2021-01-14 22:18:54 +00:00
Andrew Osmond 680cfedad2 Bug 1683653 - Disable OMTP for users with less than 2 GB of virtual memory. r=jrmuizel
Also disable for users with 64-bit Firefox with 1-2 cores, and less than
2 GB of physical memory. It was already disabled for 32-bit Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D101052
2021-01-14 19:51:00 +00:00
Jeff Muizelaar dbb5bd5892 Bug 1686777 - Add a little documentation to swgl. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101792
2021-01-14 18:55:31 +00:00
Andrew Osmond 9168cac006 Bug 1684170 - Decouple WebRender and Software WebRender gfxConfig features. r=jrmuizel
Lack of support of (hardware) WebRender should not block Software
WebRender support. This can happen when ANGLE isn't supported, for
example.

Differential Revision: https://phabricator.services.mozilla.com/D100445
2021-01-14 19:59:10 +00:00
Jonathan Kew 0c3e079a73 Bug 1686559 - Add null-checks for API calls that may be fallible. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101744
2021-01-14 13:57:00 +00:00
Lee Salzman caa9cd4f4d Bug 1684050 - choose appropriate stroke res scale for PathSkia::StrokeContainsPoint. r=bobowen
This uses SkDraw::ComputeResScaleForStroking to ensure we exactly match the resolution scale
that is chosen for drawing the stroked path inside the guts of Skia. This should ensure these
two don't get out of sync.

This also cleans out the old overscale code in ComputeResScaleForStroking that was necessary
during an ancient Skia porting effort but has now bitrotted into irrelevance.

Differential Revision: https://phabricator.services.mozilla.com/D101686
2021-01-14 09:01:54 +00:00
Nicolas Silva be6b2bc8af Bug 1686500 - Update etagere to 0.2.4 r=gfx-reviewers,kvark
The new version contains
 - A bug fix for the bucketed allocator (we don't currently use it)
 - A few fixes that can happen when requesting large enough allocation sizes to cause integer overflows. At the moment we never request an allocation larger than 512px so we are safe but it's still good to stay up to date.

Differential Revision: https://phabricator.services.mozilla.com/D101608
2021-01-14 08:31:40 +00:00
Markus Stange 45daa227f2 Bug 1686635 - Make ClipRect constructors explicit. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101323
2021-01-14 03:55:31 +00:00
Markus Stange 757ea510d0 Bug 1686635 - Annotate implicit conversion constructors in SWGL. r=lsalzman
This preserves behavior. I haven't checked whether GLSL actually wants implicit conversions for all of these.

Differential Revision: https://phabricator.services.mozilla.com/D101321
2021-01-14 03:55:28 +00:00
Markus Stange 74eab25fd6 Bug 1686635 - Reformat SWGL C++ code. r=lsalzman
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D101319
2021-01-14 03:55:20 +00:00
Markus Stange 8509639277 Bug 1686635 - Reformat example-compositor C++ code. r=gw
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D101318
2021-01-14 04:25:21 +00:00
Jeff Gilbert a8926ffa47 Bug 1640607 - Send SurfaceDescriptors for GPU blitting for video-to-webgl. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101061
2021-01-14 01:23:06 +00:00
Alexis Beingessner 4dd35ffb42 Bug 1686158 - make max_bands atomic. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101653
2021-01-14 01:20:12 +00:00
Jamie Nicol 3591b6e8cb Bug 1685563 - Store non-subpixel-AA glyphs in R8 texture rather than BGRA8. r=lsalzman
Add a new texture type alpha8_glyphs to the texture cache and store
alpha glyphs in it. Because the opengl texture format is R8 but the
shader requires to read the texture's alpha channel, we must swizzle
the components. We cannot rely on texture swizzling due to driver
bugs, so add the necessary code to the shader to do so manually.

Differential Revision: https://phabricator.services.mozilla.com/D101643
2021-01-13 22:51:07 +00:00
Kartikaya Gupta bef356f69d Bug 1686372 - Remove dragVerticalScrollbar as it is no longer used. r=botond
promiseVerticalScrollbarDrag is the new hotness.

Depends on D101529

Differential Revision: https://phabricator.services.mozilla.com/D101530
2021-01-13 22:58:03 +00:00
Kartikaya Gupta 136f7c154d Bug 1686372 - Migrate helper_drag_root_scrollbar.html to async/await style. r=botond
Depends on D101528

Differential Revision: https://phabricator.services.mozilla.com/D101529
2021-01-13 22:57:35 +00:00
Kartikaya Gupta a943137b4c Bug 1686372 - Migrate helper_bug1662800.html to async/await style. r=botond
Depends on D101527

Differential Revision: https://phabricator.services.mozilla.com/D101528
2021-01-13 22:57:18 +00:00
Kartikaya Gupta dfc25be6e4 Bug 1686372 - Migrate helper_bug1550510.html to async/await style. r=botond
Depends on D101526

Differential Revision: https://phabricator.services.mozilla.com/D101527
2021-01-13 22:57:06 +00:00
Kartikaya Gupta d9f1e4aa37 Bug 1686372 - Migrate helper_bug1490393.html to async/await style. r=botond
Depends on D101525

Differential Revision: https://phabricator.services.mozilla.com/D101526
2021-01-13 22:56:58 +00:00
Kartikaya Gupta 7879e2ea27 Bug 1686372 - Migrate helper_bug1490393-2.html to async/await style. r=botond
Depends on D101524

Differential Revision: https://phabricator.services.mozilla.com/D101525
2021-01-13 22:56:45 +00:00
Kartikaya Gupta 3d232f08d2 Bug 1686372 - Migrate helper_bug1462961.html to async/await style. r=botond
Depends on D101523

Differential Revision: https://phabricator.services.mozilla.com/D101524
2021-01-13 22:56:38 +00:00
Kartikaya Gupta b851f82cee Bug 1686372 - Migrate helper_bug1331693.html to async/await style. r=botond
Depends on D101522

Differential Revision: https://phabricator.services.mozilla.com/D101523
2021-01-13 22:55:03 +00:00
Kartikaya Gupta 4ede8209a5 Bug 1686372 - Migrate helper_bug1326290.html to async/await style. r=botond
This also adds an async version of the dragVerticalScrollbar helper function.

Differential Revision: https://phabricator.services.mozilla.com/D101522
2021-01-13 22:55:01 +00:00
Jamie Nicol 9cbe014373 Bug 1686528 - Do not round up stride for PBO texture uploads on ANGLE.
ANGLE appears to truncate uploads from a PBO in cases where the
UNPACK_ROW_LENGTH is greater than the width of the upload. We
encounter this due to rounding up the stride of our data to be a
multiple of 4 bytes. Don't do that on ANGLE.

Note that we only hit this issue in wrench, as in Firefox we do not
use PBO uploads with ANGLE.

Differential Revision: https://phabricator.services.mozilla.com/D101663
2021-01-13 23:21:44 +00:00
Masatoshi Kimura 03d7defdfa Bug 1684110 - Define UNICODE on some directories. r=glandium
so that people do not accidentally use 'A'-functions.

Differential Revision: https://phabricator.services.mozilla.com/D100420
2021-01-13 22:49:59 +00:00
Mihai Alexandru Michis d40c24714c Backed out changeset 6149f5b15c5e (bug 1640607) for causing bustages in WebGLTextureUpload.cpp
CLOSED TREE
2021-01-14 00:43:40 +02:00
Jeff Gilbert 580169fbfc Bug 1640607 - Send SurfaceDescriptors for GPU blitting for video-to-webgl. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101061
2021-01-13 21:49:40 +00:00
Glenn Watson f61e781e90 Bug 1686113 - Fix render pass assignment for complex task graphs. r=nical
The previous traversal strategy for assigning render tasks is very
simple and works fine for normal content. However, it's possible to
create graphs with very deep levels of nesting and dependencies
that cause the pass traversal to not terminate quickly.

This patch contains two changes to fix these cases:
 - Recursion in assign_render_pass will early out if a shorter
   path has been found.
 - Remove recursion from assign_free_pass, iterating each task once.

Differential Revision: https://phabricator.services.mozilla.com/D101541
2021-01-13 19:43:35 +00:00
longsonr 6f36a97d0a Bug 1684625 - Disable active images in SVGs r=jrmuizel
- prefs off the code change in bug 1555356
- adds a reftest for this bug and also bug 1674163

Differential Revision: https://phabricator.services.mozilla.com/D101519
2021-01-13 01:16:09 +00:00
Lee Salzman 1de55e6b04 Bug 1676762 - don't directly map DT in RenderCompositorSWGL when buffering is requested. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D101533
2021-01-13 03:49:53 +00:00
Lee Salzman 19f0da9579 Bug 1686363 - offset source and dest rectangles for partial surfaces in RenderCompositorSWGL. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D101521
2021-01-13 02:01:50 +00:00
Kartikaya Gupta 2d5e940dca Bug 1686130 - Update test_layerization to use SpecialPowers.promiseTimeout. r=botond
Depends on D101425

Differential Revision: https://phabricator.services.mozilla.com/D101426
2021-01-12 02:36:46 +00:00
Lee Salzman e2aaaf0c12 Bug 1686363 - handle case in RenderCompositorSWGL where DT is size of window. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D101513
2021-01-13 00:04:16 +00:00
Matt Woodrow 13d9ff3426 Bug 1679585 - Ensure we always set an overlap for invalidated tiles. r=lsalzman
In rare cases, WR can invalidate a tile, but still compute a dirty rect that doesn't intersect that tile.
flush_composites expects all updated tiles to have recorded at least one overlap (for itself), so we set this manually (as we in the normal path after the early return).

Differential Revision: https://phabricator.services.mozilla.com/D101427
2021-01-12 21:33:25 +00:00
stransky 2ef0cb2551 Bug 1685055 [Wayland] Post SyncBegin() to main thread only and remove thread specific code as it's unused, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D101157
2021-01-12 21:07:22 +00:00
Ryan VanderMeulen 80653bb7cb Bug 1686287 - Update OTS to 8.1.3. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D101475
2021-01-12 21:01:04 +00:00
Lee Salzman 4c05912357 Bug 1685439 - clamp span length in blendTextureNearest. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D101478
2021-01-12 18:59:10 +00:00
Sawyer Bergeron 6a82742797 Bug 1686152: Initial support for elastic scrolling with webrender enabled r=botond
Differential Revision: https://phabricator.services.mozilla.com/D100283
2021-01-12 02:17:54 +00:00
Hiroyuki Ikezoe e2617c5fcf Bug 1682200 - Apply the top level resolution for iframes in the same process of the top level document. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D100280
2021-01-11 23:52:09 +00:00
Hiroyuki Ikezoe 58f190d6a4 Bug 1682197 - Scale the offset to remote iframe in nsDisplayRemote::BuildLayer. r=mattwoodrow
When the iframe is inside a scaled container, the offset to the reference frame
needs to be scaled.

This change fixes both a rendering issue (bug 1682197) and a hit-testing issue
(bug 1682200) altogether for non WebRender.

Differential Revision: https://phabricator.services.mozilla.com/D100218
2021-01-11 23:52:09 +00:00
Botond Ballo 766bb234e7 Bug 1685837 - Protect the read of mState in AsyncPanZoomController::IsAsyncZooming() with the APZC lock. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D101415
2021-01-11 22:47:10 +00:00
Kartikaya Gupta 4ba9089ea9 Bug 1685829 - Migrate test_wheel_transactions.html to async/await style. r=botond
Depends on D101287

Differential Revision: https://phabricator.services.mozilla.com/D101288
2021-01-11 22:48:23 +00:00
Kartikaya Gupta a8721cc983 Bug 1685829 - Migrate test_wheel_scroll.html to async/await style. r=botond
Depends on D101286

Differential Revision: https://phabricator.services.mozilla.com/D101287
2021-01-11 21:24:40 +00:00
Kartikaya Gupta 4eaf5f9cf5 Bug 1685829 - Migrate test_touch_listeners_impacting_wheel.html to async/await style. r=botond
Depends on D101285

Differential Revision: https://phabricator.services.mozilla.com/D101286
2021-01-11 21:24:27 +00:00
Kartikaya Gupta 45d7b4a377 Bug 1685829 - Migrate test_relative_update.html to async/await style. r=botond
Depends on D101284

Differential Revision: https://phabricator.services.mozilla.com/D101285
2021-01-11 21:24:15 +00:00
Kartikaya Gupta 5254904092 Bug 1685829 - Migrate test_layerization.html to async/await style. r=botond
Depends on D101283

Differential Revision: https://phabricator.services.mozilla.com/D101284
2021-01-11 22:44:50 +00:00
Kartikaya Gupta 69ebcd8280 Bug 1685829 - Migrate test_interrupted_reflow.html to async/await style. r=botond
Depends on D101282

Differential Revision: https://phabricator.services.mozilla.com/D101283
2021-01-11 21:19:13 +00:00
Kartikaya Gupta eecf43b986 Bug 1685829 - Migrate test_frame_reconstruction.html to async/await style. r=botond
Depends on D101281

Differential Revision: https://phabricator.services.mozilla.com/D101282
2021-01-11 21:19:03 +00:00
Kartikaya Gupta 8f7e6e2ba8 Bug 1685829 - Migrate test_bug1304689.html to async/await style. r=botond
Depends on D101280

Differential Revision: https://phabricator.services.mozilla.com/D101281
2021-01-11 21:18:45 +00:00
Kartikaya Gupta 38397ae6f6 Bug 1685829 - Migrate test_bug1304689-2.html to async/await style. r=botond
Depends on D101279

Differential Revision: https://phabricator.services.mozilla.com/D101280
2021-01-11 21:18:22 +00:00
Kartikaya Gupta c8ab239536 Bug 1685829 - Migrate test_bug1277814.html to async/await style. r=botond
Depends on D101278

Differential Revision: https://phabricator.services.mozilla.com/D101279
2021-01-11 21:17:54 +00:00
Kartikaya Gupta 30ea9423da Bug 1685829 - Migrate test_bug1253683.html to async/await style. r=botond
Depends on D101277

Differential Revision: https://phabricator.services.mozilla.com/D101278
2021-01-11 21:17:20 +00:00
Kartikaya Gupta b9b5211300 Bug 1685829 - Migrate helper_zoom_prevented.html to async/await style. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D101277
2021-01-11 21:16:46 +00:00
Bogdan Tara 0545759f73 Backed out 2 changesets (bug 1685055) for nsWaylandDisplay related bustage CLOSED TREE
Backed out changeset 813da913ec72 (bug 1685055)
Backed out changeset c46c76db0a48 (bug 1685055)
2021-01-11 22:27:24 +02:00
stransky e8802ce8e3 Bug 1685055 [Wayland] Post SyncBegin() to main thread only and remove thread specific code as it's unused, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D101157
2021-01-11 19:58:04 +00:00
Emilio Cobos Álvarez e42e32baf8 Bug 1683188 - CrossProcessPaint code shouldn't mess with tab state from the content process. r=mattwoodrow,NeilDeakin
There's JS running since we save the active status till we restore it,
so arbitrary things can happen, including receiving an IPC message from
the child saying that we're now really active.

If then we restore the wrong (old) status, stuff gets confused and
sadness ensues.

Screenshotting background tabs seems to work without this so it's not
clear to me why messing with the activeness state was necessary to begin
with.

Differential Revision: https://phabricator.services.mozilla.com/D101060
2021-01-11 19:52:10 +00:00
Glenn Watson 68f8f61866 Bug 1684817 - Reduce size of clip masks in transformed primitives. r=nical
In cases where clips are in the same coordinate space as the parent
picture surface (but different from the primitive), we can apply
a simple optimization to reduce the size of clip mask allocations.

In the linked test case, this drastically reduces the size of clip
masks that are drawn (each of the many clip masks drops from approx
1000 x 1000 pixels to approx 64 x 64 pixels).

Differential Revision: https://phabricator.services.mozilla.com/D101298
2021-01-11 19:41:11 +00:00
Brad Werth 3e6d3530c3 Bug 1685046: Hoist release asserts in RenderCompositorNativeOGL::Bind to crash earlier. r=jrmuizel
This change spreads the release asserts to functions that are invoked by other
callers, potentially increasing the cases where the assert will fail. This is
being done intentionally; we want additional information on the reasons for
the crashes.

Differential Revision: https://phabricator.services.mozilla.com/D101063
2021-01-11 15:49:09 +00:00
Jonathan Kew 90618d64ae Bug 1685434 - Respect fonts specified in the font.name-list.emoji preference even if this overrides the Unicode Emoji_Presentation style. r=m_kato
This is a minor adjustment to the font-selection heuristics implemented in bug 1371386:
for emoji codepoints, we should accept the font(s) specified in the font.name-list.emoji
preference even if it's a monochrome font for characters that would normally be expected
to use a color rendering, as this is the user's choice.

Differential Revision: https://phabricator.services.mozilla.com/D101162
2021-01-11 14:41:39 +00:00
Nicolas Silva afb6cd7d18 Bug 1684812 - Report texture cache's LRU cache memory. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100931
2021-01-11 08:58:58 +00:00
Lee Salzman 50180b37c8 Bug 1679215 - limit SWGL compositing to dirty region. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D101256
2021-01-10 23:27:01 +00:00
Lee Salzman 8bee9f98ac Bug 1679215 - add support for StartCompositing hook to RenderCompositor. r=mattwoodrow
We need to be able to delay instantiation of the drawing region until after we have the
dirty rects from start_compositing. This was currently not routed to RenderCompositor,
which is required to do this. Further, SwCompositor needs to always keep track of the
RenderCompositor that it is associated with regardless of whether or not it is a native
compositor so that this hook can be properly engaged.

Differential Revision: https://phabricator.services.mozilla.com/D100974
2021-01-10 23:26:23 +00:00
Matt Woodrow 1af68ae8c4 Bug 1685437 - Add multiple texture methods to RenderCompositorD3D11SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D100972
2021-01-10 22:49:39 +00:00
Glenn Watson 7c86ad2a4d Bug 1684781 - Pt 1 - Refactor SurfaceRenderTasks r=nical
Restructure how frame building handles building of the surface
render task structures.

In future parts of this bug, a surface may have multiple "sub-passes"
where the rendering is separated into different render tasks that
write to the same target (without clear on subsequent sub-passes).

For example, this will be used to allow mix-blend-mode and
backdrop-filter to issue readbacks directly from picture cache
tiles rather than forcing draws to an intermediate surface.

The `add_child_render_task` method will be expanded to support
the case of a surface having multiple sub-passes, adding the
render task to the correct sub-pass.

Differential Revision: https://phabricator.services.mozilla.com/D101122
2021-01-10 19:39:51 +00:00
Markus Stange 7f2f028bd0 Bug 1685643 - Add a test. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D101123
2021-01-10 20:04:22 +00:00
Timothy Nikkel d70b8b4af4 Bug 1685009. Update the visual offset too when doing a paint skip transaction to keep it in sync with layout offset. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D101149
2021-01-10 01:52:24 +00:00
Jim Blandy 692a10e624 Bug 1681610: Use thicker borders when faking rounded rectangles. r=gw
`DisplayListBuilder::PushRoundedRect`, used for unordered list bullets and the
like, draws rounded rectangles as ordinary rectangles with rounded borders that
have a radius of half the rectangle. Unfortunately, this leads to tiny white
dots at the center of the bullet under some magnifications. I haven't diagnosed
why - perhaps there's something somewhere that snaps borders outward.

Increasing the thickness of the borders to (an impossible) 60% of the width of
the rectangle makes the problem go away. If this kludge doesn't work, we could
add a rectangle covering the center.

Differential Revision: https://phabricator.services.mozilla.com/D100753
2021-01-09 19:55:03 +00:00
Mihai Alexandru Michis 14cf518abd Backed out changeset 24da67c3c956 (bug 1685009) for causing crashtest timeouts. 2021-01-09 04:21:14 +02:00
Mike Hommey feb2c466f7 Bug 1685599 - Don't rely on macosx-cross toolchain containing a mac native libLLVM. r=firefox-build-system-reviewers,andi,dmajor
The webrender wrench macos build, which is cross-compiled, needs a
macOS native libLLVM (a .dylib) to link against. The file is currently
part of the macosx-cross toolchain, but that was more incidental than
intentional. As we're going to change the macosx-cross toolchain in a
way that will remove the libLLVM.dylib, pull the file from the macOS
native clang.

Differential Revision: https://phabricator.services.mozilla.com/D101150
2021-01-08 18:51:54 +00:00
Timothy Nikkel b38ba95a2a Bug 1685009. Update the visual offset too when doing a paint skip transaction to keep it in sync with layout offset. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D101149
2021-01-08 20:20:48 +00:00
Markus Stange 33620bbd35 Bug 1685564 - Check for popup widgets instead of toplevel widgets. r=nical
Popup widgets are easier to detect because the "window" widget and the "view"
widget for them are the same object.
With toplevel widgets, most platforms (IIRC all non-Windows platforms) have
separate nsIWidget objects for the "window" widget (toplevel) and the "view"
widget (child), and this code has a reference to the view / child widget.

Differential Revision: https://phabricator.services.mozilla.com/D101062
2021-01-08 12:36:42 +00:00
Dzmitry Malyshau 35c73ab9bc Bug 1640960 - Support OpenGL 3.2 and SSBO in WR renderer r=gw
This is a small extract from a change I tried to land earlier.
It refactors the GL version queries, no functional changes here.

Differential Revision: https://phabricator.services.mozilla.com/D101082
2021-01-08 16:02:42 +00:00
Nicolas Silva aa30ff60cc Bug 1678326 - Add a debug command for forcing picture tile invalidation. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D100885
2021-01-08 13:44:04 +00:00
sotaro cc894cd938 Bug 1685356 - Do not try to create EGLSurface when ANativeWindow size is too big r=nical
When ANativeWindow size is too big, EGLSurface creation could fail. And it should not happen on normal use case. But the error situation happens during org.mozilla.geckoview.test.ScreenshotTest.giantScreenshot.

Differential Revision: https://phabricator.services.mozilla.com/D101128
2021-01-08 10:59:17 +00:00
Nicolas Silva 30d561c26b Bug 1683294 - Update rayon to 1.5 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100110
2021-01-07 15:29:27 +00:00
Hiroyuki Ikezoe b830ff1685 Bug 1685218 - Delegate SynthesizeNativeMouseScrollEvent from nsCocoaWindow to mPopupContentView. r=mstange
Thus we can properly dispatch mouse scroll events to popup window.

Differential Revision: https://phabricator.services.mozilla.com/D101067
2021-01-08 03:05:34 +00:00
Markus Stange 6d618366d7 Bug 1685643 - Subtract the correct allocation size when freeing items from the shared cache. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D101104
2021-01-08 06:00:34 +00:00
Kartikaya Gupta 5b9688ee03 Bug 1685209 - Migrate helper_zoom_keyboardscroll.html to async/await style. r=botond
Depends on D100899

Differential Revision: https://phabricator.services.mozilla.com/D100900
2021-01-07 02:48:55 +00:00
Kartikaya Gupta 95460a25b2 Bug 1685209 - Migrate helper_visual_smooth_scroll.html to async/await style. r=botond
Depends on D100898

Differential Revision: https://phabricator.services.mozilla.com/D100899
2021-01-07 02:47:54 +00:00
Kartikaya Gupta 6500ffef68 Bug 1685209 - Migrate helper_scroll_tables_perspective.html to async/await style. r=botond
Depends on D100897

Differential Revision: https://phabricator.services.mozilla.com/D100898
2021-01-07 02:47:13 +00:00
Kartikaya Gupta a1f3b93e8a Bug 1685209 - Migrate helper_scroll_snap_no_valid_snap_position.html to async/await style. r=botond
Depends on D100896

Differential Revision: https://phabricator.services.mozilla.com/D100897
2021-01-07 02:46:25 +00:00
Kartikaya Gupta d4d1f898d3 Bug 1685209 - Migrate helper_scroll_over_scrollbar.html to async/await style. r=botond
Depends on D100895

Differential Revision: https://phabricator.services.mozilla.com/D100896
2021-01-07 02:46:17 +00:00
Kartikaya Gupta 42cd12415e Bug 1685209 - Migrate helper_scroll_on_position_fixed.html to async/await style. r=botond
Depends on D100894

Differential Revision: https://phabricator.services.mozilla.com/D100895
2021-01-07 02:46:14 +00:00
Kartikaya Gupta b03211f00d Bug 1685209 - Migrate helper_scroll_into_view_bug1562757.html to async/await style. r=botond
Depends on D100893

Differential Revision: https://phabricator.services.mozilla.com/D100894
2021-01-07 02:44:54 +00:00
Kartikaya Gupta 4ff6a6656b Bug 1685209 - Migrate helper_scroll_into_view_bug1516056.html to async/await style. r=botond
Depends on D100892

Differential Revision: https://phabricator.services.mozilla.com/D100893
2021-01-07 02:44:21 +00:00
Kartikaya Gupta 494ac7c0b8 Bug 1685209 - Migrate helper_scroll_inactive_zindex.html to async/await style. r=botond
Depends on D100891

Differential Revision: https://phabricator.services.mozilla.com/D100892
2021-01-07 02:43:32 +00:00
Kartikaya Gupta e0d8170d9d Bug 1685209 - Migrate helper_scroll_inactive_perspective.html to async/await style. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D100891
2021-01-07 02:43:19 +00:00
Butkovits Atila 83594639d2 Backed out changeset 65e409aa846d (bug 1683653) for causing reftest failures. CLOSED TREE 2021-01-08 00:43:12 +02:00
Markus Stange 1434deba5f Bug 1683993 - Convert do_debug_blit() to use origin-top-left coordinates and convert to FramebufferPixel coordinates correctly. r=kvark
This fixes upside-down drawing when the native compositor is used.

Depends on D100962

Differential Revision: https://phabricator.services.mozilla.com/D100963
2021-01-07 20:59:10 +00:00
Markus Stange c4c8bc35ad Bug 1683993 - Forward debug overlay DrawTarget into do_debug_blit so that device.blit_render_target targets the correct framebuffer when the native compositor is used. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D100962
2021-01-07 20:59:57 +00:00
Markus Stange 8dfc017704 Bug 1683993 - Stop double-drawing debug overlays. r=kvark
render_impl() calls draw_frame(). We were drawing the debug overlays in both
functions, so the overlays were rendered twice.
This patch removes the drawing in draw_frame() and keeps the one in render_impl().

For anything that uses the debug renderer, such as the "epochs" overlay, this
means that the drawing commands were appended twice, and then all commands were
executed at the end of render_impl().
Comparing the "epochs" debug overlay with and without this change, this patch
noticeable]y reduces its opacity from "extra opaque" (due to double drawing) to
"normal translucency".

Also, when the native compositor was used, any debug drawing in draw_frame()
that wasn't using the debug renderer didn't actually work, because it wasn't
going into the debug overlay surface - only render_impl() correctly binds the
debug overlay surface when the native compositor is used.

Differential Revision: https://phabricator.services.mozilla.com/D100961
2021-01-07 20:58:59 +00:00
Andrew Osmond 0c8376f87e Bug 1683653 - Disable OMTP for users with less than 2 GB of virtual memory. r=jrmuizel
Also disable for users with 64-bit Firefox with 1-2 cores, and less than
2 GB of physical memory. It was already disabled for 32-bit Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D101052
2021-01-07 20:11:39 +00:00
Jeff Muizelaar 107ca2a452 Bug 1685544. Increase the fuzz on shadow-transforms.yaml. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D101045
2021-01-07 19:02:55 +00:00
Dzmitry Malyshau 093ed43459 Bug 1675615 - Move WR shading module into the renderer r=nical
Differential Revision: https://phabricator.services.mozilla.com/D100941
2021-01-07 16:29:55 +00:00
Dzmitry Malyshau 1591316d90 Bug 1685345 - Move WR texture packing into a module r=nical
Differential Revision: https://phabricator.services.mozilla.com/D100950
2021-01-07 16:16:42 +00:00
Dorel Luca ebf35b54b3 Backed out changeset b8e9cf21898a (bug 1685345) for WebRender build bustages. CLOSED TREE 2021-01-07 18:06:59 +02:00
Dzmitry Malyshau 584e10b41c Bug 1685345 - Move WR texture packing into a module r=nical
Differential Revision: https://phabricator.services.mozilla.com/D100950
2021-01-07 15:53:50 +00:00
Dzmitry Malyshau 4fdd3ade6b Bug 1640960 - Add non-instancing code path to WR r=gw
We are adding the "enable_instancing" flag, enabled by default. When it's not `true`,
we are duplicating the per-vertex data and issuing non-instanced draw calls.
This is currently regressing the Talos tests - https://treeherder.mozilla.org/perfherder/compare?originalProject=mozilla-central&newProject=try&newRevision=f5b5e9af53d625826df7d3b7da9ef06960d3c176&framework=1&selectedTimeRange=172800

Differential Revision: https://phabricator.services.mozilla.com/D100932
2021-01-07 15:50:58 +00:00
Jamie Nicol f394063007 Bug 1685276 - Fix and re-enable partial present on Mali-Gxx devices. r=kvark
In bug 1676474 an issue was reported regarding partial present on
Mali-G77 devices. This was introduced in bug 1675159, which refactored
some partial present logic and shifted the order of some OpenGL calls
around. As a precaution, we disabled the feature on all Mali-Gxx
devices.

The bug seems to occur when eglSetDamageRegion is called after
rendering to an offscreen render target (in this case due to texture
cache or GPU cache updates), but without the driver being flushed in
some way. This appears to be a bug in the Mali driver.

This patch moves the eglSetDamageRegion call back to its original
location -- after all offscreen render targets have been rendered,
immediately before rendering to the main framebuffer -- which fixes
the issue. It also re-enables the feature on all Mali-Gxx devices.

Differential Revision: https://phabricator.services.mozilla.com/D101018
2021-01-07 14:47:34 +00:00
Nicolas Silva 51dda3f2a5 Bug 1683753 - Adjust reftest references. r=jrmuizel
Adjustments required after texture packing changes.

Differential Revision: https://phabricator.services.mozilla.com/D100775
2021-01-07 09:25:31 +00:00
Nicolas Silva 644d027b4d Bug 1683753 - Make android wrench reftests fuzzy by default. r=jrmuizel
This adds a fuzziness of two in wrench as we do with non-wrench reftests.

Differential Revision: https://phabricator.services.mozilla.com/D100786
2021-01-07 14:43:33 +00:00
Nicolas Silva 9c3c59b547 Bug 1683753 - Don't use the bucketed shelf allocator for glyphs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100690
2021-01-07 09:25:34 +00:00
Dzmitry Malyshau 6556e3b939 Bug 1675615 - Move WR debug renderer under the renderer module r=gw
Most of that is *rendering* logic, so the change moves it closer to the renderer.
One tiny bit - `enum DebugItem` - is used in frame building, so I left it in its own small module at the root.

Differential Revision: https://phabricator.services.mozilla.com/D100936
2021-01-07 14:43:15 +00:00
Dzmitry Malyshau 6780419b9c Bug 1685391 - Refactor WR framegraph tests r=gw
This removes unused HTML files, moves the framegraph tests into being unit tests,
and refactors them to use less code.

Differential Revision: https://phabricator.services.mozilla.com/D100956
2021-01-07 14:37:37 +00:00
Ryan VanderMeulen e02eeb5885 Bug 1656886 - Update HarfBuzz to 2.7.4. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D85757
2021-01-07 13:53:25 +00:00
Ryan VanderMeulen edf21ccc44 Bug 1685381 - Update OTS to 8.1.2. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D100951
2021-01-07 13:29:48 +00:00
Jonathan Kew a608a1f16d Bug 1685059 - Add a bunch more Indic Noto fonts to common fallbacks on Android. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D100766
2021-01-07 02:40:08 +00:00
sotaro 06a65d02a0 Bug 1685241 - Disable WebRender rendering when RenderCompositorEGL is paused r=nical
Crash could happen with WebRender rendering when RenderCompositorEGL is not ready for rendering. With the change, RenderCompositorEGL::BeginFrame() is not called when RenderCompositorEGL is not ready.

Differential Revision: https://phabricator.services.mozilla.com/D100871
2021-01-07 10:23:30 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Razvan Maries 31e501fc5a Backed out 3 changesets (bug 1683753) for WebRender bustages. CLOSED TREE
Backed out changeset 9ecf9ce11807 (bug 1683753)
Backed out changeset df2921234c95 (bug 1683753)
Backed out changeset be651eeda6d3 (bug 1683753)
2021-01-07 11:16:25 +02:00
Nicolas Silva d72e428ebe Bug 1683753 - Adjust reftest references. r=jrmuizel
Adjustments required after texture packing changes.

Differential Revision: https://phabricator.services.mozilla.com/D100775
2021-01-06 17:53:01 +00:00
Nicolas Silva a3949637c4 Bug 1683753 - Make android wrench reftests fuzzy by default. r=jrmuizel
This adds a fuzziness of two in wrench as we do with non-wrench reftests.

Differential Revision: https://phabricator.services.mozilla.com/D100786
2021-01-06 17:53:02 +00:00
Nicolas Silva 89229f5f13 Bug 1683753 - Don't use the bucketed shelf allocator for glyphs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100690
2021-01-06 17:53:02 +00:00
Sylvestre Ledru b58ddc19df Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with Debian clang-format version 11.0.1-1

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100934
2021-01-06 17:17:23 +00:00
Lee Salzman fc5c302723 Bug 1683980 - handle clipping points with negative W that are considered to fall outside of either boundary. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100856
2021-01-06 23:07:18 +00:00
Jeff Muizelaar 519f913527 Bug 1685311 - Flesh out the documentation a little. r=aosmond
Also update fuzz/Cargo.lock

Differential Revision: https://phabricator.services.mozilla.com/D100923
2021-01-06 17:11:21 +00:00
sotaro c1ea187aa6 Bug 1685253 - Fix error handling of RenderCompositorEGL::Resume() r=nical
Changed as to return false when resume fails.

Differential Revision: https://phabricator.services.mozilla.com/D100872
2021-01-06 12:12:42 +00:00
Jean-Yves Avenard 6f1544075f Bug 1681043 - P5. Recalculate decoder capabilities if CanUseHardwareVideoDecoding changes. r=alwu,bryce
Not the most elegant, but reworking the PDMFactory to be fully re-initialized would be a significant change, as only the WMFDecoderModule requires it we take some shortcuts.

Differential Revision: https://phabricator.services.mozilla.com/D100308
2021-01-06 08:33:28 +00:00
Jean-Yves Avenard dfb40277e0 Bug 1681043 - P3. Retrieve decoding capabilities in GPU or RDD process and pass it to content. r=alwu,bryce
Upon starting the RDD and GPU process; we check their decoding capabilities and send it to the parent process. It will then broadcast this information to all content children so that RemodeDecoderModule::Supports can return if a codec is supported or not.

Differential Revision: https://phabricator.services.mozilla.com/D100306
2021-01-06 09:05:31 +00:00
longsonr f518393a92 Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio
Spec: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-operator-lighter

Lighter is defined in the compositing & blending spec as equivalent to porter-duff plus, https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus.

The 'lighter' composite mode already works in <canvas> (via globalCompositeOperation), and it's the same there.

Chrome implemented support in https://bugs.chromium.org/p/chromium/issues/detail?id=439037

Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl and Chrome uses 7 too (https://codereview.chromium.org/779963002/patch/120001/130009)

Differential Revision: https://phabricator.services.mozilla.com/D100605
2021-01-05 20:49:00 +00:00
sotaro 1d9dcf011a Bug 1684003 - Recycle ID3D11Query in CompositorD3D11 r=nical
ID3D11Query could be recycled. It was already done at RenderCompositorANGLE.
CompositorD3D11 is used in RenderCompositorD3D11SWGL.

Differential Revision: https://phabricator.services.mozilla.com/D100380
2021-01-06 04:54:27 +00:00
Markus Stange eb8875ae13 Bug 1685236 - Add an autorelease pool in determine_font_smoothing_mode. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100854
2021-01-06 04:25:40 +00:00
Hiroyuki Ikezoe bbb5bcf77a Bug 1683487 - Use GetAPZCAtPointWR depending on whether the corresponding window uses WebRender instead of the preference value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D100431
2021-01-06 02:04:24 +00:00
Jeff Muizelaar a3db045160 Bug 1685214 - Add some documentation to qcms and bump the crate version. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D100845
2021-01-06 01:36:30 +00:00
Markus Stange 5cd8830a74 Bug 1683723 - Replace deprecated Cocoa enum constants with their modern replacements. r=spohl
I ran the following command:

```
rg -l 'NSAlphaShiftKeyMask' . | xargs sed -i '' -e 's/NSAlphaShiftKeyMask/NSEventModifierFlagCapsLock/g'
rg -l 'NSAlternateKeyMask' . | xargs sed -i '' -e 's/NSAlternateKeyMask/NSEventModifierFlagOption/g'
rg -l 'NSAnyEventMask' . | xargs sed -i '' -e 's/NSAnyEventMask/NSEventMaskAny/g'
rg -l 'NSApplicationDefined' . | xargs sed -i '' -e 's/NSApplicationDefined/NSEventTypeApplicationDefined/g'
rg -l 'NSBorderlessWindowMask' . | xargs sed -i '' -e 's/NSBorderlessWindowMask/NSWindowStyleMaskBorderless/g'
rg -l 'NSCenterTextAlignment' . | xargs sed -i '' -e 's/NSCenterTextAlignment/NSTextAlignmentCenter/g'
rg -l 'NSClosableWindowMask' . | xargs sed -i '' -e 's/NSClosableWindowMask/NSWindowStyleMaskClosable/g'
rg -l 'NSCommandKeyMask' . | xargs sed -i '' -e 's/NSCommandKeyMask/NSEventModifierFlagCommand/g'
rg -l 'NSCompositeCopy' . | xargs sed -i '' -e 's/NSCompositeCopy/NSCompositingOperationCopy/g'
rg -l 'NSControlKeyMask' . | xargs sed -i '' -e 's/NSControlKeyMask/NSEventModifierFlagControl/g'
rg -l 'NSDeviceIndependentModifierFlagsMask' . | xargs sed -i '' -e 's/NSDeviceIndependentModifierFlagsMask/NSEventModifierFlagDeviceIndependentFlagsMask/g'
rg -l 'NSFlagsChanged' . | xargs sed -i '' -e 's/NSFlagsChanged/NSEventTypeFlagsChanged/g'
rg -l 'NSFullScreenWindowMask' . | xargs sed -i '' -e 's/NSFullScreenWindowMask/NSWindowStyleMaskFullScreen/g'
rg -l 'NSFullSizeContentViewWindowMask' . | xargs sed -i '' -e 's/NSFullSizeContentViewWindowMask/NSWindowStyleMaskFullSizeContentView/g'
rg -l 'NSFunctionKeyMask' . | xargs sed -i '' -e 's/NSFunctionKeyMask/NSEventModifierFlagFunction/g'
rg -l 'NSHelpKeyMask' . | xargs sed -i '' -e 's/NSHelpKeyMask/NSEventModifierFlagHelp/g'
rg -l 'NSKeyDown' . | xargs sed -i '' -e 's/NSKeyDown/NSEventTypeKeyDown/g'
rg -l 'NSKeyUp' . | xargs sed -i '' -e 's/NSKeyUp/NSEventTypeKeyUp/g'
rg -l 'NSLeftMouseDownMask' . | xargs sed -i '' -e 's/NSLeftMouseDownMask/NSEventMaskLeftMouseDown/g'
rg -l 'NSLeftMouseDown' . | xargs sed -i '' -e 's/NSLeftMouseDown/NSEventTypeLeftMouseDown/g'
rg -l 'NSLeftMouseDragged' . | xargs sed -i '' -e 's/NSLeftMouseDragged/NSEventTypeLeftMouseDragged/g'
rg -l 'NSLeftMouseUp' . | xargs sed -i '' -e 's/NSLeftMouseUp/NSEventTypeLeftMouseUp/g'
rg -l 'NSMiniaturizableWindowMask' . | xargs sed -i '' -e 's/NSMiniaturizableWindowMask/NSWindowStyleMaskMiniaturizable/g'
rg -l 'NSMiniControlSize' . | xargs sed -i '' -e 's/NSMiniControlSize/NSControlSizeMini/g'
rg -l 'NSMouseEntered' . | xargs sed -i '' -e 's/NSMouseEntered/NSEventTypeMouseEntered/g'
rg -l 'NSMouseExited' . | xargs sed -i '' -e 's/NSMouseExited/NSEventTypeMouseExited/g'
rg -l 'NSMouseMoved' . | xargs sed -i '' -e 's/NSMouseMoved/NSEventTypeMouseMoved/g'
rg -l 'NSNumericPadKeyMask' . | xargs sed -i '' -e 's/NSNumericPadKeyMask/NSEventModifierFlagNumericPad/g'
rg -l 'NSOtherMouseDownMask' . | xargs sed -i '' -e 's/NSOtherMouseDownMask/NSEventMaskOtherMouseDown/g'
rg -l 'NSOtherMouseDown' . | xargs sed -i '' -e 's/NSOtherMouseDown/NSEventTypeOtherMouseDown/g'
rg -l 'NSOtherMouseDragged' . | xargs sed -i '' -e 's/NSOtherMouseDragged/NSEventTypeOtherMouseDragged/g'
rg -l 'NSOtherMouseUp' . | xargs sed -i '' -e 's/NSOtherMouseUp/NSEventTypeOtherMouseUp/g'
rg -l 'NSRegularControlSize' . | xargs sed -i '' -e 's/NSRegularControlSize/NSControlSizeRegular/g'
rg -l 'NSResizableWindowMask' . | xargs sed -i '' -e 's/NSResizableWindowMask/NSWindowStyleMaskResizable/g'
rg -l 'NSRightMouseDown' . | xargs sed -i '' -e 's/NSRightMouseDown/NSEventTypeRightMouseDown/g'
rg -l 'NSRightMouseDragged' . | xargs sed -i '' -e 's/NSRightMouseDragged/NSEventTypeRightMouseDragged/g'
rg -l 'NSRightMouseUp' . | xargs sed -i '' -e 's/NSRightMouseUp/NSEventTypeRightMouseUp/g'
rg -l 'NSRightTextAlignment' . | xargs sed -i '' -e 's/NSRightTextAlignment/NSTextAlignmentRight/g'
rg -l 'NSScrollWheelMask' . | xargs sed -i '' -e 's/NSScrollWheelMask/NSEventMaskScrollWheel/g'
rg -l 'NSScrollWheel' . | xargs sed -i '' -e 's/NSScrollWheel/NSEventTypeScrollWheel/g'
rg -l 'NSShiftKeyMask' . | xargs sed -i '' -e 's/NSShiftKeyMask/NSEventModifierFlagShift/g'
rg -l 'NSSmallControlSize' . | xargs sed -i '' -e 's/NSSmallControlSize/NSControlSizeSmall/g'
rg -l 'NSTabletPointEventSubtype' . | xargs sed -i '' -e 's/NSTabletPointEventSubtype/NSEventSubtypeTabletPoint/g'
rg -l 'NSTitledWindowMask' . | xargs sed -i '' -e 's/NSTitledWindowMask/NSWindowStyleMaskTitled/g'
```

Then I removed changes to third-party webrtc code, removed a comment in accessible/mac/mozAccessible.mm,
and performed some manual replacements in native_mouse_mac_window.xhtml.

Differential Revision: https://phabricator.services.mozilla.com/D100260
2021-01-05 21:17:11 +00:00
Jeff Muizelaar 63c64ed972 Bug 1685101 - Fix bytes_per_pixel for GrayA8. r=aosmond
This was found by oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29235

Differential Revision: https://phabricator.services.mozilla.com/D100785
2021-01-05 15:56:51 +00:00
Lee Salzman f36bfe25d7 Bug 1464698 - avoid creating wrapping source surface when GetBuffer fails. r=nical
We shouldn't be trying to create the wrapping source surface here here GetBuffer
fails - in this case because of a shmem allocation failure. There are already ample
log notes about the failure so just bailing out and not spewing more warning spam
here seems like the right thing to do. Downwind code already deals with mFirstSource
not being set, so we should be safe.

Differential Revision: https://phabricator.services.mozilla.com/D100739
2021-01-05 10:58:39 +00:00
Kartikaya Gupta a047054a15 Bug 1684708 - Rename waitForFrame to promiseFrame for consistency. r=botond
The other promise-returning helpers follow a bit of a naming
convention, so let's make this one too.

Depends on D100618

Differential Revision: https://phabricator.services.mozilla.com/D100619
2021-01-05 02:52:57 +00:00
Kartikaya Gupta a1c103f316 Bug 1684708 - Migrate helper_scrollby_bug1531796.html to async/await style. r=botond
Depends on D100617

Differential Revision: https://phabricator.services.mozilla.com/D100618
2021-01-05 02:34:53 +00:00
Kartikaya Gupta 498df38275 Bug 1684708 - Migrate helper_scrollbar_snap_bug1501062.html to async/await style. r=botond
Depends on D100616

Differential Revision: https://phabricator.services.mozilla.com/D100617
2021-01-05 02:34:31 +00:00
Kartikaya Gupta 9171732616 Bug 1684708 - Migrate helper_scroll_anchoring_smooth_scroll.html to async/await style. r=botond
Depends on D100615

Differential Revision: https://phabricator.services.mozilla.com/D100616
2021-01-05 02:33:01 +00:00