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

34284 Коммитов

Автор SHA1 Сообщение Дата
Jamie Nicol 45b50b0912 Bug 1566211 - Handle filesystem errors in webrender program cache. r=bholley
A few potential error cases were being unwrapped, resulting in a very
small number of crashes. These errors can be safely ignored as the
program cache is non-critical, so this change makes us log the error
and continue rather than panicking.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 16:44:05 +00:00
Nicholas Nethercote 7974362afd Bug 1567329 - Append `_AtStartup` to `once` static pref getters. r=erahm
Currently it's completely unclear at use sites that the getters for `once`
static prefs return the pref value from startup, rather than the current pref
value. (Bugs have been caused by this.) This commit improves things by changing
the getter name to make it clear that the pref value obtained is from startup.

This required changing things within libpref so it distinguishes between the
"base id" (`foo_bar`) and the "full id" (`foo_bar` or
`foo_bar_DoNotUseDirectly` or `foo_bar_AtStartup` or
`foo_bar_AtStartup_DoNotUseDirectly`; the name used depends on the `mirror` and
`do_not_use_directly` values in the YAML definition.) The "full id" is used in
most places, while the "base id" is used for the `GetPrefName_*` and
`GetPrefDefault_*` functions.

(This is a nice demonstration of the benefits of the YAML file, BTW. Making
this change with the old code would have involved adding an entry to every
single pref in StaticPrefList.h.)

The patch also rejigs the comment at the top of StaticPrefList.yaml, to clarify
some things.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 02:10:14 +00:00
Nicholas Nethercote 77d69c5853 Bug 1567329 - Change `_do_not_use_directly` suffixes to `_DoNotUseDirectly`. r=erahm
This better distinguishes it from the pref name part of the getter, which uses
snake case.

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

--HG--
extra : moz-landing-system : lando
2019-07-22 02:09:55 +00:00
Andreea Pavel c07a5d8ccc Merge mozilla-inbound to mozilla-central a=merge 2019-07-20 12:51:57 +03:00
Mihai Alexandru Michis e637325c0e Merge mozilla-central to mozilla-inbound. a=merge
--HG--
extra : amend_source : f93ba2cbe8a0ea251a8c95dd565117a109e25a91
2019-07-20 01:23:23 +03:00
Csoregi Natalia 660053d99f Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-19 18:31:03 +03:00
Kartikaya Gupta c4f1f8d59a Bug 1563622 - Miscellaneous useful logging. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38241

--HG--
extra : moz-landing-system : lando
2019-07-19 16:27:23 +00:00
Kartikaya Gupta f4bc456b75 Bug 1563622 - Add a fission subtest to exercise the force-dispatch-to-content flag. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38240

--HG--
extra : moz-landing-system : lando
2019-07-19 16:30:47 +00:00
Kartikaya Gupta 9aba740b9f Bug 1563622 - Allow adding additional properties per fission subtest. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38239

--HG--
extra : moz-landing-system : lando
2019-07-19 16:27:05 +00:00
Kartikaya Gupta a03a2dc866 Bug 1563622 - Check the ftdc flag when hit-testing with WR. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37314

--HG--
extra : moz-landing-system : lando
2019-07-19 16:30:25 +00:00
Csoregi Natalia b11f89739a Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-19 12:50:23 +03:00
Lee Salzman e4e9e844a0 Bug 1565158 - allow forcing DWrite symmetric rendering mode. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D38569

--HG--
extra : moz-landing-system : lando
2019-07-19 03:56:50 +00:00
Glenn Watson 210d499332 Bug 1566712 - Fix quality issues with picture caching when the transform has a fractional offset. r=kvark
This patch reverts the previous attempted fix for snapping issues
with picture caching, and implements a better solution.

This fixes the main visual issue by ensuring that any fractional
offset in the root transform is accounted for by:

 * Offsetting the tile rects by this amount, so that the content
   origin is a whole device pixel.
 * Invalidating all tiles if the fractional part of the root
   transform changes. This is required since it can affect the
   snapping logic that WR applies. Fortunately, this occurs
   very rarely - Gecko typically has a constant fractional part
   for each page.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 04:29:21 +00:00
Nicolas Silva 0dc4fc1dc2 Bug 1557208 - Leak WebRender's thread pool. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D38368

--HG--
extra : source : 7b53914d63d0767d9236afedafebbb7e1193ec77
2019-07-17 18:29:53 +02:00
Nicolas Silva a58ba90d31 Bug 1567241 - Update to euclid 0.20. r=kvark, emilio.
Differential Revision: https://phabricator.services.mozilla.com/D38530

--HG--
extra : source : d65512e23a13164f540430ff0c85a1f2a147d8a0
2019-07-18 22:54:16 +02:00
Jonathan Kew 91ee22332b Bug 1513423 - Measure text by always laying out glyphs LTR. r=heycam
Depends on D38298

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

--HG--
extra : moz-landing-system : lando
2019-07-18 04:55:05 +00:00
Mihai Alexandru Michis eb5c88a05d Merge mozilla-central to mozilla-inbound. a=merge 2019-07-18 18:46:47 +03:00
Kartikaya Gupta a42a893678 Bug 1523321 - Followup to fix typo. r=me 2019-07-18 11:28:01 -04:00
Nicolas Silva 1f245ea240 Bug 1565569 - Remove the old pathfinder integration. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37862

--HG--
extra : rebase_source : 93849386dacff73f73481e652e7e5a00f9d019fa
extra : source : 12d70adf7d1c28d0a4f7328c4b4659d4f33db107
2019-07-18 15:07:31 +02:00
Mihai Alexandru Michis 6975564f1a Backed out changeset a2fdbfed0d71 (bug 1566712) for causing Bug 1567089 2019-07-18 15:04:25 +03:00
Cosmin Sabou da855d65d1 Backed out changeset 2095b5ca1769 (bug 1566956) for causing Bug 1567002. a=backout 2019-07-18 12:54:25 +03:00
sotaro 8f7c96a032 Bug 1567347 - Add option of using DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL without DirectComposition r=nical
Differential Revision: https://phabricator.services.mozilla.com/D38588

--HG--
extra : moz-landing-system : lando
2019-07-19 09:26:03 +00:00
Nicholas Nethercote 70de90ef56 Bug 1564724 - Tweak StaticPrefList.h. r=glandium
Minor things to ease the transition to StaticPrefList.yaml.

- Rename apz_touch_drag_enabled() to the correct apz_drag_touch_enabled(), and
  media_mwf_low_latency_force_disabled() to the correct
  media_wmf_low_latency_force_disabled().

- Change some trailing C-style comments to C++-style comments. This makes life
  easier for the script I wrote to convert StaticPrefList.h to
  StaticPrefList.yaml, which will be used for the next patch.

- Avoid comments on #define lines, because they aren't handled in the YAML
  input.

- Convert a multi-line `#if` condition to a single line, because
  Preprocessor.py doesn't handle multi-line conditions.

- Remove one unnecessary `#undef PREF_VALUE` directive.

- Move intl.charset.detector.iso2022jp.allowed to the correct section, so the
  YAML processing script won't complain.

- Change an `int` pref to `int32_t`, again so the YAML processing script won't
  complain.

- Change OS_OPENBSD to XP_OPENBSD, because the former isn't defined for
  preprocessor.py. (It's also only defined in C/C++ when chromium-config.h is
  included, which isn't always the case.)

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

--HG--
extra : moz-landing-system : lando
2019-07-17 22:36:35 +00:00
David Walsh 5b1625c2cb Bug 1561723 - Add debugger to whitelist for import-pr usage r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D36082

--HG--
rename : gfx/thebes/mach_commands.py => tools/vcs/mach_commands.py
extra : moz-landing-system : lando
2019-07-19 14:18:56 +00:00
Dzmitry Malyshau 54f5b4cbf0 Bug 1567173 - WR Rawtest comparisons r=gw
Differential Revision: https://phabricator.services.mozilla.com/D38499

--HG--
extra : moz-landing-system : lando
2019-07-18 20:30:00 +00:00
Lee Salzman 8002be2a0d Bug 1563133 - limit GlyphBuffer capacity. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38214

--HG--
extra : moz-landing-system : lando
2019-07-18 21:44:57 +00:00
sotaro d596757662 Bug 1565255 - Backout Bug 1552734 r=nical
Since Bug 1531898 fix, fix of Bug 1552734 is not necessary anymore. The backout reduces memory usage.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 14:10:47 +00:00
Glenn Watson 0bb61d0846 Bug 1566712 - Fix quality issues with picture caching when the transform has a fractional offset. r=kvark
This patch reverts the previous attempted fix for snapping issues
with picture caching, and implements a better solution.

This fixes the main visual issue by ensuring that any fractional
offset in the root transform is accounted for by:

 * Offsetting the tile rects by this amount, so that the content
   origin is a whole device pixel.
 * Invalidating all tiles if the fractional part of the root
   transform changes. This is required since it can affect the
   snapping logic that WR applies. Fortunately, this occurs
   very rarely - Gecko typically has a constant fractional part
   for each page.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 21:09:01 +00:00
Markus Stange daf06d791b Bug 1565668 - Add back-pressure to WebRender+OGL by implementing RenderCompositorOGL::WaitForGPU(). r=sotaro
Without CoreAnimation, back-pressure was applied by SwapBuffers: On a
double-buffered NSOpenGLContext which is bound to an NSView, [context flushBuffer]
waits for the previous frame to be finished. With CoreAnimation, the context
is no longer bound to an NSView, and SwapBuffers acts as a regular glFlush.
glFlush on its own does not prevent overproduction.

If we submit GPU work at a faster rate than the GPU can handle, we end up
delaying the window server's GPU work. This can cause the window server to skip
frames. So even if Gecko can produce frames at 60FPS, the window server might
only present those frames at 30FPS, skipping every second frame.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 20:46:39 +00:00
Markus Stange 4cb29aef1d Bug 1565668 - Add back-pressure to CompositorOGL. r=sotaro
Without CoreAnimation, back-pressure was applied by SwapBuffers: On a
double-buffered NSOpenGLContext which is bound to an NSView, [context flushBuffer]
waits for the previous frame to be finished. With CoreAnimation, the context
is no longer bound to an NSView, and SwapBuffers acts as a regular glFlush.
glFlush on its own does not prevent overproduction.

If we submit GPU work at a faster rate than the GPU can handle, we end up
delaying the window server's GPU work. This can cause the window server to skip
frames. So even if Gecko can produce frames at 60FPS, the window server might
only present those frames at 30FPS, skipping every second frame.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 20:46:25 +00:00
Markus Stange 503bb734ad Bug 1565668 - Read screenshots from the correct framebuffer when the default framebuffer is overridden. r=mattwoodrow
RenderTargetOGL::Bind on mWindowRenderTarget needs to bind the default framebuffer, not framebuffer 0.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 20:46:02 +00:00
Markus Stange 51a3779fea Bug 1565668 - Make WebRender draw into the default framebuffer. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D26624

--HG--
extra : moz-landing-system : lando
2019-07-17 20:45:54 +00:00
Markus Stange e17435e83e Bug 1565668 - Create a depth buffer for the default framebuffer of a GLContext that is used with WebRender. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D26623

--HG--
extra : moz-landing-system : lando
2019-07-17 20:45:53 +00:00
Markus Stange b105e4af50 Bug 1565668 - Add support for using an IOSurface as the default framebuffer for a GLContextCGL. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D26404

--HG--
extra : moz-landing-system : lando
2019-07-17 20:44:44 +00:00
Matt Woodrow e6b8f44989 Bug 1566956 - Wait for a response from the VideoBridge to ensure textures are available before telling the content process about them. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D37781

--HG--
extra : moz-landing-system : lando
2019-07-17 20:17:45 +00:00
Lee Salzman ee4cc890cb Bug 1560520 - limit the size of WebRender's glyph cache. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D37982

--HG--
extra : moz-landing-system : lando
2019-07-17 17:52:44 +00:00
Sebastian Hengst 8333f6cdcc Backed out changeset b2f7f31d6781 (bug 1560520) for wrench bustage. CLOSED TREE
--HG--
extra : amend_source : 03592799955175a7930d8f4ab40ac27768395923
2019-07-17 19:42:25 +02:00
Lee Salzman 3ff0a02c54 Bug 1560520 - limit the size of WebRender's glyph cache. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D37982

--HG--
extra : moz-landing-system : lando
2019-07-17 17:09:06 +00:00
Coroiu Cristina ee2f303e53 Backed out changeset ca1ff794e472 (bug 1560520) for build bustage and wrench on a CLOSED TREE 2019-07-17 19:58:09 +03:00
Lee Salzman 22066b4763 Bug 1560520 - limit the size of WebRender's glyph cache. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D37982

--HG--
extra : moz-landing-system : lando
2019-07-17 15:44:38 +00:00
Lee Salzman fcb5ce241f Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 16:20:25 +00:00
A 93b676940c Bug 1566481 - Added version widget r=nical
[import_pr] From https://github.com/servo/webrender/pull/3707

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

--HG--
extra : moz-landing-system : lando
2019-07-17 14:08:51 +00:00
Nicolas Silva bd39067d69 Bug 1566206 - Avoid overflow when limitting the number of rasterized blobs. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D38292

--HG--
extra : moz-landing-system : lando
2019-07-17 14:35:01 +00:00
Kartikaya Gupta fb5a3200bf Bug 1565670 - Wait for a couple of rAF calls before declaring OOPIFs ready for testing. r=botond
This should ensure that the OOPIF gets painted and attached to the
compositor layer tree before the main part of the test starts. We might
be able to do something more sophisticated like waitForAllPaints or
flushApzRepaints, but it's not trivial because this page loads with an
example.com domain and can't easily access SpecialPowers.

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

--HG--
extra : moz-landing-system : lando
2019-07-17 12:41:16 +00:00
sotaro fb8a03fa7c Bug 1564646 - Don't trigger composites on out-of-viewport external image updates r=gw
Differential Revision: https://phabricator.services.mozilla.com/D37512

--HG--
extra : moz-landing-system : lando
2019-07-17 04:12:00 +00:00
Daniel Varga 68d2d44e0e Backed out changeset d0c32e17c69f (bug 1566449) for wpt failure at /css/css-text/shaping/shaping_lig-000.html. On a CLOSED TREE 2019-07-17 13:48:59 +03:00
Lee Salzman 1492fa84f0 Bug 1566449 - Don't reverse glyphs in GlyphBuffer for RTL. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D38190

--HG--
extra : moz-landing-system : lando
2019-07-17 07:14:07 +00:00
Bogdan Tara 848c0f8b71 Backed out changeset 0948829b33b0 (bug 1566449) for boundary-shaping-010.html failures CLOSED TREE 2019-07-17 05:16:29 +03:00
Jamie Nicol 7bd2ec1585 Bug 1564185 - Rasterize glyphs as large as possible to avoid blurriness at high zoom levels. r=lsalzman
When rendering text in webrender we rasterize glyphs either in local
space at a chosen raster scale, or in device space taking in to
account to text's transform.

We are not able to rasterize glyphs larger than a certain size,
however. So if the device-space font size exceeds this limit, then
currently we force the glyph to be rasterized in local space, at the
untransformed font size. This must then be scaled by the shader when
rendering text, and at high zoom levels this will result in blurry
text.

This change makes it so that rather than rasterizing at the
untransformed font size we rasterize at the font size limit. This will
mean the glyphs are rasterized at a larger size and will therefore
require less scaling, meaning they will appear less blurry.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 14:09:30 +00:00
Bogdan Tara ca45889546 Backed out 9 changesets (bug 1523638) for browser_contextmenu.js failures CLOSED TREE
Backed out changeset 0a584a07b696 (bug 1523638)
Backed out changeset 8c5af2289900 (bug 1523638)
Backed out changeset 40ed1bd64b09 (bug 1523638)
Backed out changeset 9a99a0391979 (bug 1523638)
Backed out changeset 07fb4748b91a (bug 1523638)
Backed out changeset 49047c3ebae9 (bug 1523638)
Backed out changeset d606d072126c (bug 1523638)
Backed out changeset 76dc1937fc77 (bug 1523638)
Backed out changeset c784c14b5d5d (bug 1523638)
2019-07-16 23:40:47 +03:00