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

3399 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange 0b151b8c2b Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn
The actual subcategories will be added in later patches, so that there are no
unused categories.

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

--HG--
extra : moz-landing-system : lando
2019-02-16 17:37:43 +00:00
Cosmin Sabou a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Andrew Osmond bc9d7000be Bug 1527085 - Ensure we invalidate when the image request changes. r=jrmuizel
When the underlying image request (imgIRequest) changes for an image, we
need to ensure that we invalidate the cached WebRenderImageData such that
the image container stored therein is updated to be for the correct
image. This gets a little tricky because some display items store both
the current and previous images, and choose to display the latter if the
former is not yet ready. We also don't know what image the image
container belongs to. As such, we now compare the producer ID of the
current frame in the image container, to the expected producer ID of the
current image request. If they don't match, we must regenerate the
display list.

Differential Revision: https://phabricator.services.mozilla.com/D19699
2019-02-15 09:24:21 -05:00
Sylvestre Ledru 41d1d79094 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-02-15 08:15:57 +00:00
Noemi Erli b3adcc6d72 Backed out changeset de5c7c2699c4 (bug 1506376) for causing several devtools failures a=backout 2019-02-13 12:28:21 +02:00
Razvan Maries dcc3ecb682 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-13 07:23:59 +02:00
Olli Pettay 13d0677ef8 Bug 1506376 - Make PCompositorBridge::DidComposite high priority message, r=aosmond
--HG--
extra : rebase_source : 8978db327f2c1711a1d00944f315bb3fe22f9c08
2019-02-08 14:46:56 +02:00
Alex Gaynor c51171d04d Bug 1525199 - Part 3 - removed size_t from ShmemSection IPDL struct, shmems are already limited to 32-bit sizes; r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D19195

--HG--
extra : moz-landing-system : lando
2019-02-08 21:52:50 +00:00
Randall Barker b9a2a11927 Bug 1520132 - Ensure base widget pointer is null on Destroy() r=snorp
Speculative fix for crash.

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

--HG--
extra : moz-landing-system : lando
2019-02-11 21:22:16 +00:00
sotaro d2b017325d Bug 1525818 - Remove NS_ASSERTION in ImageBridgeParent::GetInstance() r=mattwoodrow
Sometimes NS_ASSERTION was hit during window closing. It happens because of aync architecture. It is better to change the NS_ASSERTION to NS_WARNING.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:28:30 +00:00
sotaro 164c8f7d81 Bug 1524591 - Call SetParent in UI process r=mattwoodrow
During security.sandbox.gpu.level=1, compositor window's parent cannot be set in GPU process, it needs to be set in UI process.

Differential Revision: https://phabricator.services.mozilla.com/D18811
2019-02-07 16:01:41 +09:00
sotaro 2e93d6bc4a Bug 1525515 - Dorp ImageClients that are created before UpdateTextureFactoryIdentifier() call r=nical
During re-creating GPU process, there was a period that ImageBridgeChild was re-created, but ImageBridgeChild::UpdateTextureFactoryIdentifier() was not called yet. In the period, if ImageBridgeChild::CreateImageClient() is called, ImageBridgeParent creates incompatible ImageHost than WebRenderImageHost.

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

--HG--
extra : moz-landing-system : lando
2019-02-06 21:39:06 +00:00
Alex Gaynor 0f01791ffc Bug 1512990 - Part 4 - remove declarations of Recv/Answer methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Recv/Answer methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:43 +00:00
Alex Gaynor 984f0333ea Bug 1512990 - Part 3 - remove declarations of Alloc/Dealloc methods from IPDL protocol base class; r=froydnj
For cases where the class has direct calls (that is, we cast `this` to the
subclass before making the call) no longer declare Alloc/Dealloc methods on the
base class at all. This should ensure that slots for them are not generated in
vtables, and also allow the derived class to choose the method signature (e.g.
whether it wants to take something by reference or by value).

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:58:07 +00:00
Alex Gaynor 75c7d1fa76 Bug 1512990 - Part 2 - implement direct calls in the IPDL compiler; r=froydnj
When calling a Recv/Alloc/Dealloc method on most types, cast `this` to the
derived class.

There is a heuristic to figure out what the correct derived type is. There is a
blacklist of types which we can't do direct calls on for the moment, as well as
an override for types that do work with direct calls but which don't match the
heuristic.

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

--HG--
extra : moz-landing-system : lando
2019-02-06 15:57:37 +00:00
Sylvestre Ledru 14486004b6 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-02-04 19:10:18 +00:00
sotaro f9b03cbc21 Bug 1462885 - Fix iteration in ImageBridgeParent::NotifyImageComposites() r=mattwoodrow
Iteration becomes wrong when ImageBridgeParent::GetInstance() fails in NotifyImageComposites().

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

--HG--
extra : moz-landing-system : lando
2019-01-31 06:57:41 +00:00
Ciure Andrei c035ee7d3a Merge inbound to mozilla-central. a=merge 2019-01-24 05:44:33 +02:00
Alex Gaynor e9ce39db0d Bug 1485463 - Part 2 - use IPC errors to handle an attempt to allocate too many PCompositorBridgeParent; r=aosmond
This cannot actually happen in the real world because this path is specific to
when the compositor process is also the parent process, and thus is not
actually IPC. However, the fuzzer can trigger this case.

Depends on D14587

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

--HG--
extra : moz-landing-system : lando
2019-01-23 14:32:39 +00:00
Alex Gaynor b45a566b9d Bug 1485463 - Part 1 - added a fuzzer for PCompositorManagerParent IPC; r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D14587

--HG--
extra : moz-landing-system : lando
2019-01-23 14:32:38 +00:00
Lee Salzman c7d1539b15 Bug 1455848 - use paths for WR font handles on Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16896
2019-01-17 15:45:07 -05:00
Razvan Maries 6161f7cc5b Backed out 4 changesets (bug 1455848) for windows wrench failures. CLOSED TREE
Backed out changeset d56504db04ea (bug 1455848)
Backed out changeset f2279ecacb81 (bug 1455848)
Backed out changeset 44a36f0fe512 (bug 1455848)
Backed out changeset b8444f241aca (bug 1455848)
2019-01-24 00:56:40 +02:00
Lee Salzman bd0b2ed9f0 Bug 1455848 - use paths for WR font handles on Windows. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16896
2019-01-17 15:45:07 -05:00
Cosmin Sabou a6253ae016 Backed out 3 changesets (bug 1455848) for causing build bustages. CLOSED TREE
Backed out changeset 424203c9c430 (bug 1455848)
Backed out changeset b7a0887937f4 (bug 1455848)
Backed out changeset 23e27b3097c6 (bug 1455848)
2019-01-23 21:22:36 +02:00
Lee Salzman 160e525369 Bug 1455848 - use paths for WR font handles on Windows r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16896

--HG--
extra : moz-landing-system : lando
2019-01-23 18:58:06 +00:00
Cosmin Sabou 7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
Greg Tatum 7042c8f1c3 Bug 1520526 - Add categories to all profiler markers; r=mstange
This commit adds categories to all markers. This way the profiler's
marker categories and frame label categories agree. There are a few
duplicate category properties on some of the marker payloads, but
this could be cleaned up in a follow-up if needed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 15:40:15 +00:00
James Willcox 92d41d761f Bug 1515689 - Fix initialization/destruction race in UiCompositorControllerParent r=botond
It looks like we can do initialization and destruction from the UI
thread before the bits that run on the Compositor thread have run. Avoid
this by synchronously waiting on the Compositor.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 19:37:32 +00:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Matt Woodrow 09c22c28a0 Bug 1520319 - Store an array of pending transactions in LayerTransactionParent to avoid overwriting data when we get multiple. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D16603

--HG--
extra : moz-landing-system : lando
2019-01-15 23:55:37 +00:00
Jeff Muizelaar 83096ed533 Bug 1520330. Split out NoVsync into two different scenarios. r=mattwoodrow
Currently there are two conditions where CONTENT_FRAME_TIME_REASON can
be NoVsync. Since, were getting an appreciable amount of these with
WebRender it makes sense to split out the telemetry so that we can
confirm which scenario we're hitting.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 22:33:25 +00:00
Jeff Muizelaar 3d57a7f6a8 Bug 1519654. Implement CONTENT_FRAME_TIME_WITH_SVG for non-WebRender contains svg. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D16585

--HG--
extra : moz-landing-system : lando
2019-01-15 19:16:48 +00:00
Botond Ballo d5f06efae5 Bug 1509575 - Expose the isFirstPaint flag on LayerManager. r=kats
So that it's easily available during painting.

The flag is set based on nsIPresShell::mIsFirstPaint, but the pres shell
flag is cleared at the beginning of the paint, so we can't query it from
the pres shell during the paint.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:29:38 +00:00
Andrew Osmond 271a497cab Bug 1516011 - Part 1. Ensure wrapped shared surfaces are retained for blob rasterization. r=jrmuizel
References to shared surfaces are already kept alive for the blob in the
content process, and it also ensures an image key is created to ensure
any release of the surface is delayed until the next epoch. Wrapped
shared surfaces (when used in an animation which is recycling its
surfaces) did not get an image key created which this patch corrects.

Differential Revision: https://phabricator.services.mozilla.com/D16191
2019-01-14 13:21:57 -05:00
Ehsan Akhgari e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Ehsan Akhgari 06c3d29113 Bug 1521000 - Part 1: Reformat the tree to ensure everything is formatted correctly with clang-format r=sylvestre
Summary: # ignore-this-changeset

Reviewers: sylvestre

Reviewed By: sylvestre

Subscribers: reviewbot, emilio, jandem, bbouvier, karlt, jya

Bug #: 1521000

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

--HG--
extra : histedit_source : 4add583bfa729ccc1aef934629ed45ff095189b0
2019-01-18 10:12:56 +01:00
Andreea Pavel 2a44f0abe0 Backed out 2 changesets (bug 1509575) for failing wpt at css/cssom-view/scroll-behavior-main-frame-root.html on a CLOSED TREE
Backed out changeset 245d6855cd3b (bug 1509575)
Backed out changeset 7dcfa876f76c (bug 1509575)
2019-01-11 09:08:19 +02:00
Botond Ballo e98d64e015 Bug 1509575 - Expose the isFirstPaint flag on LayerManager. r=kats
So that it's easily available during painting.

The flag is set based on nsIPresShell::mIsFirstPaint, but the pres shell
flag is cleared at the beginning of the paint, so we can't query it from
the pres shell during the paint.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:21:20 +00:00
Daniel Varga f0a9c979bb Merge mozilla-inbound to mozillia-central. a=merge 2019-01-11 06:14:14 +02:00
Bas Schouten fd9a23b073 Bug 1519227: Register payload appropriately in CrossProcessCompositorBridgeParent. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D16246

--HG--
extra : rebase_source : d3c9ad182bbb83931b95bff0b130a98c8a66b8e5
2019-01-10 22:41:14 +01:00
Botond Ballo 2d2fffe3ea Bug 1507279 - Add a mechanism for the main thread to set a visual viewport offset. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16141

--HG--
extra : moz-landing-system : lando
2019-01-10 20:59:13 +00:00
Botond Ballo 8e0fca04b3 Bug 1518584 - Rename {FrameMetrics,RepaintRequest}::mViewport to mLayoutViewport. r=kats
Depends on D15972

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

--HG--
extra : moz-landing-system : lando
2019-01-09 15:34:34 +00:00
Botond Ballo 4c98f47607 Bug 1518584 - Remove {FrameMetrics,RepaintRequest}::mUseDisplayPortMargins. r=kats
It was always true.

Depends on D15971

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

--HG--
extra : moz-landing-system : lando
2019-01-09 15:33:10 +00:00
Emily Toop 35b2b208c9 Bug 1509271 - Ensure that `UpdateRootFrameMetrics` is called even if the GeckoView embedding app is not using the `AndroidDynamicToolbarAnimator`. r=kats
When selected text in `geckoview_example`, the text selection toolbar was always positioned in the top left corner of the screen, regardless of where in the page the text was selected.

The cause of the bug was that UpdateRootFrameMetrics was being called only if the app utilised the `AndroidDynamicToolbar`. This caused the `mViewportZoom` value inside `GeckoSession` to always be 0. When using the `clientToFrameMatrix` function to place the text selection toolbar on screen, the generated matrix was incorrect as the zoom value was 0, causing the resulting frame to be offset by the zoom value.

By ensuring that `UpdateRootFrameMetrics` is called inside `AsyncCompositionManager`even when there is no `AndroidDynamicToolbarAnimator` this zoom value is correctly set and the resulting frame for the text selection toolbar is correctly placed.

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

--HG--
extra : moz-landing-system : lando
2019-01-08 18:04:16 +00:00
Oana Pop Rus aec8de62bb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-08 12:37:02 +02:00
Doug Thayer a848222b53 Bug 1441308 - Split out document pieces of WebRenderLayerManager r=jrmuizel
Per our discussion, this patch splits out the state management bits of
WebRenderLayerManager, allowing for them to be maintained per-document.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 21:33:10 +00:00
Bas Schouten 4cf5cf3ec0 Bug 1501442 - Part 2: Propagate composition payload from clients to host. r=rhunt
--HG--
extra : rebase_source : 9053497a7a177855a8c5f1012a41e336b112c0a0
2018-12-13 15:56:51 +01:00
Bas Schouten 93c70bd2f6 Bug 1501442 - Part 1: Add CompositionPayload type and allow submitting it as part of a transaction. r=mstange
--HG--
extra : rebase_source : 20a6ac6929bc99b8ddbf5500e7edbaa514c7ebe2
2018-12-13 15:59:22 +01:00
Matt Woodrow 0f512a6434 Bug 1518044 - Pass FULL_PAINT_TIME value to CONTENT_FRAME_TIME calculation for non-WR. r=jrmuizel
This will let us get the MissedCompositeLow/Mid/Long variants in the CFT_REASON telemetry output.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 03:18:52 +00:00
Matt Woodrow 38c31ce8f3 Bug 1518044 - Record SVG and UPLOAD specific variants of CONTENT_FRAME_TIME using the vsync based timings. r=jrmuizel
We're switching to prefering the vsync version, so making these diagnostic equivalents use that timing should be more useful.
I think leaving the profiler marker (which uses ms, not vsync%) showing just the graphics component still makes sense.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 03:17:42 +00:00