Bug 1333892 - Remove unused IPC message leftover from B2G days. r?kanru
MozReview-Commit-ID: 2qBq6WjzbcO
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -2727,21 +2727,17 @@ TabChild::MakeVisible()
void
TabChild::MakeHidden()
{
if (mPuppetWidget && !mPuppetWidget->IsVisible()) {
return;
}
- CompositorBridgeChild* compositor = CompositorBridgeChild::Get();
-
- // Clear cached resources directly. This avoids one extra IPC
- // round-trip from CompositorBridgeChild to CompositorBridgeParent.
- compositor->RecvClearCachedResources(mLayersId);
+ ClearCachedResources();
// Hide all plugins in this tab.
if (nsCOMPtr<nsIPresShell> shell = GetPresShell()) {
if (nsPresContext* presContext = shell->GetPresContext()) {
nsRootPresContext* rootPresContext = presContext->GetRootPresContext();
nsIFrame* rootFrame = shell->FrameConstructor()->GetRootFrame();
rootPresContext->ComputePluginGeometryUpdates(rootFrame, nullptr, nullptr);
rootPresContext->ApplyPluginGeometryUpdates();
--- a/gfx/layers/ipc/CompositorBridgeChild.cpp
+++ b/gfx/layers/ipc/CompositorBridgeChild.cpp
@@ -580,26 +580,16 @@ CompositorBridgeChild::RecvDidComposite(
for (size_t i = 0; i < mTexturePools.Length(); i++) {
mTexturePools[i]->ReturnDeferredClients();
}
return IPC_OK();
}
-mozilla::ipc::IPCResult
-CompositorBridgeChild::RecvClearCachedResources(const uint64_t& aId)
-{
- dom::TabChild* child = dom::TabChild::GetFrom(aId);
- if (child) {
- child->ClearCachedResources();
- }
- return IPC_OK();
-}
-
void
CompositorBridgeChild::ActorDestroy(ActorDestroyReason aWhy)
{
if (aWhy == AbnormalShutdown) {
// If the parent side runs into a problem then the actor will be destroyed.
// There is nothing we can do in the child side, here sets mCanSend as false.
gfxCriticalNote << "Receive IPC close with reason=AbnormalShutdown";
}
--- a/gfx/layers/ipc/CompositorBridgeChild.h
+++ b/gfx/layers/ipc/CompositorBridgeChild.h
@@ -89,19 +89,16 @@ public:
static bool ChildProcessHasCompositorBridge();
// Returns whether the compositor is in the GPU process (false if in the UI
// process). This may only be called on the main thread.
static bool CompositorIsInGPUProcess();
virtual mozilla::ipc::IPCResult
- RecvClearCachedResources(const uint64_t& id) override;
-
- virtual mozilla::ipc::IPCResult
RecvDidComposite(const uint64_t& aId, const uint64_t& aTransactionId,
const TimeStamp& aCompositeStart,
const TimeStamp& aCompositeEnd) override;
virtual mozilla::ipc::IPCResult
RecvInvalidateLayers(const uint64_t& aLayersId) override;
virtual mozilla::ipc::IPCResult
--- a/gfx/layers/ipc/PCompositorBridge.ipdl
+++ b/gfx/layers/ipc/PCompositorBridge.ipdl
@@ -121,22 +121,16 @@ child:
async CaptureAllPlugins(uintptr_t aParentWidget);
/**
* Hides all registered plugin widgets associated with a particular chrome
* widget.
*/
async HideAllPlugins(uintptr_t aParentWidget);
- /**
- * Drop any buffers that might be retained on the child compositor
- * side.
- */
- async ClearCachedResources(uint64_t id);
-
async ParentAsyncMessages(AsyncParentMessageData[] aMessages);
async ObserveLayerUpdate(uint64_t aLayersId, uint64_t aEpoch, bool aActive);
parent:
// Must be called before Initialize().
async PCompositorWidget(CompositorWidgetInitData aInitData);