Skip to content

Commit

Permalink
Backed out 4 changesets (bug 1742797) for causing failures on /browse…
Browse files Browse the repository at this point in the history
…r_ext_getViews.js. CLOSED TREE

Backed out changeset c48ff146a33d (bug 1742797)
Backed out changeset a692ca1d8401 (bug 1742797)
Backed out changeset cfc1f440fb6d (bug 1742797)
Backed out changeset 88f60761e884 (bug 1742797)
  • Loading branch information
ncsoregi committed Jul 12, 2022
1 parent f9dbfd1 commit c97011a
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 113 deletions.
3 changes: 0 additions & 3 deletions browser/base/content/test/performance/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ skip-if =
(os == 'win' && bits == 32)
(os == 'win' && processor == 'aarch64')
(os == 'linux' && socketprocess_networking) # Bug 1382809, bug 1369959, Win32 because of intermittent OOM failures, bug 1533141 for aarch64
[browser_panel_vsync.js]
support-files =
!/browser/components/downloads/test/browser/head.js
[browser_preferences_usage.js]
https_first_disabled = true
skip-if =
Expand Down
70 changes: 0 additions & 70 deletions browser/base/content/test/performance/browser_panel_vsync.js

This file was deleted.

1 change: 0 additions & 1 deletion gfx/layers/ipc/PWebRenderBridge.ipdl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ parent:
sync GetSnapshot(PTexture texture) returns (bool aNeedsYFlip);
async SetLayersObserverEpoch(LayersObserverEpoch childEpoch);
async ClearCachedResources();
async ClearAnimationResources();
async SetDefaultClearColor(uint32_t aColor);
// Invalidate rendered frame
async InvalidateRenderedFrame();
Expand Down
8 changes: 0 additions & 8 deletions gfx/layers/wr/WebRenderBridgeParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1893,14 +1893,6 @@ mozilla::ipc::IPCResult WebRenderBridgeParent::RecvClearCachedResources() {
return IPC_OK();
}

mozilla::ipc::IPCResult WebRenderBridgeParent::RecvClearAnimationResources() {
if (!mDestroyed) {
ClearAnimationResources();
}

return IPC_OK();
}

wr::Epoch WebRenderBridgeParent::UpdateWebRender(
CompositorVsyncScheduler* aScheduler, RefPtr<wr::WebRenderAPI>&& aApi,
AsyncImagePipelineManager* aImageMgr,
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/wr/WebRenderBridgeParent.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class WebRenderBridgeParent final : public PWebRenderBridgeParent,
const LayersObserverEpoch& aChildEpoch) override;

mozilla::ipc::IPCResult RecvClearCachedResources() override;
mozilla::ipc::IPCResult RecvClearAnimationResources() override;
mozilla::ipc::IPCResult RecvInvalidateRenderedFrame() override;
mozilla::ipc::IPCResult RecvScheduleComposite(
const wr::RenderReasons& aReasons) override;
Expand Down
8 changes: 0 additions & 8 deletions gfx/layers/wr/WebRenderLayerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,14 +622,6 @@ void WebRenderLayerManager::ClearCachedResources() {
WrBridge()->EndClearCachedResources();
}

void WebRenderLayerManager::ClearAnimationResources() {
if (!WrBridge()->IPCOpen()) {
gfxCriticalNote << "IPC Channel is already torn down unexpectedly\n";
return;
}
WrBridge()->SendClearAnimationResources();
}

void WebRenderLayerManager::WrUpdated() {
ClearAsyncAnimations();
mStateManager.mAsyncResourceUpdates.reset();
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/wr/WebRenderLayerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ class WebRenderLayerManager final : public WindowRenderer {
const mozilla::TimeStamp& aCompositeEnd);

void ClearCachedResources();
void ClearAnimationResources();
void UpdateTextureFactoryIdentifier(
const TextureFactoryIdentifier& aNewIdentifier);
TextureFactoryIdentifier GetTextureFactoryIdentifier();
Expand Down
7 changes: 0 additions & 7 deletions layout/xul/nsMenuPopupFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,13 +1098,6 @@ void nsMenuPopupFrame::HidePopup(bool aDeselectMenu, nsPopupState aNewState) {
mCurrentMenu = nullptr; // make sure no current menu is set
mHFlip = mVFlip = false;

if (auto* widget = GetWidget()) {
// Ideally we should call ClearCachedWebrenderResources but there are
// intermittent failures (see bug 1748788), so we currently call
// ClearWebrenderAnimationResources instead.
widget->ClearWebrenderAnimationResources();
}

nsView* view = GetView();
nsViewManager* viewManager = view->GetViewManager();
viewManager->SetViewVisibility(view, nsViewVisibility_kHide);
Expand Down
7 changes: 0 additions & 7 deletions widget/nsBaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1368,13 +1368,6 @@ void nsBaseWidget::ClearCachedWebrenderResources() {
mWindowRenderer->AsWebRender()->ClearCachedResources();
}

void nsBaseWidget::ClearWebrenderAnimationResources() {
if (!mWindowRenderer || !mWindowRenderer->AsWebRender()) {
return;
}
mWindowRenderer->AsWebRender()->ClearAnimationResources();
}

bool nsBaseWidget::SetNeedFastSnaphot() {
MOZ_ASSERT(XRE_IsParentProcess());
MOZ_ASSERT(!mCompositorSession);
Expand Down
2 changes: 0 additions & 2 deletions widget/nsBaseWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,6 @@ class nsBaseWidget : public nsIWidget, public nsSupportsWeakReference {

void ClearCachedWebrenderResources() override;

void ClearWebrenderAnimationResources() override;

bool SetNeedFastSnaphot() override;

/**
Expand Down
5 changes: 0 additions & 5 deletions widget/nsIWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -1998,11 +1998,6 @@ class nsIWidget : public nsISupports {
*/
virtual void ClearCachedWebrenderResources() {}

/**
* Clear WebRender animation resources
*/
virtual void ClearWebrenderAnimationResources() {}

/**
* Request fast snapshot at RenderCompositor of WebRender.
* Since readback of Windows DirectComposition is very slow.
Expand Down

0 comments on commit c97011a

Please sign in to comment.