mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1479075 - Ensure FlushRenderingAsync actually flushes the compositor. r=sotaro
MozReview-Commit-ID: AfVIwLj2YJp --HG-- extra : rebase_source : 3c9f4af10be9ab38fb708a2be4cb9393cd7e86c7
This commit is contained in:
parent
19803c9fee
commit
22456cd52b
@ -616,7 +616,7 @@ mozilla::ipc::IPCResult
|
||||
CompositorBridgeParent::RecvFlushRenderingAsync()
|
||||
{
|
||||
if (mWrBridge) {
|
||||
mWrBridge->FlushRenderingAsync();
|
||||
mWrBridge->FlushRendering(false);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
@ -1667,7 +1667,7 @@ WebRenderBridgeParent::ScheduleGenerateFrame()
|
||||
}
|
||||
|
||||
void
|
||||
WebRenderBridgeParent::FlushRendering()
|
||||
WebRenderBridgeParent::FlushRendering(bool aWaitForPresent)
|
||||
{
|
||||
if (mDestroyed) {
|
||||
return;
|
||||
@ -1677,17 +1677,9 @@ WebRenderBridgeParent::FlushRendering()
|
||||
// scene (which has the display list at the new window size).
|
||||
FlushSceneBuilds();
|
||||
FlushFrameGeneration();
|
||||
FlushFramePresentation();
|
||||
}
|
||||
|
||||
void
|
||||
WebRenderBridgeParent::FlushRenderingAsync()
|
||||
{
|
||||
if (mDestroyed) {
|
||||
return;
|
||||
if (aWaitForPresent) {
|
||||
FlushFramePresentation();
|
||||
}
|
||||
|
||||
mCompositorScheduler->FlushPendingComposite();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -168,8 +168,7 @@ public:
|
||||
return mIdNamespace;
|
||||
}
|
||||
|
||||
void FlushRendering();
|
||||
void FlushRenderingAsync();
|
||||
void FlushRendering(bool aWaitForPresent = true);
|
||||
|
||||
/**
|
||||
* Schedule generating WebRender frame definitely at next composite timing.
|
||||
|
Loading…
Reference in New Issue
Block a user