Bug 1435022 - Remove useless code (mExpectedComposeStartTime is never assigned). r=sotaro

MozReview-Commit-ID: LEgR6JFy0Ys

--HG--
extra : rebase_source : 6c46a9868c219ab655eee4d7674ffe86a4fe4a01
This commit is contained in:
Kartikaya Gupta 2018-02-01 16:29:07 -05:00
parent 42289b31e8
commit f56bc3a093
2 changed files with 0 additions and 19 deletions

View File

@ -952,15 +952,6 @@ CompositorBridgeParent::CompositeToTarget(DrawTarget* aTarget, const gfx::IntRec
"Composite can only be called on the compositor thread");
TimeStamp start = TimeStamp::Now();
#ifdef COMPOSITOR_PERFORMANCE_WARNING
TimeDuration scheduleDelta = TimeStamp::Now() - mCompositorScheduler->GetExpectedComposeStartTime();
if (scheduleDelta > TimeDuration::FromMilliseconds(2) ||
scheduleDelta < TimeDuration::FromMilliseconds(-2)) {
printf_stderr("Compositor: Compose starting off schedule by %4.1f ms\n",
scheduleDelta.ToMilliseconds());
}
#endif
if (!CanComposite()) {
TimeStamp end = TimeStamp::Now();
DidComposite(start, end);

View File

@ -88,12 +88,6 @@ public:
* on the compositor thread.
*/
const TimeStamp& GetLastComposeTime() const;
#ifdef COMPOSITOR_PERFORMANCE_WARNING
const TimeStamp& GetExpectedComposeStartTime()
{
return mExpectedComposeStartTime;
}
#endif
private:
virtual ~CompositorVsyncScheduler();
@ -136,10 +130,6 @@ private:
CompositorVsyncSchedulerOwner* mVsyncSchedulerOwner;
TimeStamp mLastCompose;
#ifdef COMPOSITOR_PERFORMANCE_WARNING
TimeStamp mExpectedComposeStartTime;
#endif
bool mAsapScheduling;
bool mIsObservingVsync;
uint32_t mNeedsComposite;