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

36916 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 48971d875b Bug 1634253 - P5. Make threading model clearer. r=kats
CompositorBridgeParent::ScheduleTask was always called from the compositor thread ; so make it explicit that we are dispatching the task to the compositor thread.

We inline the method instead.

Differential Revision: https://phabricator.services.mozilla.com/D73824
2020-05-08 20:20:25 +00:00
Andrew Osmond 470d4c6138 Bug 1605642 - Fix glyph distortion during animations. r=lsalzman
When we animate text, we rasterize the glyphs in an arbitrary local
space once, and scale them during the animation. Some glyphs may be
pressed against the edge of the texture, resulting in artifacts due to
how the sampling works in the shader. This patch fixes the sampling
issues by padding glyph textures with an extra transparent pixel border.
This only applies to glyphs that are rasterized in local space.

This patch does not add the extra padding for Mac because it is already
padding its glyphs for Mac-specific reasons, and does not appear to be
as suspectible to the problem.

Differential Revision: https://phabricator.services.mozilla.com/D74457
2020-05-08 20:23:41 +00:00
Jim Blandy 9f699a4611 Bug 1598972: Consider gradients as tile backdrops. r=gw
The fix for bug 1621390 extended the tile backdrop computation to recognize
images. This patch extends that to consider gradients as potential
backdrops as well.

Differential Revision: https://phabricator.services.mozilla.com/D70458
2020-05-07 19:55:24 +00:00
Jeff Muizelaar 25633c1166 Bug 1636307 - Reenable device lost testing on WebRender. r=kats
This was disabled in bug 1389000. It seems to pass now.

Differential Revision: https://phabricator.services.mozilla.com/D74468
2020-05-08 20:37:36 +00:00
Lee Salzman 185ad4f96e Bug 1636014 - handle signed overflow for SWGL text blend funcs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74187
2020-05-08 19:07:08 +00:00
Dzmitry Malyshau 55d40f2461 Bug 1631331 - Handle a case where WebRender can't initialize GPU cache r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74462
2020-05-08 19:57:36 +00:00
Jeff Gilbert 591b976783 Bug 1633628 - Vender: Don't use ClearView if we previously used dual source blending on Intel gen6. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74137
2020-05-08 19:28:53 +00:00
Chris Fronk af8a02cc9d Bug 1512991 - Add JsonWriteFunc::Write to take string length. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D72560
2020-05-08 16:24:31 +00:00
Narcis Beleuzu 2a7e80bbbb Backed out 3 changesets (bug 1635001) for causing bustages on RemoteContentController.cpp . CLOSED TREE
Backed out changeset 62d98215d177 (bug 1635001)
Backed out changeset bc73609fc638 (bug 1635001)
Backed out changeset 26daca5f7dab (bug 1635001)
2020-05-08 23:41:40 +03:00
Narcis Beleuzu 58a833221c Backed out 9 changesets (bug 1634253) for bc failures on browser_bug295977_autoscroll_overflow.js . CLOSED TREE
Backed out changeset d41b75c1f7ec (bug 1634253)
Backed out changeset 5f8a1ee17b81 (bug 1634253)
Backed out changeset 43eda078b405 (bug 1634253)
Backed out changeset e98212a74709 (bug 1634253)
Backed out changeset 855e222ceb14 (bug 1634253)
Backed out changeset 9f01acdf4367 (bug 1634253)
Backed out changeset ea62cb1ec472 (bug 1634253)
Backed out changeset fa3e7588e7d6 (bug 1634253)
Backed out changeset 139e7035e736 (bug 1634253)
2020-05-08 23:09:31 +03:00
thomasmo 59be1c47cd Bug 1635608 - Update OpenVR source code to use Unix line endings r=daoshengmu
This change simply changes line endings to make diffing easier with updates from OpenVR, which have Unix line endings.
Further, .clang-format-ignore, does not seem to work for wildcard to match a directory and subdirectory, so all files are listed individually.

Differential Revision: https://phabricator.services.mozilla.com/D74100
2020-05-07 20:20:39 +00:00
Jean-Yves Avenard 3d167e6590 Bug 1635001 - P3. Fix APZ controller thread-safety access. r=kats
The APZ was keeping a raw pointer to the controller thread. This was a dangerous exercise.
This was okay on desktop, as the controller thread was the main thread and would have outlived everything else. On Android however it's the UI thread and it could get deleted before we received a last input event.

So we use a strong pointer instead to prevent the thread from being deleted and as such, we now needs to explicitly clear it on shutdown.

This requires the various methods in APZThreadUtils to be made thread-safe so that the controller thread can be shutdown mid-air.

Differential Revision: https://phabricator.services.mozilla.com/D73830
2020-05-07 08:30:22 +00:00
Jean-Yves Avenard 4329c55477 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-07 08:30:22 +00:00
Jean-Yves Avenard d9b6b0b5c2 Bug 1635001 - P1. Make threading model clearer when dispatching tasks on the controller thread. r=kats
RemoteContentController::PostDelayedTask must be called on the controller thread; and all the 3 implementations are doing is dispatching the task on the current MessageLoop.

The naming and that the method was pure virtual made it a bit confusing as it gave the impression we would dispatch the task on the controller's internal thread, which wasn't the case.

So we make a generic implementation and assert to the documented use.

Differential Revision: https://phabricator.services.mozilla.com/D73828
2020-05-07 08:30:21 +00:00
Jean-Yves Avenard 2facca62f0 Bug 1634253 - P8. Remove use of MessageLoop in Canvas. r=mattwoodrow
MessagePool brings no benefit over the traditional nsIThread.

Additonally, replace some incorrect use of RefPtr for xpcom objects.

Differential Revision: https://phabricator.services.mozilla.com/D73827
2020-05-08 11:44:59 +00:00
Jean-Yves Avenard c07b64c378 Bug 1634253 - P7. Re-enable BackgroundHangMonitor on Compositor thread. r=froydnj
We re-enable the option to have a BackgroundHangMonitor on the compositor thread that was removed earlier..

Differential Revision: https://phabricator.services.mozilla.com/D73826
2020-05-07 08:04:30 +00:00
Jean-Yves Avenard f304da03ac Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 08:04:53 +00:00
Jean-Yves Avenard 444a610296 Bug 1634253 - P5. Make threading model clearer. r=kats
CompositorBridgeParent::ScheduleTask was always called from the compositor thread ; so make it explicit that we are dispatching the task to the compositor thread.

We inline the method instead.

Differential Revision: https://phabricator.services.mozilla.com/D73824
2020-05-07 08:04:32 +00:00
Lee Salzman d94331c3ca Bug 1635661 - lower interpolant usage in SWGL. r=jrmuizel
Depends on D74000

Differential Revision: https://phabricator.services.mozilla.com/D74001
2020-05-07 03:45:28 +00:00
Lee Salzman fbab072082 Bug 1635661 - store WR YUV shader layers in flat varying to reduce interpolant usage. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74000
2020-05-07 04:09:40 +00:00
Lee Salzman c864b9fc4f Bug 1635649 - optimize texture(sampler2DArray) for same layer in SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D73993
2020-05-07 04:08:41 +00:00
Lee Salzman f4e2895339 Bug 1635616 - shuffling optimizations for SWGL x86 bilinear filtering code. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D73979
2020-05-08 09:58:23 +00:00
Jonathan Kew f7f1b28b77 Bug 1634670 - Fonts bundled with the application should be treated as part of the base font set, not as user-installed fonts. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D73437
2020-05-08 09:25:37 +00:00
Jonathan Kew c4e8c700da Bug 1634677 - patch 3 - Collect telemetry for cases where platform font fallback wanted to use a font that is blocked from visibility to CSS. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D74043
2020-05-08 08:58:08 +00:00
Jonathan Kew 480e9d033f Bug 1634677 - patch 2 - Ensure mCodepointsWithNoFonts is cleared if the font visibility pref changes. r=jwatt
Depends on D73441

Differential Revision: https://phabricator.services.mozilla.com/D74042
2020-05-07 21:10:59 +00:00
Jonathan Kew a16705e745 Bug 1634677 - patch 1 - Add a pref to control visibility of different categories of installed font families. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D73441
2020-05-07 21:10:46 +00:00
Jonathan Kew 1a413b21f7 Bug 1632738 - Hide the Gill Sans family on Windows if it contains only Ultra Bold faces. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D72629
2020-05-08 08:41:03 +00:00
Erik Nordin f10166a614 Bug 1635584 - Make BackdropFilter's Availability Depend on WebRender r=emilio
- Enable BackdropFilter pref by default
  - Add function IsBackdropFilterAavailable()
  - Use IsBackdropFilterAvailable for relevant WebIDL instead of pref
  - Add test for BackdropFilter availability

Differential Revision: https://phabricator.services.mozilla.com/D73967
2020-05-08 05:54:26 +00:00
Makoto Kato 87b65f5492 Bug 633109 - Use system font iterator APIs if Andorid API 29+. r=jfkthame
Android API 29 or later has font matcher and system font API that is for
accessing font data from native code.

Although Android's Default fonts are installed `/system/fonts`, some vendors
also install some fonts in another directories.

Example, Pixel 2's fonts are installed in `/system/fonts` and `/product/fonts`.

Differential Revision: https://phabricator.services.mozilla.com/D70533
2020-05-07 11:03:08 +00:00
Timothy Nikkel 95e9c5bc76 Bug 1636305. End every subtest in gfx/tests/gtest/TestVsync.cpp by disabling vsync. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D74336
2020-05-08 01:44:32 +00:00
Timothy Nikkel 0ddee13c53 Bug 1635658. Fix how CSS filters render with webrender that are represented as component transfer when they are required to be represented as SVG filters. r=mstange
The brightness, contrast, and invert css filters are represented as component transfer filters when they required to be represented as an svg filter (ie when an element has a combination of CSS and SVG filters specified).

https://hg.mozilla.org/mozilla-central/rev/4f3360c4f104 (bug 1417699) used the value SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN for the function type in the G and B channels to specify that the R channel function should be used. As we know from https://hg.mozilla.org/mozilla-central/rev/a1ff0af83ad2 (bug 1605223) SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN is the value we get if the function is not specified, and by spec that is to be interpreted as the identity function.

To fix this use a special function type that is not exposed to content, SVG_FECOMPONENTTRANSFER_SAME_AS_R, when we want to do this optimization. And then teach the webrender filter code to understand it.

Differential Revision: https://phabricator.services.mozilla.com/D74189
2020-05-07 23:39:56 +00:00
Razvan Maries d52f7a898c Backed out 2 changesets (bug 1635584) for build bustages. CLOSED TREE
Backed out changeset 059ed60f23bf (bug 1635584)
Backed out changeset 876b8f443cca (bug 1635584)
2020-05-08 00:47:31 +03:00
Erik Nordin 3cd3cc6820 Bug 1635584 - Make BackdropFilter's Availability Depend on WebRender r=emilio
- Enable BackdropFilter pref by default
  - Add function IsBackdropFilterAavailable()
  - Use IsBackdropFilterAvailable for relevant WebIDL instead of pref
  - Add test for BackdropFilter availability

Differential Revision: https://phabricator.services.mozilla.com/D73967
2020-05-06 23:47:06 +00:00
Bert Peers b632b808c3 Bug 1628175 - WebGL is drawn into the picture cache and then onto the screen r=gw
Part 2 - look at the resulting transforming of a promoted surface, and
if it a scale and translate, allow compositing.
For RGB surfaces, support a flip_y option to handle the WebGL origin.
DPI is implicitly handled by allocating a DWM surface at device
resolution.

Differential Revision: https://phabricator.services.mozilla.com/D72783
2020-05-07 19:37:27 +00:00
Razvan Maries f38ed46452 Backed out changeset 2cedf945f040 (bug 1347710) as per Chris's request. CLOSED TREE 2020-05-07 21:56:51 +03:00
Coroiu Cristina 58cc847a1c Merge mozilla-central to autoland a=merge on a CLOSED TREE 2020-05-07 19:47:01 +03:00
Coroiu Cristina 69f1c7736c Backed out changeset 302c30b598b0 (bug 1633628) for causing bug 1636122 a=backout 2020-05-07 17:36:13 +03:00
Nicolas Silva c17a60327f Bug 1635472 - Move the displayport by 512 increments with WebRender. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D73914
2020-05-07 10:29:23 +00:00
Simon Giesecke 61ad805d68 Bug 1626570 - Use CopyableTArray in ipdlc as member type for now. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D73685
2020-05-07 08:11:08 +00:00
Dorel Luca 9340fa2b2d Backed out 11 changesets (bug 1635001, bug 1634253) for Browser-chrome failures in browser_bug295977_autoscroll_overflow.js
Backed out changeset c3c27cb46db6 (bug 1635001)
Backed out changeset 6cea251e5910 (bug 1635001)
Backed out changeset 3cb0a05be7fc (bug 1635001)
Backed out changeset 1cbb2866a3ad (bug 1634253)
Backed out changeset 53fd00dcf95c (bug 1634253)
Backed out changeset e3acd9db7065 (bug 1634253)
Backed out changeset 5c0b7aa99406 (bug 1634253)
Backed out changeset dc7e17f772be (bug 1634253)
Backed out changeset 6e47af64396a (bug 1634253)
Backed out changeset 8865de9ae0ef (bug 1634253)
Backed out changeset 6fac93b596c2 (bug 1634253)
2020-05-07 11:00:04 +03:00
Jean-Yves Avenard d258c14e4a Bug 1635001 - P3. Fix APZ controller thread-safety access. r=kats
The APZ was keeping a raw pointer to the controller thread. This was a dangerous exercise.
This was okay on desktop, as the controller thread was the main thread and would have outlived everything else. On Android however it's the UI thread and it could get deleted before we received a last input event.

So we use a strong pointer instead to prevent the thread from being deleted and as such, we now needs to explicitly clear it on shutdown.

This requires the various methods in APZThreadUtils to be made thread-safe so that the controller thread can be shutdown mid-air.

Differential Revision: https://phabricator.services.mozilla.com/D73830
2020-05-07 05:07:02 +00:00
Jean-Yves Avenard e6903a6550 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-07 05:07:00 +00:00
Jean-Yves Avenard f69423d1a2 Bug 1635001 - P1. Make threading model clearer when dispatching tasks on the controller thread. r=kats
RemoteContentController::PostDelayedTask must be called on the controller thread; and all the 3 implementations are doing is dispatching the task on the current MessageLoop.

The naming and that the method was pure virtual made it a bit confusing as it gave the impression we would dispatch the task on the controller's internal thread, which wasn't the case.

So we make a generic implementation and assert to the documented use.

Differential Revision: https://phabricator.services.mozilla.com/D73828
2020-05-07 05:06:07 +00:00
Jean-Yves Avenard 41502d2149 Bug 1634253 - P8. Remove use of MessageLoop in Canvas. r=mattwoodrow
MessagePool brings no benefit over the traditional nsIThread.

Additonally, replace some incorrect use of RefPtr for xpcom objects.

Differential Revision: https://phabricator.services.mozilla.com/D73827
2020-05-07 05:03:57 +00:00
Jean-Yves Avenard 43ebde7c58 Bug 1634253 - P7. Re-enable BackgroundHangMonitor on Compositor thread. r=froydnj
We re-enable the option to have a BackgroundHangMonitor on the compositor thread that was removed earlier..

Differential Revision: https://phabricator.services.mozilla.com/D73826
2020-05-07 05:03:50 +00:00
Jean-Yves Avenard 96d7622823 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 05:03:42 +00:00
Jean-Yves Avenard 147c8cf3ef Bug 1634253 - P5. Make threading model clearer. r=kats
CompositorBridgeParent::ScheduleTask was always called from the compositor thread ; so make it explicit that we are dispatching the task to the compositor thread.

We inline the method instead.

Differential Revision: https://phabricator.services.mozilla.com/D73824
2020-05-07 05:02:53 +00:00
Timothy Nikkel 0f7e05367e Bug 1635710. End gfx/tests/gtest/TestVsync.cpp by leaving vsync disabled. r=jrmuizel
If not, vsync keeps going and can get called after the main thread has gone away, and in VsyncSource::Display::NotifyVsync (with the patches for bug 1630912) we try to dispatch to the main thread which fails and asserts.

Differential Revision: https://phabricator.services.mozilla.com/D74017
2020-05-07 01:24:04 +00:00
Bogdan Tara 6eef4f3616 Backed out changeset 6e34a3e2c5c5 (bug 1625249) for browser_test_hittest_svg_over_iframe.js failures CLOSED TREE 2020-05-07 01:59:26 +03:00
Jeff Gilbert 34f978dcdc Bug 1633628 - Vender: Don't use ClearView if we previously used dual source blending on Intel gen6. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74137
2020-05-06 22:04:28 +00:00