From 8dd768326c4a9261481a70b2f2d8962c6c67c120 Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Fri, 21 Mar 2014 09:57:01 -0700 Subject: [PATCH] Bug 986253 - Limt a number of Fence to 4 per message r=nical --- gfx/layers/ipc/CompositableTransactionParent.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/layers/ipc/CompositableTransactionParent.cpp b/gfx/layers/ipc/CompositableTransactionParent.cpp index 16f25127238..18977695b4d 100644 --- a/gfx/layers/ipc/CompositableTransactionParent.cpp +++ b/gfx/layers/ipc/CompositableTransactionParent.cpp @@ -318,6 +318,11 @@ CompositableParentManager::ReturnTextureDataIfNecessary(CompositableHost* aCompo aCompositable->GetCompositableBackendSpecificData()->GetPendingReleaseFenceTextureList(); // Return pending Texture data for (size_t i = 0; i < textureList.size(); i++) { + // File descriptor number is limited to 4 per IPC message. + // See Bug 986253 + if (mPrevFenceHandles.size() >= 4) { + break; + } TextureHostOGL* hostOGL = textureList[i]->AsHostOGL(); PTextureParent* actor = textureList[i]->GetIPDLActor(); if (!hostOGL || !actor) {