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

29606 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar d12e9de5f2 Bug 1451458. Make sure we always clear items on size change. r=mstange
This changes the code around mFollowing group size changes to match
the code in DoGroupingForDisplayList. Specifically, it makes sure
we always ClearItems() on size changes even if we don't have a key.
2018-04-11 20:50:00 -04:00
shindli 108a654fb8 Merge inbound to mozilla-central. a=merge 2018-04-12 02:45:34 +03:00
Tristan Bourvon bec4e38793 Bug 525063 - Backing out a hunk triggering an assertion in gfx/layers/SourceSurfaceSharedData.h CLOSED TREE
--HG--
extra : rebase_source : c58fb6f67fa3a3920830f3724deb0410c5b49b32
2018-04-11 17:42:49 +02:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Andreea Pavel 525c9e7907 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-11 17:38:56 +03:00
Jeff Muizelaar c9d72fab40 Bug 1453090. Don't PopClip on a different DT. r=jrmuizel
Make sure we PushClip on the same DT as we PopClip

--HG--
extra : rebase_source : 9ddc864f86582410597c82b36190827341c146a3
2018-04-11 10:27:12 -04:00
sotaro 35982d6737 Bug 1452901 - Schedule generate frame r=nical 2018-04-11 11:34:25 +09:00
arthur.iakab bbca7c7700 Merge mozilla-central to inbound 2018-04-11 01:17:20 +03:00
Nika Layzell 0c3ba13e4c Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
Lee Salzman dc3fc2506c Bug 1450814 - generic implementation of DrawTarget::Blur using LockBits. r=rhunt
MozReview-Commit-ID: 2jROASoiPQd
2018-04-10 16:46:32 -04:00
Robert Longson 36466d75ed Bug 1451066 - One t in detach r=jmuizelaar
--HG--
extra : rebase_source : 00669d1975e41963a2dc030d76c7edf78fcd1593
2018-04-03 10:54:00 +03:00
Gurzau Raul df79f362f0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-10 19:56:38 +03:00
Kartikaya Gupta 97a6b6003c Bug 1449982 - Conceptually split the mUpdaterQueue into separate queues per layers id. r=botond
This allows us to treat tasks from different layers id as independent,
thereby removing the unnecessary latency increase as described in bug
1449982 comment 33.

Note that we could probably implement this by actually maintaining
separate queues for each layers id, but that involves more overhead
since we would need to have a map from layers id to task queue, and
removing entries from that map becomes tricky with respect to locking
and timing.

MozReview-Commit-ID: 7jtYqNDwJqP

--HG--
extra : rebase_source : d55fa2c20c5e78a330033dcf049d5cc468024bb0
2018-04-10 12:30:01 -04:00
Kartikaya Gupta c113f26ef7 Bug 1449982 - Hook up epoch-based task processing on the updater thread. r=botond,nical
This makes it so that we only process a UpdateHitTestingTree task (and any
tasks queued after it) once we know that the corresponding scene has
been built and swapped in by WebRender. This ensures that processing of
APZ data stays in sync with the active scene in WR.

The way we do this is by tracking the "epoch" (which is updated per
WR/layers transaction) that the APZ messages are based on. Only once the
scene for that transaction is swapped in do we process those messages.

MozReview-Commit-ID: 2qGTSTeSqve

--HG--
extra : rebase_source : fb4cb0df3970213d01e21a792957ad22771a0637
2018-04-10 12:30:01 -04:00
Kartikaya Gupta bcf81a1fe2 Bug 1449982 - Move the WebRenderScrollData storage from WebRenderBridgeParent to APZUpdater. r=botond
This allows us to easily store a handle to the APZUpdater on the
WebRenderScrollDataWrapper class and walk around in the scroll data tree
without having to query other classes like CompositorBridgeParent or
WebRenderBridgeParent when we encounter a reflayer boundary.

MozReview-Commit-ID: 6l7oMb7tBlW

--HG--
extra : rebase_source : d21b64317eaf40f743fb7354b3292ab0f54a6d05
2018-04-10 12:29:56 -04:00
Kartikaya Gupta cee3af0c5e Bug 1449982 - Clean up WrEpoch usage. r=nical
I don't know why we keep using plain uint32_t and uint64_t values when
we have better types that we can use. This makes the code use and store
wr::Epoch natively instead of raw uint32_t values that are wrapped
on-demand.

MozReview-Commit-ID: HUVcHYSxBTi

--HG--
extra : rebase_source : 9e8f367f864483a65273cbbeb1168587841279f0
2018-04-10 12:29:56 -04:00
Kartikaya Gupta 9c2db3f2e5 Bug 1449982 - Add the task queue for running things on the updater thread. r=botond
If we're using the WR scene builder thread as the updater thread, we
cannot just post a task to its message loop, because it's a rust thread
that doesn't have a message loop. Instead, we put these tasks into a queue
that we will process in callbacks that are invoked from the updater
thread.

This patch just adds the basic queue machinery, it will get more
complicated in a future patch because we need to gate the tasks to make
sure they don't run too early.

MozReview-Commit-ID: 8DCYbsQ5cBC

--HG--
extra : rebase_source : 7081fb187436451b0c9d654f2e31c486d25924d7
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 4bffc1c061 Bug 1449982 - Implement the WR updater thread registration. r=botond
This lets the APZUpdater know which thread is the actual updater thread.
This is only really used for the thread assertions, but might be useful
for debugging and such as well.

MozReview-Commit-ID: IIDm6Ui3Sh4

--HG--
extra : rebase_source : 575ba6c0c5d56276743e81e738e73e7672e08367
2018-04-10 12:29:55 -04:00
Kartikaya Gupta fde6e769ba Bug 1449982 - Add the plumbing for scene builder thread interaction. r=nical
This is all the (bidirectional) glue that connects the SceneBuilderHooks
to the APZUpdater.

MozReview-Commit-ID: JIqUaClVa57

--HG--
extra : rebase_source : c6da81e63793570f79cdfa153f6d33d2ac05bdf6
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 4a07281ed3 Bug 1449982 - Introduce pref to control async scene building. r=nical
Until all the pieces are in place, turning on this pref will probably
break horribly. But we need the pref so we can add the rest of the
pieces without enabling them by default.

MozReview-Commit-ID: 7DkcwZgXwhx

--HG--
extra : rebase_source : e1fdef2e9a682028df524f51f767a4d2187410b1
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 7dd62afca0 Bug 1449982 - Maintain a map from WrWindowId to APZUpdater. r=botond
This will allow callbacks from rust code to get a handle to the
necessary APZUpdater instance on which to invoke functions.

MozReview-Commit-ID: 13XdzZrrtI5

--HG--
extra : rebase_source : 137af2a4c738a6e9294972be9e0566c9fdef58ac
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 164909dbed Bug 1449982 - Move the window id allocation to CompositorBridgeParent. r=nical
This includes a signature change from CompositorBridgeParentBase ->
CompositorBridgeParent which is not strictly required, but it makes it less
likely that we'll accidentally create a WebRenderAPI from somewhere else
and pass a nonsense window id. In effect, the signature change makes it
likely that only CompositorBridgeParent will allocate the window ids.

MozReview-Commit-ID: 8AnnmI8RytR

--HG--
extra : rebase_source : 6fd957c4a9e5bb2175bee2cc89f7eb6d27a6bc9e
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 42eff13cf2 Bug 1449982 - Don't hold the sIndirectLayerTreesLock unnecessarily while notifying APZ of a layer tree removal. r=botond
MozReview-Commit-ID: 2OqbmMHCxn9

--HG--
extra : rebase_source : ec94523ba6d56a0c9cbfe3bf1a35bfaf2ba4687c
2018-04-10 12:29:54 -04:00
Miko Mynttinen 497d73ffdc Bug 1452791 - Update WebRenderLayerManager mAnimationReadyTime in empty transactions r=kats
MozReview-Commit-ID: 898pemO7YxO

--HG--
extra : rebase_source : d9f51ae6455bb633374d0752b0c73f6ef960ba9a
2018-04-10 16:07:48 +02:00
Csoregi Natalia 2b084713ed Merge inbound to mozilla-central. a=merge 2018-04-10 12:56:48 +03:00
Markus Stange f0fdc9bdc6 Bug 1449641 - Always use mDrawTarget when merging the buffered region into the window DrawTarget. r=sotaro
If we have a non-null mTarget, we already set mDrawTarget to mTarget. So "mTarget ? mTarget : mDrawTarget" will always evaluate to mDrawTarget.

MozReview-Commit-ID: BlGYEdlL50Q

--HG--
extra : rebase_source : 214baea43d160c85d06cc11931c1c10d9a6ae4d2
2018-03-28 13:23:35 -04:00
Markus Stange 56547dba64 Bug 1449641 - Remove extraneous "if (mRenderTarget->mDrawTarget != mDrawTarget)". r=sotaro
The same condition is checked just before this if, so it's always true.

MozReview-Commit-ID: 9Vscnkz7AoY

--HG--
extra : rebase_source : d4209c6eb3963762c76a7dc4e1344147ae63f71a
2018-03-28 13:13:03 -04:00
Markus Stange 8ce851058b Bug 1449641 - Use the correct parameter when computing the clear rect. r=sotaro
This was incorrectly using the invalid rect, so it was clearing more than
necessary and not taking advantage of the opaque region that the caller computes.
The idea is that we don't need to clear parts of the invalid region that will be
covered by something opaque.

MozReview-Commit-ID: LhEkVUMnjC9

--HG--
extra : rebase_source : 97e0124684fbe6f3231795abf0591d25db0768db
2018-03-28 13:11:44 -04:00
Andreea Pavel 26f640b36b Backed out 4 changesets (bug 1366808) for Windows GPU leakchecks on a CLOSED TREE
Backed out changeset 23f60e5acaa2 (bug 1366808)
Backed out changeset bf2262b6aca8 (bug 1366808)
Backed out changeset 1fc82af3a155 (bug 1366808)
Backed out changeset 0649f0d9884b (bug 1366808)
2018-04-10 05:11:36 +03:00
Daniel Zielas 471ef50beb Bug 1420512 - Try unifying data structures for scrollbar container and scrollbar thumb info. r=botond
MozReview-Commit-ID: 9zPkrA3CwsN

--HG--
extra : rebase_source : b52bef52576558f03afc65120a40a5312ae7eba3
2018-03-02 19:00:03 +01:00
Stephen A Pohl b40a23754c Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-04-09 20:16:31 -04:00
Andreea Pavel 0724b513f9 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-10 00:58:54 +03:00
Olli Pettay a2485252b4 Bug 1452751 - add a pref to control whether to default to passive touch listeners on window/document/documentElement/body , r=kats
--HG--
extra : rebase_source : ba015d60e7ab7da183048dc59dfb0fe42930df6d
2018-04-09 23:43:17 +03:00
Noemi Erli b55e1a1cbc Merge inbound to mozilla-central. a=merge 2018-04-09 19:46:07 +03:00
Kartikaya Gupta 8d337fa65b Bug 1451453 - Update for API change in WR PR 2613. r=jrmuizel
MozReview-Commit-ID: DbVj132MFri

--HG--
extra : rebase_source : 3ef6251547e9c2c495fcb955c9c4ab63ce63bad9
2018-04-09 08:27:16 -04:00
Kartikaya Gupta a95486dbd8 Bug 1451453 - Update for API change in WR PR 2600. r=jrmuizel
MozReview-Commit-ID: H5NL0Zmk9Vq

--HG--
extra : rebase_source : 6d8dd0067b58b1258587972ca88b323466561c15
2018-04-09 08:27:16 -04:00
Kartikaya Gupta 9905a5d165 Bug 1451453 - Update webrender to commit 092ada1154b72fe71d2f227a5df0239586d2323a. r=jrmuizel
MozReview-Commit-ID: 9djydrUnoWq

--HG--
extra : rebase_source : 24f1aaee32e64453daebc237e48c08804531b59e
2018-04-09 08:26:07 -04:00
Jonathan Watt 52623f7cef Bug 1452466 - Get rid of gfxFontStyle::ComputeWeight. r=jfkthame 2018-04-09 10:39:17 +01:00
Jonathan Watt ef1290712d Bug 1452170 follow-up - Fix Windows unified build bustage by adding missing AutoRestore.h includes. r=me on CLOSED TREE 2018-04-09 10:21:42 +01:00
Kartikaya Gupta efcb51ab74 Bug 1452601 - Drop LayersId::EqualFn as it is unnecessary. r=botond
It's not needed, because by default std::unorderd_map will use
std::equal_to which delegates to the operator== on LayersId which does
the same thing. We don't need to reimplement it.

MozReview-Commit-ID: CLJO2JJfbF4

--HG--
extra : rebase_source : c8f5c254f00ab5e96c5d6e140534465c5a52c5af
2018-04-09 08:29:55 -04:00
Lee Salzman a90ccf8ea5 Bug 1448703 - log WR blob image font deletions for debugging. r=jrmuizel
MozReview-Commit-ID: FwpfhKjIpfm
2018-04-08 21:31:16 -04:00
Noemi Erli eb61878455 Merge inbound to mozilla-central. a=merge 2018-04-07 00:55:15 +03:00
Jonathan Kew 309329c3c0 Bug 1450209 - Avoid use of CTFontGetAdvancesForGlyphs with variation fonts due to possible Core Text crash. r=mstange 2018-04-06 19:44:05 +01:00
Kartikaya Gupta dcb1009794 Bug 1449287 - Remove obsolete compositor animation telemetry probes. r=botond
MozReview-Commit-ID: 7zFtemtGIAx

--HG--
extra : rebase_source : e9bcf9bebf9b10151a8618882a706707c28d5bda
2018-04-05 14:55:32 -04:00
Ted Campbell ce6621e562 Bug 1451878 - Add memory reporting for gfxDWriteFontFileLoader. r=lsalzman
MozReview-Commit-ID: 9EBXTiNfRrA
2018-04-06 12:44:07 -04:00
Andrew Osmond 679c14a9c4 Bug 1388020. r=nical 2018-04-06 09:01:17 -04:00
Andreea Pavel eed7d2803f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 17:54:45 +03:00
Kartikaya Gupta fce60f9567 Bug 1419851 - Handle OMTA throttling for webrender. r=jrmuizel
Original patch by Ethan Lin <ethlin@mozilla.com>.

MozReview-Commit-ID: AAIaskIsz9x

--HG--
extra : rebase_source : 879144b98467f47867d66f2806d7d31dbcf2bc7b
2018-04-06 10:06:54 -04:00
Alexis Beingessner 0494a7c88a Bug 1451102 - roundout blobimage bounds and use that result consistently. r=jrmuizel
MozReview-Commit-ID: A9LLJnlOUjt

--HG--
extra : rebase_source : b66481965a17004907aeadf9ff5e0594400a2d5a
2018-04-06 23:09:25 -04:00
Bas Schouten 994ab9fbd6 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00