mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 717658 - OOM crash in BasicLayers: dump sizes to help understand this crash - r=joe
This commit is contained in:
parent
4193b914d8
commit
ffc3e7a362
@ -50,6 +50,7 @@
|
|||||||
#include "BasicLayers.h"
|
#include "BasicLayers.h"
|
||||||
#include "ImageLayers.h"
|
#include "ImageLayers.h"
|
||||||
|
|
||||||
|
#include "prprf.h"
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
#include "nsGUIEvent.h"
|
#include "nsGUIEvent.h"
|
||||||
#include "gfxContext.h"
|
#include "gfxContext.h"
|
||||||
@ -2399,7 +2400,12 @@ BasicShadowableThebesLayer::CreateBuffer(Buffer::ContentType aType,
|
|||||||
if (!BasicManager()->AllocBuffer(gfxIntSize(aSize.width, aSize.height),
|
if (!BasicManager()->AllocBuffer(gfxIntSize(aSize.width, aSize.height),
|
||||||
aType,
|
aType,
|
||||||
&mBackBuffer)) {
|
&mBackBuffer)) {
|
||||||
NS_RUNTIMEABORT("creating ThebesLayer 'back buffer' failed!");
|
enum { buflen = 256 };
|
||||||
|
char buf[buflen];
|
||||||
|
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_ABORT_IF_FALSE(!mIsNewBuffer,
|
NS_ABORT_IF_FALSE(!mIsNewBuffer,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user