Commit Graph

30978 Commits

Author SHA1 Message Date
Doug Thayer
9b8d38aa6a Bug 1483533 - Switch to glClientWaitSync for texture syncing r=jrmuizel
glFenceSync/glClientWaitSync just seem to be more well supported
on nvidia hardware, and they work fine as well on AMD/intel, so
I'm transitioning to that.

Depends on D6463

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

--HG--
extra : moz-landing-system : lando
2018-09-25 13:41:25 +00:00
Doug Thayer
3058162f1a Bug 1483533 - Undo deferment of glDeleteTextures r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D6463

--HG--
extra : moz-landing-system : lando
2018-09-25 13:38:42 +00:00
Kearwood "Kip" Gilbert
f65dbeca74 Bug 1473397 - Implement haptic feedback support for gfxVRExternal and OpenVRSession r=daoshengmu
- Implemented 1ms, 10ms, and 100ms VR tasks, dispatched from
  VRManager
- Removed Android-specific code that compensated for
  tasks that did not run when the...

...compositor was paused.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 22:56:10 +00:00
Daosheng Mu
e807dc8d6a Bug 1488573 - Part 2: Checking OpenVR btn/axis count at runtime to avoid array overflow. r=kip
MozReview-Commit-ID: 5KgcuAcKCmO

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

--HG--
extra : moz-landing-system : lando
2018-09-25 22:00:30 +00:00
Daosheng Mu
ab575da60d Bug 1488573 - Part 1: Add crash log for VR controllers have unmatched button/axis count. r=kip
MozReview-Commit-ID: 8F3cDiZJ7ef

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

--HG--
extra : moz-landing-system : lando
2018-09-25 21:58:35 +00:00
Daosheng Mu
a1355f493d Bug 1493835 - Don't notify VR process shutdown when no GPUChild connection. r=kip
MozReview-Commit-ID: ZXs6SldKcw

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

--HG--
extra : moz-landing-system : lando
2018-09-25 21:48:55 +00:00
Ciure Andrei
7426f19d64 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-26 00:51:44 +03:00
Ciure Andrei
ce57be88b8 Merge inbound to mozilla-central. a=merge 2018-09-26 00:49:06 +03:00
Jean-Yves Avenard
4b37d5848f Bug 1493198 - P3. Fix typo and use move semantics. r=nical
Depends on D6663

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

--HG--
extra : moz-landing-system : lando
2018-09-25 12:18:58 +00:00
Jean-Yves Avenard
b10364a15f Bug 1493198 - P2. Use enum for describing color depth. r=mattwoodrow
Depends on D6662

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

--HG--
extra : moz-landing-system : lando
2018-09-25 20:44:55 +00:00
Jean-Yves Avenard
7b6d1c117d Bug 1493198 - P1. Make ImageDescriptor::is_opaque an enum and rename accordingly. r=nical
Prevent future ambiguous conversion once a bit depth int is added.
Also more self-explanatory

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

--HG--
extra : moz-landing-system : lando
2018-09-24 14:24:30 +00:00
Jean-Yves Avenard
568993ed7f Bug 1469711 - P2. Add 10/12 bits YUV support to D3D11 legacy compositor. r=mattwoodrow
Depends on D6492

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

--HG--
extra : moz-landing-system : lando
2018-09-24 20:08:26 +00:00
Jean-Yves Avenard
cfc24b769e Bug 1469711 - P1. Add 10/12 bits YUV support to D3D11 compositor. r=mattwoodrow
This change is for D3D11 with Advanced Layers enabled.

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

--HG--
extra : moz-landing-system : lando
2018-09-25 11:18:34 +00:00
Jeff Muizelaar
c17d732814 Bug 1493890. Adjust for do_aa paramter. 2018-09-25 13:04:36 -04:00
Jeff Muizelaar
d830219951 Bug 1493890. Update webrender to commit 2549b791abb3a24c115d03616ddd82e14727b5a1 2018-09-25 13:04:02 -04:00
Andrew Osmond
4f2d97a823 Bug 1492930 - Part 5. Integrate extra shared surface memory reporting with gfx. r=nical
This patch enables the compositor process memory reporting for both the
dedicated GPU process case, and the integrated with the main process
case. This will simply cause us to list all of the entries in the shared
surfaces cache to show what is presently mapped in.
2018-09-25 09:13:51 -04:00
Andrew Osmond
d70925f00b Bug 1492930 - Part 4. Add ImageMemoryReporter to support extra shared surfaces reporting. r=tnikkel
By delegating responsibility for shared surfaces reporting to imagelib,
we can cross reference the GPU shared surfaces cache with the local
surface cache in a content process (or the main process). This will
allow us to identify entries that are in the GPU cache but not in the
content/main process cache, and aid in debugging memory leaks. This
functionality is pref'd off by default behind image.mem.debug-reporting.

Additionally, we want to report every entry that was mapped into the
compositor process, in the compositor process memory report. This will
give us a sense of how much of our resident memory is consumed by mapped
images in absence of the more detailed cross referencing above.
2018-09-25 09:13:51 -04:00
Andrew Osmond
64e9e7e583 Bug 1492930 - Part 2. Expose the external image ID for surfaces' memory reporting. r=nical 2018-09-25 09:13:51 -04:00
Andrew Osmond
3aedcdc649 Bug 1492930 - Part 1. Expose composition of shared surfaces cache to allow memory reporting. r=nical
This exposes methods to capture a snapshot of the SharedSurfacesParent
cache for memory reporting purposes. It yields the identifiers, image
properties and references to images mapped in the cache. This will be
used by the compositor process to list everything it has mapped into its
memory space. It will also be used by the content processes / main
process to list images that specific process had mapped into the
compositor process. This will allow us to easily identify what images
remain in the compositor process, but are missing from the surface
cache.
2018-09-25 09:13:51 -04:00
Jeff Muizelaar
91009d358f Bug 1493496. Update webrender to commit b83ec3fd994b69f31e9c6b6ffa19426b2b98c66a 2018-09-24 23:16:44 -04:00
Andrew Osmond
0d598af0f9 Bug 1493590 - Fix crash in GPUVideoImage::GetData. r=mattwoodrow
The texture client bound in a GPUVideoImage can be destroyed underneath
it if the GPU process crashed and was restarted. This is because the
ImageBridgeChild singleton will destroy any textures bound to it before
reinitializing itself. If there is a race to access a now stale
GPUVideoImage object, we could accidently dereference the underlying
TextureData which is now null in the TextureClient which was kept alive
in the GPUVideoImage object. Now we check to make sure the TextureData
is still there before accessing.
2018-09-24 17:11:00 -04:00
Nicolas Silva
510a2d5cf0 Bug 1477819 - Defer ObserveLayersUpdate to after scene building. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D6514

--HG--
extra : source : 8b40085bcfbb37d070152e9d1752f5a8ed52b0a6
extra : histedit_source : b3ff6509c258c92a55b57047af5c337d921f7a57
2018-09-21 18:47:18 +02:00
Nicolas Silva
924db561d6 Bug 1477819 - Expose Transaction::Notify in WebRender's C++ wrapper. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D6515

--HG--
extra : source : 8d58404d71eb944d9dda642c8dc2f53f1d291671
extra : histedit_source : f469b56422dadfe5a5f67faa9e9efddd5839d1ce
2018-09-24 17:53:36 +02:00
Zibi Braniecki
c2634d4438 Bug 1493220 - Migrate mozIOSPreferences to use Array<> interface. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D6524

--HG--
extra : moz-landing-system : lando
2018-09-22 07:49:05 +00:00
Jeff Muizelaar
0640ea80fb Bug 1493473. Update webrender to 4e7d0ed1b08f5402a6971230864a7e497b2453ec 2018-09-22 23:11:30 -04:00
Jeff Muizelaar
24fdba412e Bug 1493268. Re-generate FFI header and adjust bindings.
Changes GlyphRasterSpace to RasterSpace.
2018-09-22 21:19:52 -04:00
Jeff Muizelaar
194dc0ec33 Bug 1493268. Update webrender to commit 3f6016fbb6fb93b2f1fc7046bce186555ca836f3 2018-09-22 21:18:41 -04:00
Jonathan Kew
1866f4c3a7 Bug 1493418 - nsThebesFontEnumerator needs to convert font names from UTF-8 (not Latin-1) to UTF-16. r=lsalzman 2018-09-22 23:29:22 +01:00
Jeff Muizelaar
8d0131224b Bug 1490033. Use IsStyleMaybeAnimated to set up snapping surface transform. r=mstange
This catches all animations instead of those that only run on the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D6543
2018-09-21 23:28:34 -04:00
Jeff Muizelaar
c53343f961 Bug 1491590. Make sure that the paint rect is set to the bounds. r=mstange
This prevents us from doing unnecessary drawing because we clip to
the bounds of the item.

Differential Revision: https://phabricator.services.mozilla.com/D6428
2018-09-21 18:53:41 -04:00
Jeff Muizelaar
90fbfc8d8a Bug 1447880. Paint nsDisplayMasks directly instead of using a BasicLayerManager. r=mstange
This allows us to invalidate individual items inside of the mask instead of
treating the mask and it's children as a single item.

Differential Revision: https://phabricator.services.mozilla.com/D6224
2018-09-21 18:50:23 -04:00
Jeff Muizelaar
f2485f9b16 Bug 1447880. Allow PaintMaskAndClipPath to support different ways of painting its children. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6223
2018-09-21 18:50:08 -04:00
Jeff Muizelaar
e6183a10a0 Bug 1447880. Handle inactive 3d transforms. r=mstange
It isn't possible to trigger this code currently because
the only way to have an inactive 3d transform is with a mask
or filter item and those get handled with a BasicLayerManager.

This becomes necessary once we handle mask items internally.

Differential Revision: https://phabricator.services.mozilla.com/D6222
2018-09-21 18:49:32 -04:00
Bogdan Tara
3e0d3c693c Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-22 01:06:13 +03:00
Bobby Holley
2a7a7feb5f Bug 1492263 - Add more memory reporters. r=gw
Reviewers: gw

Tags: #secure-revision

Bug #: 1492263

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

MozReview-Commit-ID: 7uGxPsbMkaf
2018-09-21 14:59:10 -07:00
Jeff Muizelaar
52d34517db Bug 1493097. Re-generate FFI header
--HG--
extra : rebase_source : abe143f7864541645763c9fa1afbdf251f223b89
2018-09-21 15:40:34 -04:00
Jeff Muizelaar
d7b9762836 Bug 1493097. Update webrender to commit 97a3807ea8266c324feb3ecada2ac5fd78c80e9b
--HG--
extra : rebase_source : c01507424aa77d0f21fc25218f10c19309e8b6ba
2018-09-21 15:36:53 -04:00
Jeff Muizelaar
b1a30b1cb4 Bug 1492615. Improve logging even more r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6432

--HG--
extra : moz-landing-system : lando
2018-09-21 12:56:53 +00:00
Brindusan Cristian
57067c9ef0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-21 20:31:41 +03:00
Botond Ballo
0719570507 Bug 1457603 - Downgrade the diagnostic assert in InputBlockState::SetConfirmedTargetApzc() to a regular assert. r=kats
As explained in the bug, it has been difficult ot find reliable STR for
the diagnostic assert, and it has been impacting the stability and usability
of Nightly builds.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 17:18:52 +00:00
Ryan Hunt
6278da4916 Bug 1486959 - Remove bogus assertion in ContentClient. r=nical
It's possible to trigger this assertion with asyncPaint = true and
bufferRotation != (0, 0). In this case though everything should work fine,
because we didn't start a new paint task, and we should be able to copy over
buffers. So we should be able to remove this assertion.

--HG--
extra : amend_source : d4cb9eddf48e08446469d2e1891f0e9ed3bb85d0
2018-09-20 10:54:19 -05:00
Emilio Cobos Álvarez
f7c1f3b135 Bug 1470440: Add a crashtest. r=me 2018-09-21 15:29:49 +02:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Gurzau Raul
9c1ca9e6e7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-21 07:17:03 +03:00
Gurzau Raul
b1522a7bf0 Merge inbound to mozilla-central. a=merge 2018-09-21 07:13:51 +03:00
Jeff Muizelaar
341b1c6aee Bug 1492880. Re-generate FFI header 2018-09-20 23:30:03 -04:00
Jeff Muizelaar
bb303b7ca0 Bug 1492880. Update webrender to commit a601f9c291cee83257241ef61aaf62353c613438 2018-09-20 23:27:49 -04:00
Andrew Osmond
c5be5d2b08 Bug 1492925 - Ensure we release the shared surfaces when a WebRender pipeline is removed. r=sotaro 2018-09-20 21:27:50 -04:00
Andrew Osmond
5f4c3fc4b2 Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs in the surface cache. r=tnikkel
There is one main difference between raster images and vector images
with respect to factor of 2 scaling. Vector images may be scaled
infinitely and so we need to extend factor of 2 scaling to permit
growing instead of just shrinking. Also, we don't want to scale
infinitely, so we should configure a maximum size limit. This size limit
will apply even outside of factor of 2 scaling, and so the caller
(VectorImage) will need to be careful to take this into account.
2018-09-20 20:22:03 -04:00
Andreea Pavel
3805f6a285 Backed out 3 changesets (bug 1456558) for crashtest assertion failures on a CLOSED TREE
Backed out changeset 70d8f11cf6e8 (bug 1456558)
Backed out changeset af9fc3daf97c (bug 1456558)
Backed out changeset f209a9d848f4 (bug 1456558)
2018-09-21 02:13:41 +03:00