mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1435022 - Minor cleanup on the Destroy function. r=sotaro
MozReview-Commit-ID: EnE6JKKmhgy --HG-- extra : rebase_source : 49e11327c77968e649ae28bee7e5a72bc2a6f98a
This commit is contained in:
parent
b90ff6039c
commit
88a5174812
@ -106,11 +106,12 @@ CompositorVsyncScheduler::~CompositorVsyncScheduler()
|
||||
void
|
||||
CompositorVsyncScheduler::Destroy()
|
||||
{
|
||||
MOZ_ASSERT(CompositorThreadHolder::IsInCompositorThread());
|
||||
|
||||
if (!mVsyncObserver) {
|
||||
// Destroy was already called on this object.
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(CompositorThreadHolder::IsInCompositorThread());
|
||||
UnobserveVsync();
|
||||
mVsyncObserver->Destroy();
|
||||
mVsyncObserver = nullptr;
|
||||
|
@ -51,7 +51,11 @@ public:
|
||||
bool NotifyVsync(TimeStamp aVsyncTimestamp);
|
||||
void SetNeedsComposite();
|
||||
|
||||
/**
|
||||
* Do cleanup. This must be called on the compositor thread.
|
||||
*/
|
||||
void Destroy();
|
||||
|
||||
void ScheduleComposition();
|
||||
void CancelCurrentCompositeTask();
|
||||
bool NeedsComposite();
|
||||
|
Loading…
Reference in New Issue
Block a user