Move CompositorBridgeParent::IsInCompositorThread to CompositorThreadHolder. (bug 1273017 part 3, r=mattwoodrow)

This commit is contained in:
David Anderson
2016-05-15 23:40:13 -07:00
parent 1d91344032
commit 280ba1bbfc
8 changed files with 44 additions and 44 deletions

View File

@@ -142,5 +142,12 @@ CompositorThreadHolder::Shutdown()
CompositorBridgeParent::FinishShutdown();
}
/* static */ bool
CompositorThreadHolder::IsInCompositorThread()
{
return CompositorThread() &&
CompositorThread()->thread_id() == PlatformThread::CurrentId();
}
} // namespace mozilla
} // namespace layers