зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1149646 - Delete non-uniform vsync interval warning. r=kats
This commit is contained in:
Родитель
c7695f7439
Коммит
a3bcbbc0c6
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче