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

29323 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 778e7fae97 Bug 1443792 - Remove direct access to AsyncPanZoomController from ContainerLayerComposite. r=botond
MozReview-Commit-ID: 7CiK7bzDcPW

--HG--
extra : rebase_source : 468e2c1e09fb03fdefc21262aeb93e7086eda50d
2018-03-12 16:06:38 -04:00
Kartikaya Gupta bb2e76ca71 Bug 1443792 - Remove direct access to AsyncPanZoomController from AsyncCompositionManager. r=botond
MozReview-Commit-ID: FA8XFOhy1wk

--HG--
extra : rebase_source : ad6085abeb2a43e5af73cfdbe575fc148c05785f
2018-03-12 16:06:38 -04:00
Kartikaya Gupta 86032d9307 Bug 1443792 - Tighten the equivalence between a layer being scrollable and having an APZC. r=botond
If we can assume that a layer being composited has an APZC at index i if and
only if the frame metrics at index i is scrollable, then we can do the
transformations in the next patch without any change in functionality.

MozReview-Commit-ID: FRkvhwdd3nh

--HG--
extra : rebase_source : f1bee292305730079b3208e447330028c1a40727
2018-03-12 16:06:37 -04:00
Kartikaya Gupta bfc7d9097f Bug 1443792 - Move ComputeTransformForScrollThumb to APZCTreeManager. r=botond
This makes more sense in APZCTreeManager, but is exposed back to
AsyncCompositionManager via APZSampler. This also makes the APZ code
better encapsulated since the method API exposed on APZSampler doesn't
need to take a AsyncPanZoomController; it can just take the
LayerMetricsWrapper instead.

MozReview-Commit-ID: 9yJJd3x8VhN

--HG--
extra : rebase_source : b6f81116183810df158d8cce72891bb2db458355
2018-03-12 16:06:37 -04:00
Kartikaya Gupta 9edc276575 Bug 1443792 - Move the SampleAPZAnimations function into APZSampler. r=botond
MozReview-Commit-ID: 2KIQ5A2J7m9

--HG--
extra : rebase_source : c3fa7b3ff696413552d8659796438fc67c6e7202
2018-03-12 16:06:37 -04:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Noemi Erli ac0a30f58c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
Ryan Hunt 084c9b6f4c Allocate TextureReadLock at TextureClient creation and drop file handles immediately after. (bug 1416726, r=aosmond)
This changes the lifecycle and API for TextureReadLock to fix file descriptor exhaustion
crashes. These changes are partially superficial and mostly align the API of TextureReadLocks
with their actual usage.

The changes are:

1. Create the TextureReadLock in the TextureClient constructor so it's available before IPC creation
    a. This is superficial as EnableReadLock was always called before IPC creation
2. Send the ReadLockDescriptor in the PTextureConstructor message and close the file handle
3. Receive the ReadLockDescriptor in TextureHost and close the file handle
4. Send a boolean flag in layer transactions if the texture is read locked instead of a descriptor
5. Use a boolean flag in TextureHost to determine if the ReadLock must be unlocked instead of a nullptr

I believe that we can remove the InitReadLocks code from LayerTransaction as that was added to
prevent file descriptor limits in IPDL messages and is no longer needed with this change. But
that is a non-essential change and this patch is already big enough.

MozReview-Commit-ID: DzHujrOQejH

--HG--
extra : rebase_source : 3bdd7c9bc8edfdc386faad8a9e59ad7dc18ed91d
2018-03-12 08:10:13 -05:00
Kartikaya Gupta 7d1d15228b Bug 1443152 - Update to cbindgen 0.5.2. r=rhunt
MozReview-Commit-ID: COIPhZvMJK

--HG--
extra : rebase_source : 9687211e6bda9b306d8cdf522145eee132601b18
2018-03-12 16:38:10 -04:00
Nicolas Silva 2f19628734 Bug 1440717 - Use RefPtr for CompositingRenderTargetOGL::mGL. r=Bas 2018-03-12 13:36:00 +01:00
Kartikaya Gupta f42d692541 Bug 1444374 - Make the LayerTransactionParent's mId always nonzero. r=mattwoodrow
We can easily populate the mId with the correct layers id, which is the
root layer tree id from the CompositorBridgeParent. This eliminates a
bunch of special-case handling.

MozReview-Commit-ID: FEkboAGEhYO

--HG--
extra : rebase_source : 01e73d516e5742d586cbf6d8b6bc5c9f7d64f141
2018-03-09 08:45:26 -05:00
Robert Longson 7709e9b3e1 Bug 1444666 - get rid of nsSVGUtils version of GetStrokeDashData and replace by SVGContentUtils::GetStrokeOptions r=jwatt 2018-03-11 16:11:24 +00:00
Kartikaya Gupta 5fe91a90f5 Bug 1437295 - Ensure that we have a compositor APZ testdata before running the test. r=botond
MozReview-Commit-ID: zV4J3pChIy

--HG--
extra : rebase_source : c4e267f7543525fffda5c27f38b99321e3b9556c
2018-03-10 23:26:28 -05:00
Kartikaya Gupta fe4726f972 Bug 1437295 - Remove unnecessary change from bug 1374166. r=botond
The change that was made in bug 1374166 was attempting to fix the
problem fixed by the previous patch, but didn't actually succeed (it
just made it less likely to occur). Now that we have the proper fix we
can revert that botched attempt to speed up the test a little bit.

MozReview-Commit-ID: 3hWZ6bFTdxb

--HG--
extra : rebase_source : 15a8c6e183a5d7a09527ac3857b0eefb563c5165
2018-03-10 23:26:28 -05:00
Kartikaya Gupta 4def632d24 Bug 1437295 - Ensure that waitUntilApzStable also flushes the parent process. r=botond
With e10s enabled, we need to make sure that not only has the content
process layer tree reached the compositor, but also that the parent
process layer tree with the correct RefLayer has reached the compositor.
This is important for some APZ tests which proceed on the assumption
that the content process has been composited.

MozReview-Commit-ID: D0peZsJMHNT

--HG--
extra : rebase_source : 487a11a5478416e275013941282ff8f7636fb67c
2018-03-10 23:26:27 -05:00
Kartikaya Gupta e29fdef19c Bug 1437295 - Ensure cleanup functions registered in a subtest are invoked when unloading the subtest. r=botond
If we are registering a cleanup function inside a subtest (as we will do
in the next patch) then we need to make sure it gets cleaned up before
the subtest is unloaded. Otherwise the cleanup will be attempted when
the top-level test page is unloaded, at which point the subtest is long
gone, and that results in an error.

MozReview-Commit-ID: 828XddkOUlP

--HG--
extra : rebase_source : a4b64d41c0dfcc27941abbff7ffbde2c69513b58
2018-03-10 23:26:27 -05:00
Kartikaya Gupta 3191dbda01 Bug 1437295 - Promise-ify some of the paint/flushing methods. r=botond
This is functionally a no-op but it makes code cleaner, particularly
some of the changes in a future patch.

MozReview-Commit-ID: 5UoT3aNJaPz

--HG--
extra : rebase_source : 53dbabc53ce5fbb549fa66976b41799f03be201d
2018-03-10 23:26:27 -05:00
Jonathan Kew 243822d04c Bug 1443095 - Update graphite2 library to release 1.3.11 (plus upstream commit 6e24eb7e to fix leak). r=jrmuizel 2018-03-10 10:43:38 +00:00
Daniel Holbert 408bfa9bf0 Bug 1444481 part 1: Add some needed #includes to ComputedTimingFunction.h and FrameMetrics.h. r=xidorn
(This is a helper patch -- I'm splitting this into its own patch since it's
changing files in other directories, and also so that the main patches here
can be a bit more direct.)

Without this change, the other patches in this series would cause compile
failures in the headers that I'm fixing up here (because the other patches will
be removing #includes from some headers that these files were inadvertently
depending on).

As of this patch, ComputedTimingFunction.h will now be including:
 - nsDebug.h to provide NS_ASSERTION
 - nsStringFwd.h to provide a forward-declaration for "nsAString&"
 - Assertions.h to provide MOZ_ASSERT
 - Maybe.h to provide Maybe<ComputedTimingFunction>
(I think it's been leaning on nsTimingFunction.h's include of nsString.h to
indirectly provide these.)

FrameMetrics.h will now be including:
 - PLDHashTable.h to provide PLDHashNumber
(I think it's been leaning on nsStyleCoord.h/nsStyleConsts.h to indirectly
provide this.)

MozReview-Commit-ID: AoFoEe9GisK

--HG--
extra : rebase_source : 63c69343acaf42511ebdeb0238f4385a0c6345a5
2018-03-09 11:52:02 -08:00
Botond Ballo 6f01e47daa Bug 1307555 - Mochitest. r=kats
MozReview-Commit-ID: 1e06rX4SQD8

--HG--
extra : rebase_source : 4f2aa932af8c1c8332d49aeaace687c71a4d58bc
2018-02-26 16:39:35 -05:00
Tom Ritter f572733682 Bug 1444169 Fix capitalization for a few Windows files r=aklotz
MozReview-Commit-ID: BlWgIVobOBK

--HG--
extra : rebase_source : 71a8052c562aa7be510e3a4c13a0ca698a04a5ac
2018-03-08 14:49:59 -06:00
Kartikaya Gupta faa816e22a Bug 1443807 - Update webrender to commit 5cb71f0f23719795e7c89417d91a7abad8ac20e9. r=jrmuizel
MozReview-Commit-ID: 9JzKooI2sJ2

--HG--
extra : rebase_source : 2762c00c95aa40dcd9d27ef1c5efa66494b8a90b
2018-03-09 08:39:35 -05:00
Brindusan Cristian eb51abf4fb Merge inbound to mozilla-central. a=merge 2018-03-08 20:00:36 +02:00
Nicolas Silva 0405d57c60 Bug 1352877 - Assert that the global compositor map is accessed on the right threads. r=mattwoodrow 2018-03-08 09:56:11 +01:00
Matt Woodrow 4803a952b9 Bug 1442915 - Don't use shadow visible region in DefaultComputeEffectiveTransforms since it might not be computed yet. r=mstange 2018-03-08 20:00:50 +13:00
Kartikaya Gupta a205ba0c5f Bug 1443301 - Stop exposing mApzcTreeManager from CompositorBridgeParent. r=botond
MozReview-Commit-ID: 5Dq0HzLImTz

--HG--
extra : rebase_source : 9329303f382fa94b0a2f05226ad5e993c83490e6
2018-03-07 17:34:11 -05:00
Kartikaya Gupta eb67d6cb7b Bug 1443301 - Update dynamic toolbar init codepath to not need an APZCTreeManager. r=botond
MozReview-Commit-ID: BthTS5k1PDW

--HG--
extra : rebase_source : 9f26d5e40f2ce4979cf55018844271350f11a6fa
2018-03-07 17:34:11 -05:00
Kartikaya Gupta 20abc0426b Bug 1443301 - Give the dynamic toolbar class a non-owning ref to the APZCTreeManager. r=botond
MozReview-Commit-ID: 8lE53GEhDMI

--HG--
extra : rebase_source : 3d6e69f9f00672a07f1124669d781d6fbba780b2
2018-03-07 17:34:10 -05:00
Kartikaya Gupta b9c7b63015 Bug 1443301 - Remove unused function. r=botond
MozReview-Commit-ID: I05MwCw8VdK

--HG--
extra : rebase_source : fdfac26097179513fa5189ec7892f158d1fe24f9
2018-03-07 17:34:10 -05:00
Cosmin Sabou aba9ad6f65 Merge inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationListenerTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationDelegateTest.kt
2018-03-08 05:59:30 +02:00
shindli 8e9217d36a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-08 02:27:35 +02:00
Kartikaya Gupta ff4a47d56e Bug 1443187 - Avoid crashing if a previously-uncomposited layer tree gets adopted. r=botond
MozReview-Commit-ID: FZYwS7IwdKq

--HG--
extra : rebase_source : ea7b093df17887af841cb4ccdd64d47a69c016ad
2018-03-07 16:41:44 -05:00
Botond Ballo b4385a3fda Bug 1442767 - Rename Box to RectAbsolute (Gecko changes). r=kats
MozReview-Commit-ID: 1wrzwQw8bdx

--HG--
rename : gfx/src/nsCoordBox.h => gfx/src/nsRectAbsolute.h
extra : rebase_source : ec71a9add57c07887cb37f2d105390072e13d98d
2018-03-05 18:08:18 -05:00
Botond Ballo 74cd005201 Bug 1442767 - Rename Box to RectAbsolute (Moz2D changes). r=bas
MozReview-Commit-ID: 7VOZs8pQgJ4

--HG--
rename : gfx/2d/Box.h => gfx/2d/RectAbsolute.h
extra : rebase_source : 46dc03f33d51f28729a56cf25055f4eb3e7dad6f
2018-03-05 16:35:35 -05:00
Hiroyuki Ikezoe be2fe6bf8c Bug 1437272 - Split nsTimingFunction into an independent header file. r=birtles
So that we don't need to include nsStyleStruct.h in gfx any more.

MozReview-Commit-ID: 6nOaAbssLCz

--HG--
extra : rebase_source : 9c195c90277a4584dc14a6949e9eea53bcd8487c
2018-03-08 18:22:45 +09:00
Makoto Kato 4ee4cdc55a Bug 1443088 - Don't use SSE2 flag on non-Intel platform. r=jgilbert
gcc for arm/aarch64 target doesn't allow -msse2 command line option and it
causes option error, not warning.  So it should not add this option for
non-Intel platform.

MozReview-Commit-ID: 9E6SGBMkT94

--HG--
extra : rebase_source : 3bd8d2f11d108c7463134c34f679244e6f4f3531
2018-03-06 14:46:12 +09:00
Ryan VanderMeulen e468fac775 Bug 1443812 - Update HarfBuzz to 1.7.6. r=jfkthame 2018-03-07 13:29:23 -05:00
sotaro 9ef90362b1 Bug 1441753 - Fix CopyableCanvasRenderer::IsDataValid() r=nical 2018-03-07 08:24:46 +09:00
Nicolas Silva 8cb3e60578 Bug 1442748 - Remove the workaround from 1442608. r=kats 2018-03-06 20:21:13 +01:00
Nicolas Silva 81db82c188 Bug 1442748 - Don't generate frames if we haven't received a display list. r=kats 2018-03-06 20:20:56 +01:00
Kartikaya Gupta f789357a7c Bug 1436287 - Disable high-frequency intermittent failure until the proper fix is in place. r=botond
MozReview-Commit-ID: KMcKyGrvOCi

--HG--
extra : rebase_source : a1cda66266fb1d82dc306d728e37d7897fcdfb95
2018-03-06 04:33:31 -05:00
Kartikaya Gupta 98952dab6e Bug 1442627 - Stop exporting a few other apz/src headers. r=botond
These were mostly exported because APZCTreeManager included them and now
they don't need to be exported any more.

MozReview-Commit-ID: 8W3vKOvzYW3

--HG--
extra : rebase_source : 8da95a203692ab3a88d37e66071b914682b44f14
2018-03-06 10:25:39 -05:00
Kartikaya Gupta 45d31fa895 Bug 1442627 - Stop exporting APZCTreeManager.h in mozilla/layers/. r=botond
MozReview-Commit-ID: GC5fSWOYtF5

--HG--
extra : rebase_source : e2dfe679595bf9208e082699a99375cd509b66e3
2018-03-06 10:25:39 -05:00
Kartikaya Gupta b18710abb6 Bug 1442627 - Move static helpers from APZCTreeManager to APZUtils. r=botond
This also includes unified build fixes that were needed as a result of
the shuffling around.

MozReview-Commit-ID: 1AGG3DHnN1m

--HG--
extra : rebase_source : 7399cea6dff2bd91ab305dee22d93b32382cc0be
2018-03-06 10:25:39 -05:00
Kartikaya Gupta d437c0bee5 Bug 1442627 - Reduce exposure of the APZCTreeManager. r=botond
Callers should be using one of the more specific subinterfaces like
IAPZCTreeManager (for controller-API methods) or APZSampler (for
sampler-API methods). There's also a bunch of android-specific
dynamic toolbar code that uses this function - I don't want to
deal with that right now, so instead of removing it entirely we can just
make it Android-only.

MozReview-Commit-ID: I8DYWLYoFgP

--HG--
extra : rebase_source : 75e05825194f9c6843506bb5d82e1a0c6e2b08bb
2018-03-06 10:25:38 -05:00
Kartikaya Gupta 6107f5de3d Bug 1442627 - Add new APZSampler APIs to set the test scroll offset and zoom. r=botond
MozReview-Commit-ID: DrH1D42jfJx

--HG--
extra : rebase_source : 22c2546a8188c871bf106d5883452a1be32c482e
2018-03-06 10:25:37 -05:00
Kartikaya Gupta 752091f7a7 Bug 1442627 - Switch some call sites in WebRenderBridgeParent to use APZSampler. r=botond
MozReview-Commit-ID: AqtcAyTkcEK

--HG--
extra : rebase_source : dd00ef41c0dc2ca3f8179a217019d964735af320
2018-03-06 10:25:37 -05:00
Kartikaya Gupta 551f604b60 Bug 1442627 - Don't use GetAPZCTreeManager in CrossProcessCompositorBridgeParent. r=botond
Although CrossProcessCompositorBridgeParent still needs to create a
dummy APZCTreeManager of its own in place, we can at least stop it from
grabbing the "real" APZCTreeManager from CompositorBridgeParent, which
allows access to methods that might not be properly guarded with respect
to thread safety.

MozReview-Commit-ID: Btvez3OkFPs

--HG--
extra : rebase_source : a4bec1769ff2fb899bb2e65f99f8e715f9a94c44
2018-03-06 10:25:36 -05:00
Cosmin Sabou c17d867e25 Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.js => browser/modules/AsyncTabSwitcher.jsm
2018-03-06 06:27:48 +02:00
Botond Ballo 084c2d5c2d Bug 1443231 - Another follow-up to fix a debug assertion in the gtest. r=botond
MozReview-Commit-ID: 4p1zurPLCRB

--HG--
extra : rebase_source : 078b5aa8d558bc2c8bdd13ebe142706287c8123b
2018-03-05 17:00:46 -05:00