mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 1133689 - Make D3DVsyncDisplay destructor private. r=jmuizelaar
This commit is contained in:
parent
3507284f26
commit
f54206dc5a
@ -1973,13 +1973,6 @@ public:
|
||||
mSoftwareVsyncRate = TimeDuration::FromMilliseconds(rate);
|
||||
}
|
||||
|
||||
virtual ~D3DVsyncDisplay()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
DisableVsync();
|
||||
delete mVsyncThread;
|
||||
}
|
||||
|
||||
virtual void EnableVsync() MOZ_OVERRIDE
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
@ -2082,6 +2075,13 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
virtual ~D3DVsyncDisplay()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
DisableVsync();
|
||||
delete mVsyncThread;
|
||||
}
|
||||
|
||||
bool IsInVsyncThread()
|
||||
{
|
||||
return mVsyncThread->thread_id() == PlatformThread::CurrentId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user