Bug 831313 - Bail out from rendering rather than aborting if we fail to allocate shared memory for a layers surface. r=roc

This commit is contained in:
Matt Woodrow 2013-03-21 15:33:00 +13:00
Родитель b44fe181ee
Коммит f1b2fc7b09
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -461,7 +461,8 @@ BasicShadowableThebesLayer::CreateBuffer(Buffer::ContentType aType,
PR_snprintf(buf, buflen,
"creating ThebesLayer 'back buffer' failed! width=%d, height=%d, type=%x",
aSize.width, aSize.height, int(aType));
NS_RUNTIMEABORT(buf);
NS_ERROR(buf);
return nullptr;
}
NS_ABORT_IF_FALSE(!mIsNewBuffer,