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

36263 Коммитов

Автор SHA1 Сообщение Дата
Kenny Levinsen 04165219d8 Bug 1614212 - Migrate global VsyncSource users correctly on frame rate change r=sotaro
CompositorVsyncDispatcher holds a reference to the VsyncSource, so it must be informed on change.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 16:04:36 +00:00
Mihai Alexandru Michis b0060ff6a8 Backed out changeset 70b7dcfea394 (bug 1622220) for causing failures in gfx/2d/Swizzle.cpp
CLOSED TREE
2020-03-13 15:07:13 +02:00
Andrew Osmond acdd6810d2 Bug 1622220 - Add UnpremultiplyRow and extend SwizzleRow. r=lsalzman
UnpremultiplyRow will be used in the image encoders to reverse
premultiplication. SwizzleRow needs to support copying (no swizzling)
and swapping RGB/BGR.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 11:35:12 +00:00
Jeff Muizelaar a3f3aaddc9 Bug 1588955. Handle overflow more gracefully in GenerateFallbackData. r=aosmond
It turns out intersecting a rect with an empty rect doesn't
guarantee that the result is empty if overflow happens.

We work around this by checking dtRect for empty as well.

See 1622126 for more details.

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

--HG--
extra : moz-landing-system : lando
2020-03-13 00:35:18 +00:00
dev fbdb469ea6 Bug 1621758 - Fix occlusion rect of clipped compositor surfaces. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D66506

--HG--
extra : moz-landing-system : lando
2020-03-12 19:41:26 +00:00
Sean Feng 5885e10fa0 Bug 1600793 - Make the scrolling input telemetry work for WebRender r=botond,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D60046

--HG--
extra : moz-landing-system : lando
2020-03-12 17:39:59 +00:00
Miko Mynttinen 8168ef50b5 Bug 1620005 - Refactor WebRender display item caching r=jrmuizel
DisplayItemBuilder now has methods:
```
void StartGroup(nsPaintedDisplayItem* aItem);
void CancelGroup();
void FinishGroup();
bool ReuseItem(nsPaintedDisplayItem* aItem);
```
WebRender display items previously created between calls to StartGroup() and FinishGroup() will be reused by a call to ReuseItem(),
which will push DisplayItem::ReuseItem(key) to WR display list, if the Gecko display item has been retained and reused.
Calling CancelGroup() will discard the display items that have been pushed after calling StartGroup().

For example, inside nsDisplayBackgroundColor::CreateWebRenderCommands():
```
aBuilder.StartGroup(this);
aBuilder.PushRect(r, r, !BackfaceIsHidden(),
                  wr::ToColorF(ToDeviceColor(mColor)));
aBuilder.FinishGroup();
```

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

--HG--
extra : moz-landing-system : lando
2020-03-11 18:13:45 +00:00
sotaro 2e6730be8d Bug 1618429 - Add RecycleAllocator support to ImageContainer for RDD process r=nical
Differential Revision: https://phabricator.services.mozilla.com/D64508

--HG--
extra : moz-landing-system : lando
2020-03-11 10:52:48 +00:00
Gerald Squelart 9e0576b94c Bug 1620515 - Replace BlocksRingBuffer::EntryReader/Writer with ProfileBufferEntryReader/Writer - r=canaltinova
The new ProfileBufferEntryReader/Writer are now used everywhere, including in
the profilers and tests.
The old EntryReader/Writer have been removed.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 21:59:19 +00:00
Andreea Pavel b154619cbb Backed out changeset 91760460f914 (bug 1620005) for build bustages on a CLOSED TREE 2020-03-11 19:57:28 +02:00
Miko Mynttinen ccd17c0d43 Bug 1620005 - Refactor WebRender display item caching r=jrmuizel
DisplayItemBuilder now has methods:
```
void StartGroup(nsPaintedDisplayItem* aItem);
void CancelGroup();
void FinishGroup();
bool ReuseItem(nsPaintedDisplayItem* aItem);
```
WebRender display items previously created between calls to StartGroup() and FinishGroup() will be reused by a call to ReuseItem(),
which will push DisplayItem::ReuseItem(key) to WR display list, if the Gecko display item has been retained and reused.
Calling CancelGroup() will discard the display items that have been pushed after calling StartGroup().

For example, inside nsDisplayBackgroundColor::CreateWebRenderCommands():
```
aBuilder.StartGroup(this);
aBuilder.PushRect(r, r, !BackfaceIsHidden(),
                  wr::ToColorF(ToDeviceColor(mColor)));
aBuilder.FinishGroup();
```

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

--HG--
extra : moz-landing-system : lando
2020-03-11 17:40:18 +00:00
=?UTF-8?q?Felix=20Sch=C3=BCtt?= b9f75b4710 Bug 1621026 - Remove sha256 from dependencies r=nical
[import_pr] From https://github.com/servo/webrender/pull/3875

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

--HG--
extra : moz-landing-system : lando
2020-03-11 09:06:53 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
shindli 8a8793039d Backed out 12 changesets (bug 1612941) for webrender linting bustage CLOSED TREE
Backed out changeset bbb8ec38f354 (bug 1612941)
Backed out changeset cd798d2a0433 (bug 1612941)
Backed out changeset c02c4c5bf7f7 (bug 1612941)
Backed out changeset 2e0c9b9bd507 (bug 1612941)
Backed out changeset ec0fffd12dec (bug 1612941)
Backed out changeset 2d6f65fe6ec0 (bug 1612941)
Backed out changeset dd1a92041bb4 (bug 1612941)
Backed out changeset 3cae17a5ec80 (bug 1612941)
Backed out changeset edfca5676513 (bug 1612941)
Backed out changeset f94d5c7cee41 (bug 1612941)
Backed out changeset 67bba000daba (bug 1612941)
Backed out changeset 60151122db4d (bug 1612941)
2020-03-11 14:28:55 +02:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Lee Salzman d2ae8dbd06 Bug 1612941 - vendor SWGL's rust dependencies. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D65617

--HG--
extra : moz-landing-system : lando
2020-03-11 12:16:26 +00:00
Lee Salzman 002a8a6315 Bug 1612941 - import glsl-to-cxx and swgl into Gecko tree. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65616

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:11 +00:00
Lee Salzman 874d7bc3e6 Bug 1612941 - update gleam version to allow implementation of Gl trait. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65615

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:13 +00:00
Lee Salzman ac1f8c5496 Bug 1612941 - WR shader changes to support SWGL instance attribs. r=jrmuizel,gw
Add annotations to vertex shaders so that SWGL can detect when a vertex attribute
is generated by per-instance data rather than per-vertex data.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:16 +00:00
Lee Salzman 1d46e2d87f Bug 1612941 - force immediate upload method for SWGL since PBOs are slower there. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65613

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:18 +00:00
Lee Salzman dbeeeea309 Bug 1612941 - support variable depth buffer size in WR. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65602

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:21 +00:00
Lee Salzman dc05f2690c Bug 1612941 - only upload partial GPU cache rows in WR when possible to minimize memory churn. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65598

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:23 +00:00
Lee Salzman 306289e41f Bug 1612941 - properly detect GL_ARB_texture_swizzle extension in WR. r=gw,kvark
Differential Revision: https://phabricator.services.mozilla.com/D65596

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:28 +00:00
Lee Salzman d407780622 Bug 1612941 - make WR report shader name and features in output for interop with SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65595

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:25 +00:00
Lee Salzman 7b092892fc Bug 1612941 - add SWGL glue to wrench. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65593

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:30 +00:00
Lee Salzman 0b6ec64adc Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:07 +00:00
Lee Salzman 41602b16e1 Bug 1612941 - add deinit hook to WR Compositor trait. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65591

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:09 +00:00
shindli 0830b5e7f8 Backed out 12 changesets (bug 1612941) for causing bustages CLOSED TREE
Backed out changeset 29f9f745ff65 (bug 1612941)
Backed out changeset d92e03315f8d (bug 1612941)
Backed out changeset 9b1360daa75a (bug 1612941)
Backed out changeset ad7f43d72b08 (bug 1612941)
Backed out changeset 30b28118362a (bug 1612941)
Backed out changeset 76f80dce8875 (bug 1612941)
Backed out changeset 375896f494ae (bug 1612941)
Backed out changeset bd8ba66dc2ac (bug 1612941)
Backed out changeset 54ec5a6e8e45 (bug 1612941)
Backed out changeset 419105739e53 (bug 1612941)
Backed out changeset c198dedeaa1b (bug 1612941)
Backed out changeset 87ddcdfc5fcf (bug 1612941)
2020-03-11 14:01:26 +02:00
Lee Salzman 2b34a82b49 Bug 1612941 - import glsl-to-cxx and swgl into Gecko tree. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65616

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:32 +00:00
Lee Salzman a7cc74fee1 Bug 1612941 - update gleam version to allow implementation of Gl trait. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65615

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:40 +00:00
Lee Salzman 7805919fc5 Bug 1612941 - WR shader changes to support SWGL instance attribs. r=jrmuizel,gw
Add annotations to vertex shaders so that SWGL can detect when a vertex attribute
is generated by per-instance data rather than per-vertex data.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:22 +00:00
Lee Salzman 4f9e9c3750 Bug 1612941 - force immediate upload method for SWGL since PBOs are slower there. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65613

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:30 +00:00
Lee Salzman dae44fbfc2 Bug 1612941 - support variable depth buffer size in WR. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65602

--HG--
extra : moz-landing-system : lando
2020-03-11 11:34:35 +00:00
Lee Salzman 02f870d8a8 Bug 1612941 - only upload partial GPU cache rows in WR when possible to minimize memory churn. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65598

--HG--
extra : moz-landing-system : lando
2020-03-11 11:28:38 +00:00
Lee Salzman cb4d56df80 Bug 1612941 - properly detect GL_ARB_texture_swizzle extension in WR. r=gw,kvark
Differential Revision: https://phabricator.services.mozilla.com/D65596

--HG--
extra : moz-landing-system : lando
2020-03-11 11:29:24 +00:00
Lee Salzman 9b5568ef68 Bug 1612941 - make WR report shader name and features in output for interop with SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65595

--HG--
extra : moz-landing-system : lando
2020-03-11 11:24:53 +00:00
Lee Salzman 40944f2575 Bug 1612941 - add SWGL glue to wrench. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65593

--HG--
extra : moz-landing-system : lando
2020-03-11 11:25:16 +00:00
Lee Salzman f1882a34ed Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 11:47:16 +00:00
Lee Salzman 463470c4be Bug 1612941 - add deinit hook to WR Compositor trait. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65591

--HG--
extra : moz-landing-system : lando
2020-03-11 11:46:32 +00:00
Sylvestre Ledru 69bcec7898 Bug 1617369 - Reformat webrender_bindings/ using rustfmt r=nical
Depends on D65901

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

--HG--
extra : moz-landing-system : lando
2020-03-10 09:27:13 +00:00
shindli 0b1a68a2ad Backed out 2 changesets (bug 1618000) for causing reftest failures in feGaussianBlur-5-ref.svg CLOSED TREE
Backed out changeset a561435c24cf (bug 1618000)
Backed out changeset e720691ccf17 (bug 1618000)
2020-03-11 10:36:47 +02:00
cbrewster 6fb3b6bfc8 Bug 1618000: Part 2: Clamp blur radius based on scale factors r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D65805

--HG--
extra : moz-landing-system : lando
2020-03-10 19:23:58 +00:00
Jeff Muizelaar 712f029470 Bug 1621371 - Update servo-fontconfig-sys to avoid intermittent build errors. r=kvark
The lack of https://github.com/servo/libfontconfig/pull/42 in 4.0.4
broke rust CI

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

--HG--
extra : moz-landing-system : lando
2020-03-10 18:18:29 +00:00
Nicolas Silva 361a30963f Bug 1621212 - Don't default to square texture cache pages when the smallest extent is 32 pixels or less. r=gw
The code that picks the texture cache slab size does not consider snapped extents under 64 pixels for rectangular pages, causing for example a 16x500 request to go into a 512x512 page.
This commit allows very thin requests to get a 64x512 page.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 10:14:27 +00:00
Bogdan Tara fb2b3d4e41 Backed out 2 changesets (bug 1614933) for busages complaining about IdleSchedulerChild.cpp CLOSED TREE
Backed out changeset ff92f800a74e (bug 1614933)
Backed out changeset 5cee8f603ae4 (bug 1614933)
2020-03-10 17:21:55 +02:00
Jonathan Kew 315b16ea22 Bug 1621248 - Declare various gfxPlatform and font-list subclasses as 'final'. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66204

--HG--
extra : moz-landing-system : lando
2020-03-10 15:00:56 +00:00
Gabriele Svelto 9336e8143b Bug 1614933 - Gather content processes' crash annotations at exception time instead of using IPC; r=froydnj
Crash annotations in content processes are currently sent over IPC via
shared memory buffers. To pave the way for the Rust rewrite of the exception
handler we are removing this code and gathering all the crash annotations
within the content processes themselves. This patch causes annotations to be
stored in the global table of each content process. They are then streamed
out to the parent process by the exception handler together with the
exception-time annotations.

This has a number of benefits:

* we have one less channel to exchange data between content processes and
  the parent process
* we save memory because we don't need to allocate the shared memory buffers
* annotations are faster because we don't stream them all out every time one
  changes
* we won't truncate annotations anymore if we run out of space in the shared
  segment.
* we don't need delayed annotations anymore, so we can get rid of the
  associated machinery

As I refactored the code I tried to adjust all the obsolete comments,
consolidate shared code and remove the redundant steps that were sometimes
present. In many places we had two entire crash annotation tables we merged to
change just a couple; that comes from the fact that historically we loaded
them from disk. Now it doesn't matter anymore and we can just go ahead and
change the ones we care about.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 14:59:22 +00:00
Jonathan Kew c8c463d812 Bug 1621232 - Devirtualize and merge CreateFontGroup implementations, as there is no longer any platform dependency. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D66197

--HG--
extra : moz-landing-system : lando
2020-03-10 13:20:37 +00:00
Nicolas Silva d1c50b456a Bug 1618132 - Avoid redundant hit test tree builds. r=gw
build_frame is called by update_document which calls rebuild_hit_tester if the hit test tree is invalidated. The advantage of doing it there is that it is after the frame has been submitted to the renderer so we are out of the critical path and the work can overlap with draw call submission.

So we don't need to do the work in build_frame, and since we don't currently set the validity flag there we are often re-building the hit test tree a second time after frame building.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 11:03:58 +00:00
Hiroyuki Ikezoe ff2144a3cd Bug 1620873 - Make MotionPathData Maybe<MotionPathData> in TransformData. r=boris
Having MotionPathData in layers::Animation is a bit inefficient for animations
other than transform like properties.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 01:30:08 +00:00