Bug 1677929 - Add a way to specify an ID for a generated frame, and propagate the ID to the APZSampler. r=gw,kats

This ID allows the compositor to track per-frame information from frame
generation, through APZ sampling, to the NotifyDidRender notification.

Differential Revision: https://phabricator.services.mozilla.com/D97535
This commit is contained in:
Markus Stange
2020-12-09 03:35:50 +00:00
parent a867907ff8
commit 46ea354af1
24 changed files with 113 additions and 55 deletions

View File

@@ -252,8 +252,8 @@ void TransactionBuilder::ClearDisplayList(Epoch aEpoch,
wr_transaction_clear_display_list(mTxn, aEpoch, aPipelineId);
}
void TransactionBuilder::GenerateFrame() {
wr_transaction_generate_frame(mTxn);
void TransactionBuilder::GenerateFrame(const VsyncId& aVsyncId) {
wr_transaction_generate_frame(mTxn, aVsyncId.mId);
}
void TransactionBuilder::InvalidateRenderedFrame() {