Commit Graph

2681 Commits

Author SHA1 Message Date
Kartikaya Gupta
73a014cd3e Merge m-c to graphics
MozReview-Commit-ID: 6UBB4TW6an5
2017-04-27 09:31:17 -04:00
Kartikaya Gupta
f8bacc7c52 Merge m-c to graphics
MozReview-Commit-ID: 3s6ISsQ3jG9
2017-04-24 09:17:28 -04:00
Kartikaya Gupta
3af8d29cef Merge m-c to graphics
MozReview-Commit-ID: 5zsIClrx1FB
2017-04-21 10:01:47 -04:00
Kartikaya Gupta
e5361ecae8 Bug 1357754 - Add a mechanism to send scroll data to APZ over PWebRenderBridge. r=jrmuizel
This adds a WebRenderScrollData class (which contains a list of
WebRenderLayerScrollData objects, among other things), and adds it to
the DPEnd/DPSyncEnd messages sent across PWebRenderBridge. These classes are
skeletons for now (more stuff will be added to them in future patches).

MozReview-Commit-ID: 9duxwlUpdu7
2017-04-20 10:38:04 -04:00
sotaro
8305f0b97e Bug 1356944 - Fix external image id allocation of WebRenderTextureHost r=nical 2017-04-20 10:24:13 +09:00
Ben Kelly
b0cad64d79 Bug 1358622 Fix unified build bustage in PUiCompositorController.ipdl. r=kats 2017-04-21 19:15:54 -04:00
Kartikaya Gupta
52bc8add68 Merge m-c to graphics
MozReview-Commit-ID: 8Oqr9Nbqsn0
2017-04-19 07:02:32 -04:00
Kartikaya Gupta
5da2b0a835 Bug 1357541 - Use the full 64 bit value of the PipelineId when converting to a layers ID. r=nical
MozReview-Commit-ID: 98OOkEML6RF
2017-04-19 06:58:10 -04:00
sotaro
2f88c289f9 Bug 1357644 - Use wr::ExternalImageId instead of uint64_t for external image id r=nical 2017-04-19 18:59:53 +09:00
Carsten "Tomcat" Book
5c743100d6 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Randall Barker
c9c5863456 Bug 1358805 - part 2: Allow DynamicToolbarAnimator to query if the UiCompositorController is open in the case it missed the open message r=kats
MozReview-Commit-ID: 8wdMpQh44Zc
2017-04-25 15:13:58 -07:00
Randall Barker
ba1519eb6e Bug 1358805 - part 1: Add new UiCompositorController message types TOOLBAR_SNAPSHOT_FAILED and IS_COMPOSITOR_CONTROLLER_OPEN r=kats
MozReview-Commit-ID: Ezd8Ng7Zsxm
2017-04-25 15:13:58 -07:00
Jeff Muizelaar
b098c920ec Bug 1357549. Remove unused includes. r=kats
There are left over from when we built display lists on the parent side.
2017-04-18 17:03:39 -04:00
peter chang
6a13a09f50 Bug 1345017 - Discard compositor animations on the next layer transaction, r=kats
Animations in content side could be removed easily by changing CSS, but the
CompositorAnimationStorage in parent side doesn't get updated. Therefore,
we store the layer's CompositorAnimationsId before layer is destroyed in
WebRenderLayerManager and then send out these discarded ids to parent on
the next layer transaction.

MozReview-Commit-ID: D4kbYsgLl4P
2017-04-14 11:58:42 +08:00
peter chang
1e962dcfad Bug 1345017 - pass animation data from content to WebRenderBridgeParent, r=kats
MozReview-Commit-ID: 7p5ocyr1ywV
2017-03-28 17:11:03 +08:00
Kartikaya Gupta
f9a70f470c Merge m-c to graphics
MozReview-Commit-ID: KwTegQDnKGG
2017-04-17 10:33:46 -04:00
sotaro
40ad1d8199 Bug 1356960 - Avoid to allocate WebRenderTextureHost for TextureHost of VideoBridgeParent and VRManagerParent r=jerry 2017-04-17 22:08:43 +09:00
Kartikaya Gupta
a1df68e319 Merge m-c to graphics
MozReview-Commit-ID: 7iqIrSl2VpU
2017-04-15 17:05:27 -04:00
sotaro
111d213410 Bug 1356190 - Fix GetNextExternalImageId() r=jrmuizel 2017-04-14 17:06:09 +09:00
Kartikaya Gupta
7d0014f5d4 Merge m-c to graphics
MozReview-Commit-ID: EGaA6e4loBM
2017-04-13 11:08:02 -04:00
vincentliu
2d5d641f41 Bug 1350330 - Make sure IPC channel still Open before sending IPC message. r=dvander 2017-04-17 15:50:42 +08:00
Kartikaya Gupta
8ae00d4760 Merge m-c to graphics
MozReview-Commit-ID: Ij5C7MUete4
2017-04-11 10:09:54 -04:00
David Anderson
7a44341bcc Improve pixel fill statistics in the D3D11 compositor overlay. (bug 1352151 part 6, r=bas)
This introduces two new statistics to the overlay. The first is the ratio of
pixel shader invocations (as determined by the GPU) to the number of pixels we
determined need to be redrawn. The ideal ratio is 1.0, indicating that we
filled every pixel exactly once. Anything over 1.0 indicates overdraw.

We also add the ratio of shaded pixels to window size. This indicates how well
we computed the invalid region, and whether or not we overfilled that
region.

Note that the OpenGL and Basic compositors do not yet query the GPU for
this statistic, so they will estimate shader invocations by the area of
DrawQuad calls.

Finally, we remove the feature where layout can request the most
recent overdraw statistic. It was not implemented on all compositors, and the
only test that used it was disabled.
2017-04-10 19:44:46 -07:00
David Anderson
7ff89642e7 Collect diagnostics on paint times for the compositor overlay. (bug 1352151 part 1, r=mattwoodrow) 2017-04-10 19:44:45 -07:00
Kartikaya Gupta
4b146ed115 Merge m-c to graphics
MozReview-Commit-ID: ICVAgHmKVL4
2017-04-10 08:47:20 -04:00
sotaro
3ef75db7a1 Bug 1354474 - Add FlushRendering() and Composite() support to WebRenderLayerManager r=mattwoodrow 2017-04-10 15:58:29 +09:00
Sebastian Hengst
0955e63383 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EjT9dcum69m
2017-04-14 23:56:10 +02:00
Kartikaya Gupta
8ae357970e Bug 1350638 - Remove the GetCompositorOptions IPC message as it is no longer used. r=dvander
MozReview-Commit-ID: 18uiWGA9eJy
2017-04-09 17:31:59 -04:00
Kartikaya Gupta
eeb5724c1f Bug 1350638 - Remove sync GetCompositorOptions call added in the last patch. r=dvander
This call should be a no-op in the real world, and should be safe to
remove. The patch also adds an assert to ensure that the call is
effectively a no-op.

MozReview-Commit-ID: BXdcnHULWW2
2017-04-09 17:31:06 -04:00
Kartikaya Gupta
1bcda612ce Bug 1350638 - Remove sync GetCompositorOptions call in TabChild::InitRenderingState. r=dvander
The goal of this patch is to remove the call to the sync IPC
GetCompositorOptions message from TabChild::InitRenderingState. In order
to this, we have InitRenderingState take the CompositorOptions as an
argument instead, and propagate that backwards through the call sites.
Eventually we can propagate it back to a set of already-sync IPC
messages in PCompositorBridge that are used during layers id
registration (NotifyChildCreated, NotifyChildRecreated, etc.). Therefore
this patch effectively piggybacks the CompositorOptions sync IPC onto
these pre-existing sync IPC messages.

The one exception is when we propagate it back to the AdoptChild call.
If this message were sync we could just use it like the others and have
it return a CompositorOptions. However, it is async, so instead we add
another call to GetCompositorOptions here temporarily. This will be
removed in the next patch.

MozReview-Commit-ID: AtdYOuXmHu4
2017-04-09 17:30:27 -04:00
Lee Salzman
6ca29fbb02 Bug 1348980 - use UnscaledFont to track WebRender font keys. r=jrmuizel 2017-04-06 17:41:24 -04:00
Kevin Chen
4d9eaec005 Bug 1350828 - Label CompositorForwarder; r=bevistseng,kats
MozReview-Commit-ID: 714oc4O8MNs
2017-03-29 13:49:20 +08:00
Bill McCloskey
f54a056450 Bug 1333968 - Label the DidComposite message (r=dvander)
MozReview-Commit-ID: 7cW7apxUJu0
2017-04-11 12:59:13 -07:00
Kartikaya Gupta
19e6ba8d7d Bug 1357390 - Consistently use uint64_t for the referent id, because that's what it really is. r=mattwoodrow
MozReview-Commit-ID: LPxcElOVrU3
2017-04-18 08:43:08 -04:00
Andrew Osmond
674676e8e4 Bug 1356289 - Part 2. Make gfx use the new SharedMemory::SetHandle API. r=jrmuizel 2017-04-18 12:25:00 -04:00
David Anderson
32519375c6 Make finer-grained decisions about whether to update hit testing trees. (bug 1352918, r=kats)
Updating hit testing trees is very expensive for many layers, and often
layer properties that change don't necessitate hit testing tree updates.
While layer tree structure changes do, we can be smarter about
individual layer attributes.
2017-04-13 21:25:16 -07:00
Sotaro Ikeda
7302ff8d44 Bug 1323612 (Part 2) - Add runtime fixups for WebRender on Android. r=kats
MozReview-Commit-ID: 2fWRPkRM52e
2017-04-05 10:12:11 -04:00
Eric Rahm
61aef92654 Bug 1353143 - Part 5: Replace direct usage of PR_LogPrint. r=froydnj
This replaces the usage of |PR_LogPrint| with either |printf_stderr| or
|MOZ_LOG| where appropriate. |printf_stderr| is used where a logger is not
actually available or if log levels are not being used as expected.
2017-04-04 14:36:21 -07:00
David Anderson
61fb14fc06 Fix a race condition between VideoBridge and Compositor thread shutdown. (bug 1356365, r=mattwoodrow) 2017-04-20 19:32:48 -07:00
Randall Barker
c955f482b1 Bug 1335895 - Android GeckoView Dynamic Toolbar Version 3 r=botond,dvander,jchen,kats
This version of the Dynamic Toolbar moves the animation of the toolbar
from the Android UI thread to the compositor thread. All animation for
showing and hiding the toolbar are done with the compositor and a static
snapshot of the real toolbar.

MozReview-Commit-ID: BCe8zpbkWQt
2017-04-20 15:15:14 -07:00
David Anderson
d4e994a584 When using the GPU process, combine layer ownership and window mapping into a single IPC message. (bug 1350660 part 1, r=rhunt, r=billm) 2017-04-03 15:13:37 -07:00
Wes Kocher
5066a5dc90 Merge autoland to central, a=merge
MozReview-Commit-ID: 4DDSNU4ABBB
2017-03-27 17:03:30 -07:00
Bobby Holley
68330022ab Bug 1351026 - Followup build bustage fix. rpending=froydnj CLOSED TREE
MozReview-Commit-ID: FnzU7d5Emq1
2017-03-27 14:34:46 -07:00
Nicolas Silva
381af6a4d1 Bug 1347641 - Implement the BlobImageRenderer binding glue. r=jrmuizel 2017-03-27 13:44:52 +02:00
Kartikaya Gupta
078c898f7d Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
sotaro
505b302b76 Bug 1349232 - Add destroyed check to CompositorVsyncScheduler::ScheduleComposition() r=kats
WebRenderBridgeParent works independently, if root WebRenderBridgeParent is destroyed
without CompositorBridgeParent::StopAndClearResources() call,
non-root WebRenderBridgeParent are still active and could trigger ScheduleComposition().
The change prevents to trigger ScheduleComposition() in this case.
2017-03-23 15:07:02 +09:00
Kartikaya Gupta
11afc88813 Merge m-c to graphics
MozReview-Commit-ID: Ci50iHfzKbA
2017-03-22 09:55:38 -04:00
sotaro
154085411b Bug 1347811 - Share WebRenderCompositableHolder between WebRenderBridgeParent r=nical 2017-03-22 10:27:38 +09:00
Ryan Hunt
5fb553c67e Bug 1345975 - Rename WrLayoutSize to WrSize r=kats
MozReview-Commit-ID: JY9YyoypFym
2017-03-09 16:58:33 -05:00
Kartikaya Gupta
fc7c5d7c88 Merge m-c to graphics
MozReview-Commit-ID: QN682uyISF
2017-03-09 10:42:57 -05:00