Bug 1125030 - Handle VsyncChild shutdown in ActorDestroy(). r=bent

This commit is contained in:
JerryShih
2015-01-29 22:19:00 +01:00
parent 01d4c273bc
commit 00c6a1afac
4 changed files with 25 additions and 8 deletions

View File

@@ -440,9 +440,13 @@ private:
Tick(vsyncJsNow, aTimeStamp);
}
nsRefPtr<RefreshTimerVsyncDispatcher> mVsyncDispatcher;
nsRefPtr<RefreshDriverVsyncObserver> mVsyncObserver;
VsyncChild* mVsyncChild;
// Used for parent process.
nsRefPtr<RefreshTimerVsyncDispatcher> mVsyncDispatcher;
// Used for child process.
// The mVsyncChild will be always available before VsncChild::ActorDestroy().
// After ActorDestroy(), StartTimer() and StopTimer() calls will be non-op.
nsRefPtr<VsyncChild> mVsyncChild;
}; // VsyncRefreshDriverTimer
/*