зеркало из https://github.com/mozilla/gecko-dev.git
Bug 980582 - Fall back to the slow 2d path for cross process webgl. r=jrmuizel
This commit is contained in:
Родитель
5d976abfbc
Коммит
b68d33f4c7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче