Commit Graph

34933 Commits

Author SHA1 Message Date
Oana Pop Rus
dbfb0e6cdd Backed out 3 changesets (bug 1580922) for wrench bustages. on a CLOSED TREE
Backed out changeset c6552f7ec6a0 (bug 1580922)
Backed out changeset ac6bd19f200a (bug 1580922)
Backed out changeset 31d0469993bd (bug 1580922)
2019-10-02 02:32:26 +03:00
Nicolas Silva
fe80db04c7 Bug 1580922 - Add a wrench rawtest. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47790

--HG--
extra : moz-landing-system : lando
2019-10-01 16:34:43 +00:00
Nicolas Silva
7c48ca945a Bug 1580922 - Ensure boundary tiles are invalidated when updating the visible area. r=jrmuizel
In addition, make sure the descriptor size stays in sync with the visible rect's size.
The descriptor's size stored in the resource cache is pretty much obsolete now, we should be able to clean it up and remove it.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 16:34:59 +00:00
Nicolas Silva
98ffe8b435 Bug 1580922 - changing the blob visible area can require rasterization requests. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47084

--HG--
extra : moz-landing-system : lando
2019-10-01 16:34:59 +00:00
Brindusan Cristian
e139ad7ab8 Backed out changeset 88a32122785b (bug 1580922) for reftest failures at webkit-text-stroke-property-001.html. CLOSED TREE 2019-10-01 22:29:12 +03:00
Ryan VanderMeulen
5611980e6c Bug 1585138 - Update HarfBuzz to 2.6.2. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47665

--HG--
extra : moz-landing-system : lando
2019-10-01 09:18:54 +00:00
Jeff Muizelaar
869980f0d4 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 12:15:53 +00:00
Sylvestre Ledru
63ab1f2c5b Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in gfx/ r=nical
The change has been reverted involuntary by bug 1574745

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

--HG--
extra : moz-landing-system : lando
2019-10-01 13:05:43 +00:00
Gabriele Svelto
10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
arthur.iakab
9bc47253cc Backed out changeset 3eba60b905c0 (bug 1584439) for causing wrench bustages CLOSED TREE 2019-10-01 09:12:49 +03:00
Glenn Watson
cc9a8ee004 Bug 1584439 - Enable picture caching for scroll bars and UI content. r=nical
Once this patch lands, all content drawn by WebRender is drawn into
a picture cache surface.

This will incur some extra GPU memory overhead since there are extra
GPU texture buffers. Much of this can be reduced by adding a couple
of simple optimizations in future to detect tiles that are solid
colors only.

With this change, we'll now be able to provide exact dirty rects for
the entire screen without any hacks, and start the work to draw into
OS compositor surfaces directly.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 04:51:56 +00:00
Ciure Andrei
896ee6e424 Backed out changeset 4f126cfd8012 (bug 1584439) for causing wrench bustage CLOSED TREE 2019-10-01 07:39:54 +03:00
Glenn Watson
e861c795b9 Bug 1584439 - Enable picture caching for scroll bars and UI content. r=nical
Once this patch lands, all content drawn by WebRender is drawn into
a picture cache surface.

This will incur some extra GPU memory overhead since there are extra
GPU texture buffers. Much of this can be reduced by adding a couple
of simple optimizations in future to detect tiles that are solid
colors only.

With this change, we'll now be able to provide exact dirty rects for
the entire screen without any hacks, and start the work to draw into
OS compositor surfaces directly.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 01:34:01 +00:00
Ciure Andrei
ffa2b6a320 Backed out changeset 38e1e9c5d8c1 (bug 1580922) for causing webkit-text-stroke-property-001.html reftest failures CLOSED TREE 2019-10-01 04:36:20 +03:00
Jeff Muizelaar
645bc7cc30 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 22:10:29 +00:00
Botond Ballo
f0522f76d7 Bug 1585197 - Fix non-unified build bustage in APZCTreeManager.cpp. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D47710

--HG--
extra : moz-landing-system : lando
2019-09-30 23:33:37 +00:00
Ciure Andrei
79d2986eb6 Backed out changeset ea9e4099e608 (bug 1580922) at request from jrmuizel CLOSED TREE 2019-10-01 01:05:24 +03:00
Jeff Muizelaar
986b2ec145 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 07:39:14 +00:00
Jamie Nicol
db3ac60fec Bug 1584497 - Update wrench reftest expectations for emulator 29.2.1. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D47629

--HG--
extra : moz-landing-system : lando
2019-09-30 21:05:09 +00:00
Botond Ballo
6db92a9d0e Bug 1584691 - Reinstate support for scrollbar layers that are descendants of the scrolled content. r=tnikkel
This layer structure can still occur in cases where we place the RCD-RSF
scroll metadata on the root layer as a fallback.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 19:12:16 +00:00
Hiroyuki Ikezoe
16081f5205 Bug 1547169 - A crash test by fuzzing. r=boris
Depends on D47566

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

--HG--
extra : moz-landing-system : lando
2019-09-30 19:49:36 +00:00
Hiroyuki Ikezoe
1940fb41d3 Bug 1529149 - A crash test by fuzzing. r=boris
Depends on D47565

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

--HG--
extra : moz-landing-system : lando
2019-09-30 19:49:32 +00:00
Jeff Muizelaar
9651ff76cf Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 17:48:34 +00:00
Dorel Luca
1dc5a9e539 Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 3a6d0bf5ed1bcaebf59f44bd4dd5e80be0e0190b
2019-09-30 13:37:30 +03:00
Coroiu Cristina
161096b665 Backed out changeset 43ac974f69db (bug 1582645) for increasing the crash volume a=backout 2019-09-30 12:51:23 +03:00
sotaro
b61f0ef673 Bug 1583432 - Set IDCompositionVisual interporation mode to Linear r=nical
Differential Revision: https://phabricator.services.mozilla.com/D46896

--HG--
extra : moz-landing-system : lando
2019-09-30 09:01:32 +00:00
Cosmin Sabou
14938bad3b Backed out 10 changesets (bug 1550108) for causing build bustages on StartupCache.cpp.
Backed out changeset cbadfa2bbd7e (bug 1550108)
Backed out changeset 2560f0ab6ebf (bug 1550108)
Backed out changeset 0a1fa8d8bb3c (bug 1550108)
Backed out changeset 62416909cf67 (bug 1550108)
Backed out changeset 60991713b1e2 (bug 1550108)
Backed out changeset f950e30afd90 (bug 1550108)
Backed out changeset e63d0a1fec38 (bug 1550108)
Backed out changeset 7a009d42e7e7 (bug 1550108)
Backed out changeset 395affa4c205 (bug 1550108)
Backed out changeset 0fd41e9dbd2a (bug 1550108)

--HG--
rename : mfbt/lz4/lz4.c => mfbt/lz4.c
rename : mfbt/lz4/lz4.h => mfbt/lz4.h
2019-09-29 01:14:31 +03:00
Doug Thayer
cf2166a011 Bug 1550108 - Eliminate large buffer copies from StartupCache r=froydnj
The signatures were updated in the previous patch to hand us the raw,
uncopied buffers. This just adjusts the callsites to match.

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

--HG--
extra : moz-landing-system : lando
2019-09-27 18:17:13 +00:00
Andrew Osmond
956a5992ad Bug 1582975 - Ensure that we don't attempt to iterate over image tiles outside the range. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47468

--HG--
extra : moz-landing-system : lando
2019-09-27 19:10:27 +00:00
Ryan VanderMeulen
b2fefdf67b Bug 1578075 - Revert stack size of paint threads back to 512KB on macOS 10.15. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D47501

--HG--
extra : moz-landing-system : lando
2019-09-27 21:09:22 +00:00
Dorel Luca
c18b81f79f Backed out 3 changesets (bug 1509316) for MDA failures on dom/media/tests/mochitest/test_peerConnection_captureStream_canvas_2d.html
Backed out changeset d64c35b9c211 (bug 1509316)
Backed out changeset 817f14af91f0 (bug 1509316)
Backed out changeset b4bee18bb499 (bug 1509316)
2019-09-27 23:31:51 +03:00
John Lin
01cc36b53b Bug 1509316 - p1: move composite listening out of VideoData/VideoSink. r=jya,mattwoodrow
On Android, decoded buffers need to be send back to MediaCodec in order to be
rendered and/or recycled. The current mechanism introduced in bug 1299068 only
works for playback(VideoData/VideoSink) but not WebRTC(VideoFrame/VideoOutput).
Move the callback to SurfaceTextureImage because VideoData and VideoFrame both
own that when using MediaCodec, and move the notification to VideoFrameContainer
for both VideoSink and VideoOutput pass frames there for compositing.

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

--HG--
extra : moz-landing-system : lando
2019-09-27 03:01:49 +00:00
Jamie Nicol
ffd7f50dee Bug 1581628 - Update wrench jobs to work with NDK r20. r=jrmuizel
To support NDK r20, wrench needs to be built with a more recent, upstream
(though still unpublished) version of cargo-apk. This has some consequences
which have been adjusted for:
 * Gradle is no longer required to build wrench.
 * The output apk file paths have changed.
 * The apks are now signed automatically.
 * The default activity name has changed.
 * Android permissions must be explicitly requested.
 * We must ensure winit is built with a matching version of android_glue.

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

--HG--
extra : moz-landing-system : lando
2019-09-27 13:50:43 +00:00
Jeff Muizelaar
bdcf335677 Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:08:29 +00:00
Glenn Watson
ab1041de89 Bug 1581757 - Support slicing the scene into an arbitrary number of picture cache slices r=nical,kvark
Previously, the setup_picture_caching function was hard coded
to support only a very specific shape of display list. With this
change, flags are added to PrimitiveCluster that can specify
if a picture cache slice should be created before / after this
cluster when picture caching is set up.

The usage of these flags in this patch matches the old behaviour,
so should not have any functional effect.

However, in future we will make use of this functionality to
create picture slices for a number of different use cases, such as:

 * Creating cache tiles for the UI.
 * Slicing the scene where there are video elements, in order to
   allow these to be composited directly by the OS. This may also
   apply to WebGL and/or canvas elements.
 * Slicing the scene when there is a very large fixed position
   background image or other element, to avoid invalidating the
   entire tile cache each frame.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:14:36 +00:00
Jeff Muizelaar
388602ee84 Bug 1584316. blob: Call EndGroup after pulling the data out of it.
This is needed for the fix in bug 1582645 to work.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 21:08:42 +00:00
Kris Taeleman
d2d88e021d Bug 1582565 - Log transactions into readable format. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D46657

--HG--
extra : moz-landing-system : lando
2019-09-26 16:43:05 +00:00
Botond Ballo
4c26f8c142 Bug 1583983 - Add threading / locking overview to APZ docs. r=tnikkel,nical
To avoid duplicating information, the comment about lock ordering in
APZCTreeManager.h is also updated to point to the documentation.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 09:48:24 +00:00
thomasmo
ab2f648351 Bug 1581855:Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
This change is a continuation of Part 1 (Bug 1570128), where the 2D content rendered by Firefox for Firefox Reality on Desktop is marshalled through VRHost so that it can be presented in a VR environment.
A new class, FxrOutputHandler, is created to manage creating a sharable texture, sharing it through VRShMem, and updating it when content updates. This class updates content with both WebRender and conventional rendering output.
This initial iteration of FxrOutputHandler does not have synchronization between reading and writing this shared texture across processes. A subsequent fix (Bug 1581881) is pending, which will reuse WebVR code to manage writing to and reading from a pool of textures.
This also presents issues with rendering protected media, so an additional class, FxrWindowManager, is created to manage all windows created for Firefox Reality on Desktop so that it can inform whether or not protected media can be presented.
The automated manual tests in vrhosttest.cpp now show the real shared texture handle rather than a fake value, which shows that marshaling succeeded.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 12:50:44 +00:00
sotaro
4f131bcbd5 Bug 1572222 - Revert TooManyPendingFrames() logic r=nical
Before  Bug 1570869, new frame was generated if WR does not have a pending frame build task. But  since Bug 1570869 fix, there is a case that new frame generation does not happen even when WR does not have a frame build task.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 09:29:24 +00:00
sotaro
f3029ff35f Bug 1583703 - Fix reset handling in RenderThread::HandleFrameOneDoc() r=nical
Move DeviceReset handling before the assert. It is OK, since RendererOGL instance is not re-used after the DeviceReset. It is replaced by a new RendererOGL.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 09:52:04 +00:00
Dorel Luca
f1e99da78f Backed out changeset c2c9dbf826fe (bug 1581757) by dev's request 2019-09-26 12:37:59 +03:00
Glenn Watson
2637b20d2f Bug 1581757 - Support slicing the scene into an arbitrary number of picture cache slices r=nical,kvark
Previously, the setup_picture_caching function was hard coded
to support only a very specific shape of display list. With this
change, flags are added to PrimitiveCluster that can specify
if a picture cache slice should be created before / after this
cluster when picture caching is set up.

The usage of these flags in this patch matches the old behaviour,
so should not have any functional effect.

However, in future we will make use of this functionality to
create picture slices for a number of different use cases, such as:

 * Creating cache tiles for the UI.
 * Slicing the scene where there are video elements, in order to
   allow these to be composited directly by the OS. This may also
   apply to WebGL and/or canvas elements.
 * Slicing the scene when there is a very large fixed position
   background image or other element, to avoid invalidating the
   entire tile cache each frame.

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

--HG--
extra : moz-landing-system : lando
2019-09-25 20:38:42 +00:00
Ciure Andrei
f4b3bef121 Backed out changeset 70f93c9956fc (bug 1581855) for Windows MinGW build bustages CLOSED TREE 2019-09-26 06:42:46 +03:00
thomasmo
f054c8db61 Bug 1581855:Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
This change is a continuation of Part 1 (Bug 1570128), where the 2D content rendered by Firefox for Firefox Reality on Desktop is marshalled through VRHost so that it can be presented in a VR environment.
A new class, FxrOutputHandler, is created to manage creating a sharable texture, sharing it through VRShMem, and updating it when content updates. This class updates content with both WebRender and conventional rendering output.
This initial iteration of FxrOutputHandler does not have synchronization between reading and writing this shared texture across processes. A subsequent fix (Bug 1581881) is pending, which will reuse WebVR code to manage writing to and reading from a pool of textures.
This also presents issues with rendering protected media, so an additional class, FxrWindowManager, is created to manage all windows created for Firefox Reality on Desktop so that it can inform whether or not protected media can be presented.
The automated manual tests in vrhosttest.cpp now show the real shared texture handle rather than a fake value, which shows that marshaling succeeded.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 01:18:58 +00:00
Lee Salzman
d035c3d0c0 Bug 1578075 - Increase stack size of paint threads on macOS Catalina to 2MB. r=jrmuizel
Still getting some crash reports on nightly with a 1MB stack. Let's try one more time
with 2MB just to see if we can eliminate those. If this fails, then we may need to consider
more drastic approaches like disabling OMTP in this case.

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

--HG--
extra : moz-landing-system : lando
2019-09-26 02:31:15 +00:00
Bobby Holley
585847b17a Bug 1583998 - Implement a pref to obscure images. r=gw
This approach does have some stacking issues. The way to fix this would
be to instrument the brush_image shader rather than adding debug rects.

Something like: #ifdef WR_FEATURE_SFW frag.color = vec4(0,1,1,1); #endif

That's slightly more involved though, so I'm going to leave it for now.

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

--HG--
extra : moz-landing-system : lando
2019-09-25 21:48:35 +00:00
Bobby Holley
d599cb6095 Bug 1583998 - Refactor debug rectangles to allow the outer and inner colors to be explicitly specified. r=gw
The current code doesn't permit fully opaque debug rects.

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

--HG--
extra : moz-landing-system : lando
2019-09-25 21:46:20 +00:00
Andreea Pavel
9fd779e03f Merge mozilla-central to autoland on a CLOSED TREE 2019-09-26 01:00:14 +03:00
Andreea Pavel
bd0ebde417 Merge autoland to mozilla-central. a=merge 2019-09-26 00:50:57 +03:00