зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1673710 - Remove PBrowser.NotifyCompositorTransaction. r=sefeng
It's dead. Differential Revision: https://phabricator.services.mozilla.com/D94881
This commit is contained in:
Родитель
4e03ba3415
Коммит
7163fddbe0
|
@ -310,7 +310,6 @@ BrowserChild::BrowserChild(ContentChild* aManager, const TabId& aTabId,
|
|||
mLayersId{0},
|
||||
mEffectsInfo{EffectsInfo::FullyHidden()},
|
||||
mDidFakeShow(false),
|
||||
mNotified(false),
|
||||
mTriedBrowserInit(false),
|
||||
mOrientation(hal::eScreenOrientation_PortraitPrimary),
|
||||
mIgnoreKeyPressEvent(false),
|
||||
|
@ -2820,13 +2819,6 @@ void BrowserChild::InitAPZState() {
|
|||
cbc->SendPAPZConstructor(apzChild, mLayersId);
|
||||
}
|
||||
|
||||
void BrowserChild::NotifyPainted() {
|
||||
if (!mNotified) {
|
||||
SendNotifyCompositorTransaction();
|
||||
mNotified = true;
|
||||
}
|
||||
}
|
||||
|
||||
IPCResult BrowserChild::RecvUpdateEffects(const EffectsInfo& aEffects) {
|
||||
bool needInvalidate = false;
|
||||
if (mEffectsInfo.IsVisible() && aEffects.IsVisible() &&
|
||||
|
|
|
@ -449,8 +449,6 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
|
|||
|
||||
void SetBackgroundColor(const nscolor& aColor);
|
||||
|
||||
void NotifyPainted();
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT_BOUNDARY virtual mozilla::ipc::IPCResult RecvUpdateEffects(
|
||||
const EffectsInfo& aEffects);
|
||||
|
||||
|
@ -821,7 +819,6 @@ class BrowserChild final : public nsMessageManagerScriptExecutor,
|
|||
Maybe<bool> mLayersConnected;
|
||||
EffectsInfo mEffectsInfo;
|
||||
bool mDidFakeShow;
|
||||
bool mNotified;
|
||||
bool mTriedBrowserInit;
|
||||
hal::ScreenOrientation mOrientation;
|
||||
|
||||
|
|
|
@ -3700,28 +3700,6 @@ mozilla::ipc::IPCResult BrowserParent::RecvRemotePaintIsReady() {
|
|||
return IPC_OK();
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult BrowserParent::RecvNotifyCompositorTransaction() {
|
||||
RefPtr<nsFrameLoader> frameLoader = GetFrameLoader();
|
||||
|
||||
if (!frameLoader) {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
nsIFrame* docFrame = frameLoader->GetPrimaryFrameOfOwningContent();
|
||||
|
||||
if (!docFrame) {
|
||||
// Bad, but nothing we can do about it (XXX/cjones: or is there?
|
||||
// maybe bug 589337?). When the new frame is created, we'll
|
||||
// probably still be the current render frame and will get to draw
|
||||
// our content then. Or, we're shutting down and this update goes
|
||||
// to /dev/null.
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
docFrame->InvalidateLayer(DisplayItemType::TYPE_REMOTE);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult BrowserParent::RecvRemoteIsReadyToHandleInputEvents() {
|
||||
// When enabling input event prioritization, input events may preempt other
|
||||
// normal priority IPC messages. To prevent the input events preempt
|
||||
|
|
|
@ -754,8 +754,6 @@ class BrowserParent final : public PBrowserParent,
|
|||
|
||||
mozilla::ipc::IPCResult RecvRemotePaintIsReady();
|
||||
|
||||
mozilla::ipc::IPCResult RecvNotifyCompositorTransaction();
|
||||
|
||||
mozilla::ipc::IPCResult RecvRemoteIsReadyToHandleInputEvents();
|
||||
|
||||
mozilla::ipc::IPCResult RecvPaintWhileInterruptingJSNoOp(
|
||||
|
|
|
@ -638,11 +638,6 @@ parent:
|
|||
*/
|
||||
async RemotePaintIsReady();
|
||||
|
||||
/**
|
||||
* Child informs the parent that a compositor transaction has ocurred.
|
||||
*/
|
||||
async NotifyCompositorTransaction();
|
||||
|
||||
/**
|
||||
* Child informs the parent that the content is ready to handle input
|
||||
* events. This is sent when the BrowserChild is created.
|
||||
|
|
Загрузка…
Ссылка в новой задаче