Bug 1199885 - Part 5: Make mRootLayerTreeID const to prove that there's no data races. r=kats

--HG--
extra : commitid : 5WndwzOuLdi
This commit is contained in:
Benoit Girard 2015-09-28 14:44:36 -04:00
Родитель eb3b891bbc
Коммит 6803a546d5
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -548,6 +548,7 @@ CompositorParent::CompositorParent(nsIWidget* aWidget,
, mEGLSurfaceSize(aSurfaceWidth, aSurfaceHeight)
, mPauseCompositionMonitor("PauseCompositionMonitor")
, mResumeCompositionMonitor("ResumeCompositionMonitor")
, mRootLayerTreeID(AllocateLayerTreeId())
, mOverrideComposeReadiness(false)
, mForceCompositionTask(nullptr)
, mCompositorThreadHolder(sCompositorThreadHolder)
@ -573,7 +574,6 @@ CompositorParent::CompositorParent(nsIWidget* aWidget,
CompositorLoop()->PostTask(FROM_HERE, NewRunnableFunction(SetThreadPriority));
mRootLayerTreeID = AllocateLayerTreeId();
{ // scope lock
MonitorAutoLock lock(*sIndirectLayerTreesLock);

Просмотреть файл

@ -474,7 +474,7 @@ protected:
mozilla::Monitor mResumeCompositionMonitor;
uint64_t mCompositorID;
uint64_t mRootLayerTreeID;
const uint64_t mRootLayerTreeID;
bool mOverrideComposeReadiness;
CancelableTask* mForceCompositionTask;