Bug 980582 - Fall back to the slow 2d path for cross process webgl. r=jrmuizel

This commit is contained in:
Tom Schuster 2014-04-07 11:01:45 +02:00
parent a3db25af3b
commit 2d82c40ad5

View File

@ -36,6 +36,12 @@ CanvasClient::CreateCanvasClient(CanvasClientType aType,
CompositableForwarder* aForwarder,
TextureFlags aFlags)
{
#ifndef MOZ_WIDGET_GONK
if (XRE_GetProcessType() != GeckoProcessType_Default) {
NS_WARNING("Most platforms still need an optimized way to share GL cross process.");
return new CanvasClient2D(aForwarder, aFlags);
}
#endif
if (aType == CanvasClientGLContext &&
aForwarder->GetCompositorBackendType() == LayersBackend::LAYERS_OPENGL) {
aFlags |= TEXTURE_DEALLOCATE_CLIENT;