From 5bbd89905f5e96bac8485eef8e77a051b2d52083 Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Thu, 30 May 2019 21:08:01 +0000 Subject: [PATCH] Bug 1555379 - Record content paint times for WebRender r=kats The WebRenderBridgeChild now records whether or not it was painting content while sending display lists to the WebRenderBridgeParent, allowing for composition times to be recorded for WebRender. Differential Revision: https://phabricator.services.mozilla.com/D32229 --HG-- extra : moz-landing-system : lando --- gfx/layers/wr/WebRenderBridgeParent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/layers/wr/WebRenderBridgeParent.cpp b/gfx/layers/wr/WebRenderBridgeParent.cpp index d6ccb2ff18cb..05b37d9f73d9 100644 --- a/gfx/layers/wr/WebRenderBridgeParent.cpp +++ b/gfx/layers/wr/WebRenderBridgeParent.cpp @@ -1076,6 +1076,11 @@ mozilla::ipc::IPCResult WebRenderBridgeParent::RecvSetDisplayList( mChildLayersObserverEpoch, true); } + if (!IsRootWebRenderBridgeParent()) { + aPayloads.AppendElement( + CompositionPayload{CompositionPayloadType::eContentPaint, aFwdTime}); + } + HoldPendingTransactionId(wrEpoch, aTransactionId, aContainsSVGGroup, aVsyncId, aVsyncStartTime, aRefreshStartTime, aTxnStartTime, aTxnURL, aFwdTime, mIsFirstPaint,