Move CompositorBridgeParent::IsInCompositorThread to CompositorThreadHolder. (bug 1273017 part 3, r=mattwoodrow)
This commit is contained in:
@@ -142,5 +142,12 @@ CompositorThreadHolder::Shutdown()
|
||||
CompositorBridgeParent::FinishShutdown();
|
||||
}
|
||||
|
||||
/* static */ bool
|
||||
CompositorThreadHolder::IsInCompositorThread()
|
||||
{
|
||||
return CompositorThread() &&
|
||||
CompositorThread()->thread_id() == PlatformThread::CurrentId();
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
} // namespace layers
|
||||
|
||||
Reference in New Issue
Block a user