Bug 1241486 - Allow using pixmaps to share WebGL frames with the basic compositor when it makes sense. r=jgilbert

This commit is contained in:
Nicolas Silva 2016-01-26 15:31:15 +01:00
parent 507930de62
commit 3fdffc6dd0

View File

@ -114,6 +114,12 @@ GLScreenBuffer::CreateFactory(GLContext* gl,
default:
break;
}
#ifdef GL_PROVIDER_GLX
if (!factory && sGLXLibrary.UseSurfaceSharing()) {
factory = SurfaceFactory_GLXDrawable::Create(gl, caps, forwarder, flags);
}
#endif
}
return factory;