diff --git a/widget/gonk/HwcComposer2D.cpp b/widget/gonk/HwcComposer2D.cpp index 782c9a3061c0..5b8379a46c98 100644 --- a/widget/gonk/HwcComposer2D.cpp +++ b/widget/gonk/HwcComposer2D.cpp @@ -117,7 +117,6 @@ HwcComposer2D::HwcComposer2D() #if ANDROID_VERSION >= 17 , mPrevRetireFence(Fence::NO_FENCE) , mPrevDisplayFence(Fence::NO_FENCE) - , mLastVsyncTime(0) #endif , mPrepared(false) , mHasHWVsync(false) @@ -229,12 +228,6 @@ void HwcComposer2D::Vsync(int aDisplay, nsecs_t aVsyncTimestamp) { TimeStamp vsyncTime = mozilla::TimeStamp::FromSystemTime(aVsyncTimestamp); - nsecs_t vsyncInterval = aVsyncTimestamp - mLastVsyncTime; - if (vsyncInterval < 16000000 || vsyncInterval > 17000000) { - LOGE("Non-uniform vsync interval: %lld\n", vsyncInterval); - } - mLastVsyncTime = aVsyncTimestamp; - gfxPlatform::GetPlatform()->GetHardwareVsync()->GetGlobalDisplay().NotifyVsync(vsyncTime); } diff --git a/widget/gonk/HwcComposer2D.h b/widget/gonk/HwcComposer2D.h index d6be003ea41d..2f435fd41330 100644 --- a/widget/gonk/HwcComposer2D.h +++ b/widget/gonk/HwcComposer2D.h @@ -126,7 +126,6 @@ private: #if ANDROID_VERSION >= 17 android::sp mPrevRetireFence; android::sp mPrevDisplayFence; - nsecs_t mLastVsyncTime; #endif nsTArray mHwcLayerMap; bool mPrepared;