Bug 1504835 - Remove remaining references to web replay graphics overlay, r=lsmyth.

--HG--
extra : rebase_source : 08ca828cf6a1829dbaaaa9b43315030312d4bb0c
This commit is contained in:
Brian Hackett 2018-11-04 16:30:50 -10:00
parent d783f332ba
commit 295da82633
4 changed files with 1 additions and 38 deletions

View File

@ -25,8 +25,7 @@ Cu.evalInSandbox(
);
// Windows in the middleman process are initially set up as about:blank pages.
// This method fills them in with a canvas filling the tab, and an overlay that
// can be displayed over that canvas.
// This method fills them in with a canvas filling the tab.
function setupContents(window) {
// The middlemanCanvas element fills the tab's contents.
const canvas = window.middlemanCanvas = window.document.createElement("canvas");
@ -91,13 +90,7 @@ function UpdateCanvas(buffer, width, height, hadFailure) {
}
}
// Entry point for when we need to update the overlay's contents or visibility.
// eslint-disable-next-line no-unused-vars
function UpdateOverlay() {
}
// eslint-disable-next-line no-unused-vars
var EXPORTED_SYMBOLS = [
"UpdateCanvas",
"UpdateOverlay",
];

View File

@ -201,23 +201,6 @@ UpdateGraphicsInUIProcess(const PaintMessage* aMsg)
}
}
void
UpdateGraphicsOverlay()
{
if (!gLastPaintWidth || !gLastPaintHeight) {
return;
}
AutoSafeJSContext cx;
JSAutoRealm ar(cx, *gGraphicsSandbox);
RootedValue rval(cx);
if (!JS_CallFunctionName(cx, *gGraphicsSandbox, "UpdateOverlay",
JS::HandleValueArray::empty(), &rval)) {
MOZ_CRASH("UpdateGraphicsOverlay");
}
}
static void
MaybeTriggerExplicitPaint()
{

View File

@ -611,12 +611,6 @@ SwitchActiveChild(ChildProcessInfo* aChild, bool aRecoverPosition = true)
oldActiveChild->RecoverToCheckpoint(oldActiveChild->MostRecentSavedCheckpoint());
oldActiveChild->SetRole(MakeUnique<ChildRoleStandby>());
}
// The graphics overlay is affected when we switch between recording and
// replaying children.
if (aChild->IsRecording() != oldActiveChild->IsRecording()) {
UpdateGraphicsOverlay();
}
}
///////////////////////////////////////////////////////////////////////////////
@ -1187,10 +1181,6 @@ RecvHitCheckpoint(const HitCheckpointMessage& aMsg)
UpdateCheckpointTimes(aMsg);
MaybeUpdateGraphicsAtCheckpoint(aMsg.mCheckpointId);
if (!gActiveChild->IsRecording()) {
UpdateGraphicsOverlay();
}
// Resume either forwards or backwards. Break the resume off into a separate
// runnable, to avoid starving any code already on the stack and waiting for
// the process to pause. Immediately resume if the main thread is blocked.

View File

@ -94,9 +94,6 @@ void SendGraphicsMemoryToChild();
// an unhandled recording divergence.
void UpdateGraphicsInUIProcess(const PaintMessage* aMsg);
// Update the overlay shown over the tab's graphics.
void UpdateGraphicsOverlay();
// If necessary, update graphics after the active child sends a paint message
// or reaches a checkpoint.
void MaybeUpdateGraphicsAtPaint(const PaintMessage& aMsg);