author | Kearwood Gilbert <kgilbert@mozilla.com> |
Fri, 06 Jan 2017 16:28:45 -0800 | |
changeset 328816 | 850ff3e591469b48f4d7f7a06acc9d63738c1840 |
parent 328815 | d2eccdc4a23256d51d2e32986a59b6ffadbafa19 |
child 328817 | 3a70d0266ffe932ab582756d43f4f5539c0e79f6 |
push id | 85546 |
push user | kwierso@gmail.com |
push date | Wed, 11 Jan 2017 02:36:30 +0000 |
treeherder | mozilla-inbound@c5bce4cd684a [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | daoshengmu |
bugs | 1325810 |
milestone | 53.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/gfx/vr/VRManager.cpp +++ b/gfx/vr/VRManager.cpp @@ -165,17 +165,19 @@ void VRManager::NotifyVsync(const TimeStamp& aVsyncTimestamp) { const double kVRDisplayRefreshMaxDuration = 5000; // milliseconds bool bHaveEventListener = false; for (auto iter = mVRManagerParents.Iter(); !iter.Done(); iter.Next()) { VRManagerParent *vmp = iter.Get()->GetKey(); - Unused << vmp->SendNotifyVSync(); + if (mVRDisplays.Count()) { + Unused << vmp->SendNotifyVSync(); + } bHaveEventListener |= vmp->HaveEventListener(); } for (auto iter = mVRDisplays.Iter(); !iter.Done(); iter.Next()) { gfx::VRDisplayHost* display = iter.UserData(); display->NotifyVSync(); }