зеркало из https://github.com/mozilla/gecko-dev.git
Bug 696517 - Make sure our temporary surface allocation succeeded. r=roc
This commit is contained in:
Родитель
dcf9ee4bf1
Коммит
1843dab839
|
@ -1868,6 +1868,14 @@ BasicLayerManager::PaintLayer(gfxContext* aTarget,
|
||||||
untransformedSurface =
|
untransformedSurface =
|
||||||
gfxPlatform::GetPlatform()->CreateOffscreenSurface(gfxIntSize(bounds.width, bounds.height),
|
gfxPlatform::GetPlatform()->CreateOffscreenSurface(gfxIntSize(bounds.width, bounds.height),
|
||||||
gfxASurface::CONTENT_COLOR_ALPHA);
|
gfxASurface::CONTENT_COLOR_ALPHA);
|
||||||
|
if (!untransformedSurface) {
|
||||||
|
if (pushedTargetOpaqueRect) {
|
||||||
|
currentSurface->SetOpaqueRect(gfxRect(0, 0, 0, 0));
|
||||||
|
}
|
||||||
|
NS_ASSERTION(needsSaveRestore, "Should always need to restore with 3d transforms!");
|
||||||
|
aTarget->Restore();
|
||||||
|
return;
|
||||||
|
}
|
||||||
untransformedSurface->SetDeviceOffset(gfxPoint(-bounds.x, -bounds.y));
|
untransformedSurface->SetDeviceOffset(gfxPoint(-bounds.x, -bounds.y));
|
||||||
groupTarget = new gfxContext(untransformedSurface);
|
groupTarget = new gfxContext(untransformedSurface);
|
||||||
} else if (needsGroup) {
|
} else if (needsGroup) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче