Bug 1494994 - Disable WebRender when recording/replaying, r=nical.

--HG--
extra : rebase_source : 51b92b3f9b9349dc4953d3277cb1f251d222c369
This commit is contained in:
Brian Hackett 2018-10-09 14:31:49 -10:00
Родитель b089beaaac
Коммит ecdbabf1a6
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -2680,6 +2680,12 @@ gfxPlatform::InitWebRenderConfig()
// In all cases WR- means WR was not enabled, for one of many possible reasons.
ScopedGfxFeatureReporter reporter("WR", prefEnabled || envvarEnabled);
if (!XRE_IsParentProcess()) {
// Force-disable WebRender in recording/replaying child processes, which
// have their own compositor.
if (recordreplay::IsRecordingOrReplaying()) {
gfxVars::SetUseWebRender(false);
}
// The parent process runs through all the real decision-making code
// later in this function. For other processes we still want to report
// the state of the feature for crash reports.