Bug 1149646 - Delete non-uniform vsync interval warning. r=kats

This commit is contained in:
Mason Chang 2015-03-31 14:38:51 -07:00
Родитель c7695f7439
Коммит a3bcbbc0c6
2 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -117,7 +117,6 @@ HwcComposer2D::HwcComposer2D()
#if ANDROID_VERSION >= 17 #if ANDROID_VERSION >= 17
, mPrevRetireFence(Fence::NO_FENCE) , mPrevRetireFence(Fence::NO_FENCE)
, mPrevDisplayFence(Fence::NO_FENCE) , mPrevDisplayFence(Fence::NO_FENCE)
, mLastVsyncTime(0)
#endif #endif
, mPrepared(false) , mPrepared(false)
, mHasHWVsync(false) , mHasHWVsync(false)
@ -229,12 +228,6 @@ void
HwcComposer2D::Vsync(int aDisplay, nsecs_t aVsyncTimestamp) HwcComposer2D::Vsync(int aDisplay, nsecs_t aVsyncTimestamp)
{ {
TimeStamp vsyncTime = mozilla::TimeStamp::FromSystemTime(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); gfxPlatform::GetPlatform()->GetHardwareVsync()->GetGlobalDisplay().NotifyVsync(vsyncTime);
} }

Просмотреть файл

@ -126,7 +126,6 @@ private:
#if ANDROID_VERSION >= 17 #if ANDROID_VERSION >= 17
android::sp<android::Fence> mPrevRetireFence; android::sp<android::Fence> mPrevRetireFence;
android::sp<android::Fence> mPrevDisplayFence; android::sp<android::Fence> mPrevDisplayFence;
nsecs_t mLastVsyncTime;
#endif #endif
nsTArray<layers::LayerComposite*> mHwcLayerMap; nsTArray<layers::LayerComposite*> mHwcLayerMap;
bool mPrepared; bool mPrepared;