Bug 1147297. Fix assert vsync adjustment time on windows to be >=. r=jrmuizel
authorMason Chang <mchang@mozilla.com>
Thu, 26 Mar 2015 15:41:49 -0700
changeset 266361 0ed97c76d58cfaf299b1dc2e4586d489a488ef1f
parent 266360 3962c4efd7a37bcca10f305f7c3d7b8ab59f5f7d
child 266362 2c368e6b267e29f2d178da85f4fbaf38d0efb34a
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1147297
milestone39.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
Bug 1147297. Fix assert vsync adjustment time on windows to be >=. r=jrmuizel
gfx/thebes/gfxWindowsPlatform.cpp
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -2130,17 +2130,17 @@ public:
           // The qpcVBlank is always AFTER Now(), so it behaves like b2g
           // Using WaitForVBlank, the whole system dies :/
           WinUtils::dwmFlushProcPtr();
           HRESULT hr = WinUtils::dwmGetCompositionTimingInfoPtr(0, &vblankTime);
           vsync = TimeStamp::Now();
           if (SUCCEEDED(hr)) {
             QueryPerformanceCounter(&qpcNow);
             QPC_TIME adjust = qpcNow.QuadPart - vblankTime.qpcVBlank;
-            MOZ_ASSERT(adjust > 0);
+            MOZ_ASSERT(adjust >= 0);
             uint64_t usAdjust = (adjust * microseconds) / frequency.QuadPart;
             vsync -= TimeDuration::FromMicroseconds((double) usAdjust);
           }
         } // end for
       }
 
     private:
       virtual ~D3DVsyncDisplay()