зеркало из https://github.com/mozilla/gecko-dev.git
Bug 952721 - Don't crash if our surface allocation fails in TiledContentClient. r=Bas
This commit is contained in:
Родитель
268fc162e7
Коммит
73b28ad5c7
|
@ -665,6 +665,10 @@ ClientTiledLayerBuffer::PaintThebes(const nsIntRegion& aNewValidRegion,
|
|||
ceilf(bounds.height * mResolution)),
|
||||
gfx::ImageFormatToSurfaceFormat(format));
|
||||
|
||||
if (!mSinglePaintDrawTarget) {
|
||||
return;
|
||||
}
|
||||
|
||||
ctxt = new gfxContext(mSinglePaintDrawTarget);
|
||||
|
||||
mSinglePaintBufferOffset = nsIntPoint(bounds.x, bounds.y);
|
||||
|
|
Загрузка…
Ссылка в новой задаче