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
Родитель 5d976abfbc
Коммит b68d33f4c7
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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;