mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1241486 - Allow using pixmaps to share WebGL frames with the basic compositor when it makes sense. r=jgilbert
This commit is contained in:
parent
507930de62
commit
3fdffc6dd0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user