Bug 792663: Temporarily require opting in to allocating cross-process xlib surfaces. r=karl

This commit is contained in:
Chris Jones 2012-09-24 14:54:01 -07:00
parent 1447b91a32
commit a4671d6fbf

View File

@ -94,6 +94,9 @@ ShadowLayerForwarder::PlatformAllocBuffer(const gfxIntSize& aSize,
uint32_t aCaps,
SurfaceDescriptor* aBuffer)
{
if (!PR_GetEnv("MOZ_LAYERS_ENABLE_XLIB_SURFACES")) {
return false;
}
if (!UsingXCompositing()) {
// If we're not using X compositing, we're probably compositing on
// the client side, in which case X surfaces would just slow