Bug 1472140 - 3. Remove ForceIsFirstPaint ipdl call; r=kats

Remove the PCompositorBridge::ForceIsFirstPaint call that's no longer
used anywhere.
This commit is contained in:
Jim Chen 2018-07-31 12:21:49 -04:00
parent ffb71eca60
commit 2c94ad0e54
5 changed files with 4 additions and 7 deletions

View File

@ -454,11 +454,10 @@ CompositorBridgeParent::~CompositorBridgeParent()
}
}
mozilla::ipc::IPCResult
CompositorBridgeParent::RecvForceIsFirstPaint()
void
CompositorBridgeParent::ForceIsFirstPaint()
{
mCompositionManager->ForceIsFirstPaint();
return IPC_OK();
}
void

View File

@ -292,7 +292,7 @@ public:
* The information refresh happens because the compositor will call
* SetFirstPaintViewport on the next frame of composition.
*/
mozilla::ipc::IPCResult RecvForceIsFirstPaint() override;
void ForceIsFirstPaint();
static void SetShadowProperties(Layer* aLayer);

View File

@ -41,7 +41,6 @@ public:
mozilla::ipc::IPCResult RecvWillClose() override { return IPC_OK(); }
mozilla::ipc::IPCResult RecvPause() override { return IPC_OK(); }
mozilla::ipc::IPCResult RecvResume() override { return IPC_OK(); }
mozilla::ipc::IPCResult RecvForceIsFirstPaint() override { return IPC_OK(); }
mozilla::ipc::IPCResult RecvNotifyChildCreated(const LayersId& child, CompositorOptions* aOptions) override;
mozilla::ipc::IPCResult RecvMapAndNotifyChildCreated(const LayersId& child, const base::ProcessId& pid, CompositorOptions* aOptions) override;
mozilla::ipc::IPCResult RecvNotifyChildRecreated(const LayersId& child, CompositorOptions* aOptions) override { return IPC_FAIL_NO_REASON(this); }

View File

@ -164,7 +164,6 @@ parent:
// the compositor needs to pause/resume in lockstep with the application.
sync Pause();
sync Resume();
async ForceIsFirstPaint();
// See bug 1316632 comment #33 for why this has to be sync. Otherwise,
// there are ordering issues with SendPLayerTransactionConstructor.

View File

@ -75,7 +75,7 @@ UiCompositorControllerParent::RecvResumeAndResize(const int32_t& aWidth,
CompositorBridgeParent* parent = CompositorBridgeParent::GetCompositorBridgeParentFromLayersId(mRootLayerTreeId);
if (parent) {
// Front-end expects a first paint callback upon resume/resize.
parent->RecvForceIsFirstPaint();
parent->ForceIsFirstPaint();
parent->ResumeCompositionAndResize(aWidth, aHeight);
}
return IPC_OK();