Bug 1035833 - Fix layersId allocation in nested content process. r=mattwoodrow

This commit is contained in:
"Kan-Ru Chen (陳侃如)" 2014-07-09 16:42:04 +08:00
Родитель a0610ba42d
Коммит e0aa297bbf
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -738,7 +738,8 @@ RenderFrameParent::RenderFrameParent(nsFrameLoader* aFrameLoader,
}
}
if (gfxPlatform::UsesOffMainThreadCompositing()) {
if (gfxPlatform::UsesOffMainThreadCompositing() &&
XRE_GetProcessType() == GeckoProcessType_Default) {
// Our remote frame will push layers updates to the compositor,
// and we'll keep an indirect reference to that tree.
*aId = mLayersId = CompositorParent::AllocateLayerTreeId();