Bug 1394338 - Add WebRender error handling to RendererOGL r=nical

This commit is contained in:
sotaro
2017-08-30 09:10:22 +09:00
parent 181cbeb276
commit f99a2311c3
12 changed files with 86 additions and 11 deletions

View File

@@ -70,6 +70,7 @@
#include "mozilla/Move.h"
#include "mozilla/Services.h"
#include "mozilla/Sprintf.h"
#include "mozilla/webrender/WebRenderTypes.h"
#include "nsRefPtrHashtable.h"
#include "TouchEvents.h"
#include "WritingModes.h"
@@ -1293,7 +1294,7 @@ nsBaseWidget::CreateCompositorSession(int aWidth,
if (textureFactoryIdentifier.mParentBackend != LayersBackend::LAYERS_WR) {
retry = true;
DestroyCompositor();
gfx::GPUProcessManager::Get()->DisableWebRender();
gfx::GPUProcessManager::Get()->DisableWebRender(wr::WebRenderError::INITIALIZE);
}
}