forked from mirrors/gecko-dev
Bug 1740673 - Ensure d3d device re-creation before sessions re-creation in GPUProcessManager::OnInProcessDeviceReset() r=nical,gfx-reviewers
Current code is not explicit about device recreation before session re-creation. It is actually done by nsWindow::OnPaint() before OnInProcessDeviceReset() call. But it is not explicit. gfxWindowsPlatform::HandleDeviceReset() does d3d device re-creation if it is necessary. Differential Revision: https://phabricator.services.mozilla.com/D130957
This commit is contained in:
parent
6233ec443f
commit
dc41fd6a96
1 changed files with 9 additions and 1 deletions
|
|
@ -57,6 +57,10 @@
|
|||
# include "mozilla/layers/UiCompositorControllerChild.h"
|
||||
#endif // defined(MOZ_WIDGET_ANDROID)
|
||||
|
||||
#if defined(XP_WIN)
|
||||
# include "gfxWindowsPlatform.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
|
|
@ -606,7 +610,11 @@ void GPUProcessManager::OnInProcessDeviceReset(bool aTrackThreshold) {
|
|||
DisableWebRenderConfig(wr::WebRenderError::EXCESSIVE_RESETS, nsCString());
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Ensure device reset handling before re-creating in process sessions.
|
||||
// Normally nsWindow::OnPaint() already handled it.
|
||||
gfxWindowsPlatform::GetPlatform()->HandleDeviceReset();
|
||||
#endif
|
||||
RebuildInProcessSessions();
|
||||
NotifyListenersOnCompositeDeviceReset();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue