mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
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:
parent
42289b31e8
commit
f56bc3a093
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user