mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 997367 - fix crash at CrossProcessCompositorParent::GetCompositionManager. r=roc
This commit is contained in:
parent
e621efc2fa
commit
98ef025ea5
@ -979,19 +979,11 @@ CompositorParent::AllocateLayerTreeId()
|
||||
}
|
||||
|
||||
static void
|
||||
EraseLayerState(uint64_t aId)
|
||||
RemoveIndirectTree(uint64_t aId)
|
||||
{
|
||||
sIndirectLayerTrees.erase(aId);
|
||||
}
|
||||
|
||||
/*static*/ void
|
||||
CompositorParent::DeallocateLayerTreeId(uint64_t aId)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
CompositorLoop()->PostTask(FROM_HERE,
|
||||
NewRunnableFunction(&EraseLayerState, aId));
|
||||
}
|
||||
|
||||
static void
|
||||
UpdateControllerForLayersId(uint64_t aLayersId,
|
||||
GeckoContentController* aController)
|
||||
@ -1185,12 +1177,6 @@ CompositorParent::GetIndirectShadowTree(uint64_t aId)
|
||||
return &cit->second;
|
||||
}
|
||||
|
||||
static void
|
||||
RemoveIndirectTree(uint64_t aId)
|
||||
{
|
||||
sIndirectLayerTrees.erase(aId);
|
||||
}
|
||||
|
||||
void
|
||||
CrossProcessCompositorParent::ActorDestroy(ActorDestroyReason aWhy)
|
||||
{
|
||||
|
@ -164,12 +164,6 @@ public:
|
||||
* Must run on the content main thread.
|
||||
*/
|
||||
static uint64_t AllocateLayerTreeId();
|
||||
/**
|
||||
* Release compositor-thread resources referred to by |aID|.
|
||||
*
|
||||
* Must run on the content main thread.
|
||||
*/
|
||||
static void DeallocateLayerTreeId(uint64_t aId);
|
||||
|
||||
/**
|
||||
* Set aController as the pan/zoom callback for the subtree referred
|
||||
|
@ -942,7 +942,6 @@ void
|
||||
RenderFrameParent::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
if (mLayersId != 0) {
|
||||
CompositorParent::DeallocateLayerTreeId(mLayersId);
|
||||
if (mContentController) {
|
||||
// Stop our content controller from requesting repaints of our
|
||||
// content.
|
||||
|
Loading…
Reference in New Issue
Block a user