Commit Graph
207 Commits
Author SHA1 Message Date
Kartikaya Gupta 9591ec0580 Bug 1403915 - Collapse EndTransactionInternal into EndTransactionWithoutLayers. r=jrmuizel
MozReview-Commit-ID: 5l9LkfJTqKy
2017-10-03 16:31:08 -04:00
Kartikaya Gupta 75dbd6ff90 Bug 1403915 - Remove some leftover Layer-related goop. r=jrmuizel
MozReview-Commit-ID: 2XCJaRcQR3s
2017-10-03 16:31:08 -04:00
Kartikaya Gupta 5142d6e6e5 Bug 1403915 - Remove some leftover painting callback goop. r=jrmuizel
MozReview-Commit-ID: BycK4Ug1sgm
2017-10-03 16:31:08 -04:00
Kartikaya Gupta 7c1da03e1c Bug 1403915 - Remove the WebRender*Layer classes and functions that refer to them. r=jrmuizel
MozReview-Commit-ID: 2syFwMc7j3r
2017-10-03 16:31:08 -04:00
Kartikaya Gupta cbacb77052 Bug 1403915 - Remove the IsLayersFreeTransaction() machinery and assume it's always true. r=jrmuizel
MozReview-Commit-ID: 7FYVirQ5pal
2017-10-03 16:31:07 -04:00
Ethan Lin f22d91c79b Bug 1404091 - In layers-free mode, we should do NotifyInvalidation after EndTransaction if there is any scheduled flush. r=kats
MozReview-Commit-ID: D0LNF0LgWYq
2017-10-03 16:00:38 +08:00
Ethan Lin 015adc0c19 Bug 1404782 - Do not mutate display list in layers-free mode. r=mattwoodrow
MozReview-Commit-ID: 7usEJupItdi
2017-10-02 11:18:31 +08:00
Kartikaya Gupta 997b6a1f90 Bug 1403176 - Turn on empty transactions support in layers-free WebRenderLayerManager. r=mstange
By returning true from WebRenderLayerManager::EndEmptyTransaction, we
avoid doing a full paint in cases where the caller decides an empty
transaction would be sufficient. WebRenderLayerManager already rejects
attempts to set some forms of empty-transaction data (specifically
transform and scroll offset updates). This means that we will never get
a call to EndEmptyTransaction where the caller is expecting a transform
or scroll offset update to be sent over to the compositor. So if we have an
implementation of EndEmptyTransaction that ignores that data, it will not
break expectations.

There is still one piece of information that WebRenderLayerManager
doesn't reject in this manner, the APZ focus state. That is, if the
layout code sets a pending APZ focus state on the WRLM, followed by a
all to EndEmptyTransaction, it expects the focus state to get propagated
to the compositor. This patch makes sure that it does happen by using
the new API added in the previous patch.

MozReview-Commit-ID: 596UgW9ZWAF
2017-10-02 16:49:56 -04:00
Kartikaya Gupta 3c6fb5e7e6 Bug 1403176 - Make WebRenderLayerManager reject pending scroll offset updates. r=mstange
Currently some callers attempt to set a "pending scroll offset update"
on the layer tree, which basically allows it to send a scroll offset
update to the compositor in an empty transaction, without doing a full
paint. However, WebRenderLayerManager doesn't really support empty
transactions yet, so we want to reject attempts to do this for now. This
will force the callers to schedule a full transaction instead of an
empty transaction.

MozReview-Commit-ID: 1bBlj59W5HH
2017-10-02 16:49:55 -04:00
Ethan Lin 00508fedbe Bug 1395501 - Part2. Use stacking context's scale value to compute the correct paint rect. r=jrmuizel
MozReview-Commit-ID: AaAhTza5TP4
2017-09-29 12:09:51 +08:00
Jeff Muizelaar ede12e9530 Bug 1402004. Use A8 as the format for the dummy drawtarget. r=Gankro
I'm not sure why the original comment was there. Everything seemed
to work in local testing.
2017-09-27 00:02:01 -04:00
Kartikaya Gupta 92ec9112a3 Bug 1402439 - Redo how we discard compositor animation ids. r=pchang
Instead of always discarding the compositor animation id, and then
sometimes un-discarding it (which involves a linear lookup in nsTArray),
this patch now has the WebRenderLayerManager keep a set of active
animation ids, and uses that to avoid discarding the same animation
twice.

In addition, because the display item can be destroyed at any time (e.g.
in the middle of an animation), we were previously "leaking" compositor
animations in that the compositor side never got notified to discard the
IDs. This resulted in infinite composition loops. This patch solves this
problem by having any unused WebRenderAnimationData trigger discard of
the animation id during destruction. This way, even if the nsDisplayItem
is deleted in the middle of the animation we have a fallback mechanism
to discard the id.

MozReview-Commit-ID: 8G3EYHcg9Kl
2017-09-22 16:39:57 -04:00
Kevin Chen 481a73a6d8 Bug 1393376 - (Part 2) Retain BasicLayerManager in WebRenderFallbackData for layer invalidation computation; r=jrmuizel
MozReview-Commit-ID: 6rmJkXzLubX
2017-09-07 15:04:30 +08:00
Kevin Chen 02e8346163 Bug 1393376 - (Part 1) Paint the item when its type is TYPE_FILTER during WebRenderFallbackData generating; r=jrmuizel
MozReview-Commit-ID: JxNa1OGrSVb
2017-09-11 15:07:26 +08:00
Sebastian Hengst b694ca60a6 merge mozilla-central to autoland. r=merge a=merge 2017-09-21 15:28:11 +02:00
Morris Tseng d7ade017fc Bug 1392200 - Add backface-visibility support for layers-free mode. r=kats
For layers-full mode, we set the backface-visibility to visible because
visibility would be handled by FLB and layers.

MozReview-Commit-ID: CUbeUabfC7K
2017-09-21 14:41:38 +08:00
sotaro c3b131bd95 Bug 1399652 - Add more IPCOpen() checks to WebRenderBridgeChild r=kats 2017-09-21 09:41:34 +09:00
peter chang ff62ace7ce Bug 1396471 - Keep the running compositorAnimationsId alive on the compositor, r=kats
If the compositor animations are still valid, we don't need to add its id to the discarded list.
This patch also reduces unnecessary SendDeleteCompositorAnimations calls.

MozReview-Commit-ID: AcbVUk3MUo7
2017-09-21 16:18:03 +08:00
Nicolas Silva 3c8f9ba825 Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel 2017-09-20 13:36:53 +02:00
Sebastian Hengst 69e52ec63f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-20 11:50:40 +02:00
Nicolas Silva 32380e2bcc Bug 1393031 - Use IpcResourceUpdateQueue in more places. r=jrmuizel 2017-09-20 10:56:20 +02:00
Ethan Lin 4a32f5f595 Bug 1397375 - Part2. Add a table in layer manager to keep webrender user data and remove unused data in each transaction. r=jrmuizel
MozReview-Commit-ID: HsO3BCc2eeL
2017-09-14 14:39:00 +08:00
Wes Kocher 98effee31d Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Nicolas Silva beeb4c3211 Bug 1397407 - Apply deferred image key deletions to the next transaction. r=Gankro 2017-09-15 13:24:31 +02:00
Sebastian Hengst 420cea5f95 Backed out changeset 70f5f23a429f (bug 1397407) for letting Talos g1 timeout and spam its log on Linux x64 QuantumRender opt. r=backout a=backout
MozReview-Commit-ID: DOv1JPa2f7U
2017-09-16 10:57:44 +02:00
Nicolas Silva b2932cd74f Bug 1397407 - Apply deferred image key deletions to the next transaction. r=Gankro 2017-09-15 13:24:31 +02:00
Sebastian Hengst 3d1c21019e Backed out changeset 5dff64340068 (bug 1397407) because it depends on bug 1393031. r=backout on a CLOSED TREE 2017-09-14 23:36:02 +02:00
Sebastian Hengst 835e4ad199 Backed out changeset 8291145f0920 (bug 1393031) 2017-09-14 23:18:05 +02:00
Sebastian Hengst fc53f3bd53 Backed out changeset f34a52244cf9 (bug 1393031) 2017-09-14 23:17:35 +02:00
Kartikaya Gupta 2a8adae93c Bug 1400868 - Destroy backface-hidden display items that we're not going to process. r=jrmuizel
MozReview-Commit-ID: EPZwJ2upjXX
2017-09-18 12:22:19 -04:00
Nicolas Silva 4989b47713 Bug 1397407 - Apply deferred image key deletions to the next transaction. r=Gankro 2017-09-12 10:39:00 -04:00
Nicolas Silva 8c829d94a4 Bug 1393031 - Remove unused nsTArray<WebRenderParentCommand>& parameter all over the place. r=jrmuizel 2017-09-14 20:21:54 +02:00
Nicolas Silva 25ffeade4e Bug 1393031 - Use IpcResourceUpdateQueue in more places. r=jrmuizel 2017-09-14 20:21:46 +02:00
Nicolas Silva 7100d343f6 Bug 1393031 - Use shared memory to pass resource update data. r=jrmuizel 2017-09-14 18:48:55 +02:00
Miko Mynttinen ad9cd57bca Bug 1359584 - Part 5: Change nsDisplayItem merging logic to non-destructive r=mstange
MozReview-Commit-ID: CiN2yUOyaMX
2017-08-23 21:01:28 +02:00
Ethan Lin 7f7c2c78a3 Bug 1393077 - Part2. Round the offset for the fallback. r=kats
MozReview-Commit-ID: GfTrA7bChuc
2017-08-31 18:20:06 +08:00
Kartikaya Gupta d18207bdd1 Bug 1394695 - Don't push scrolling clips in layers-free WR if APZ is disabled. r=mstange
MozReview-Commit-ID: AesXui61mB2
2017-09-12 10:33:45 -04:00
Jeff Muizelaar 216f89a487 Bug 1397922. Correctly set the opacity of blob images. r=Gankro
Currently we're always marking them opaque even when they're not.
2017-09-09 17:43:45 -04:00
Nicolas Silva a68790f976 Bug 1393031 - Use the ResourceUpdateQueue API on the content side. r=jrmuizel 2017-09-04 13:59:36 +02:00
Nicolas Silva 947168818a Bug 1393031 - Expose webrender transactions at the ipc boundary. r=jrmuizel, r=kanru 2017-09-04 13:59:26 +02:00
Wes Kocher 465d44242e Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Kartikaya Gupta 6acddc7f74 Bug 1395670 - In webrender layers-free mode, don't add a root scroll metadata if we already have it elsewhere in the tree. r=mstange
MozReview-Commit-ID: B9LY4v9t11Y
2017-08-31 17:07:41 -04:00
vincentliu 9c8b2dfe32 Bug 1391458 - Make sure WrBridge is ready in the head of BeginTransaction. r=kats 2017-09-01 18:05:53 +08:00
Kartikaya Gupta a31a2e4c39 Bug 1394011 - Place the root ScrollMetadata on the tree we send to APZ in layers-free webrender mode. r=mstange
MozReview-Commit-ID: i6BDSDgKiu
2017-08-28 17:17:37 -04:00
Sebastian Hengst 3ce355b1c5 merge mozilla-central zo mouilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-28 17:10:37 +02:00
Jeff Muizelaar fc66bbcfff Bug 1391841: Clip fallback display items using WebRender clips instead of doing the clip internally. r=ethlin
This gives a huge performance improvement when scrolling mozilla.org.
It's only used when we have blob images which now support tiling.
2017-08-28 10:25:00 -04:00
Ethan Lin 7a153036ed Bug 1393706 - Compute display item's visibility when creating fallback data in layers-free mode. r=jrmuizel
MozReview-Commit-ID: 6eUnABLce2Z
2017-08-25 16:36:15 +08:00
Ethan Lin c58bfad26f Bug 1391202 - Add NotifyInvalidation mechanism for layers-free mode. r=kats
MozReview-Commit-ID: G82DgErNTRq
2017-08-23 23:03:43 +08:00
Ethan Lin 3d1ceab14a Bug 1391541 - Correct the transform for layers-free fallback. r=kats
MozReview-Commit-ID: v9hVeUmY3E
2017-08-22 13:55:49 +08:00
Morris Tseng 6a5a58f698 Bug 1392200 - Check backface:hidden in layers-free mode. r=kats
MozReview-Commit-ID: 9guOx0NPjmV
2017-08-22 13:46:30 +08:00