зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset af41b9549456 (bug 1630389) for causing mass Windows failures.
CLOSED TREE
This commit is contained in:
Родитель
3a09380544
Коммит
3928665a70
|
@ -1625,14 +1625,11 @@ class D3DVsyncSource final : public VsyncSource {
|
||||||
: mPrevVsync(TimeStamp::Now()),
|
: mPrevVsync(TimeStamp::Now()),
|
||||||
mVsyncEnabledLock("D3DVsyncEnabledLock"),
|
mVsyncEnabledLock("D3DVsyncEnabledLock"),
|
||||||
mVsyncEnabled(false),
|
mVsyncEnabled(false),
|
||||||
mWaitVBlankMonitor(NULL),
|
mWaitVBlankMonitor(NULL) {
|
||||||
mIsWindows10OrLater(false) {
|
|
||||||
mVsyncThread = new base::Thread("WindowsVsyncThread");
|
mVsyncThread = new base::Thread("WindowsVsyncThread");
|
||||||
MOZ_RELEASE_ASSERT(mVsyncThread->Start(),
|
MOZ_RELEASE_ASSERT(mVsyncThread->Start(),
|
||||||
"GFX: Could not start Windows vsync thread");
|
"GFX: Could not start Windows vsync thread");
|
||||||
SetVsyncRate();
|
SetVsyncRate();
|
||||||
|
|
||||||
mIsWindows10OrLater = IsWin10OrLater();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetVsyncRate() {
|
void SetVsyncRate() {
|
||||||
|
@ -1804,8 +1801,7 @@ class D3DVsyncSource final : public VsyncSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT hr = E_FAIL;
|
HRESULT hr = E_FAIL;
|
||||||
if (mIsWindows10OrLater &&
|
if (StaticPrefs::gfx_vsync_use_waitforvblank()) {
|
||||||
!StaticPrefs::gfx_vsync_force_disable_waitforvblank()) {
|
|
||||||
UpdateVBlankOutput();
|
UpdateVBlankOutput();
|
||||||
if (mWaitVBlankOutput) {
|
if (mWaitVBlankOutput) {
|
||||||
hr = mWaitVBlankOutput->WaitForVBlank();
|
hr = mWaitVBlankOutput->WaitForVBlank();
|
||||||
|
@ -1890,7 +1886,6 @@ class D3DVsyncSource final : public VsyncSource {
|
||||||
|
|
||||||
HMONITOR mWaitVBlankMonitor;
|
HMONITOR mWaitVBlankMonitor;
|
||||||
RefPtr<IDXGIOutput> mWaitVBlankOutput;
|
RefPtr<IDXGIOutput> mWaitVBlankOutput;
|
||||||
bool mIsWindows10OrLater;
|
|
||||||
}; // end d3dvsyncdisplay
|
}; // end d3dvsyncdisplay
|
||||||
|
|
||||||
D3DVsyncSource() { mPrimaryDisplay = new D3DVsyncDisplay(); }
|
D3DVsyncSource() { mPrimaryDisplay = new D3DVsyncDisplay(); }
|
||||||
|
|
|
@ -3989,7 +3989,7 @@
|
||||||
value: 10
|
value: 10
|
||||||
mirror: once
|
mirror: once
|
||||||
|
|
||||||
- name: gfx.vsync.force-disable-waitforvblank
|
- name: gfx.vsync.use-waitforvblank
|
||||||
type: RelaxedAtomicBool
|
type: RelaxedAtomicBool
|
||||||
value: false
|
value: false
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
Загрузка…
Ссылка в новой задаче