зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1494994 - Disable WebRender when recording/replaying, r=nical.
--HG-- extra : rebase_source : 51b92b3f9b9349dc4953d3277cb1f251d222c369
This commit is contained in:
Родитель
b089beaaac
Коммит
ecdbabf1a6
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче