Flush any buffer operations that may be running after EndEmptyTransaction before EndTransaction (bug 1416308, r=dvander)

MozReview-Commit-ID: CpdtwW2JNip

--HG--
extra : rebase_source : 20e46df173896d5d4fef7f0a9c0989096cd14daa
This commit is contained in:
Ryan Hunt 2017-11-10 13:12:15 -05:00
parent 639eb384ce
commit 3a2498f61a

View File

@ -436,6 +436,12 @@ ClientLayerManager::EndTransaction(DrawPaintedLayerCallback aCallback,
return;
}
if (mTransactionIncomplete) {
// If the previous transaction was incomplete then we may have buffer operations
// running on the paint thread that haven't finished yet
GetCompositorBridgeChild()->FlushAsyncPaints();
}
if (mWidget) {
mWidget->PrepareWindowEffects();
}