Bug 1190379 - Disable surface copying on emulators. r=snorp

This commit is contained in:
Eugen Sawin 2015-09-28 16:37:45 +02:00
parent 9653c15d51
commit dd40eb7d00

View File

@ -86,8 +86,10 @@ public:
}
bool WantCopy() {
// Allocating a texture is incredibly slow on PowerVR
return mGLContext->Vendor() != GLVendor::Imagination;
// Allocating a texture is incredibly slow on PowerVR and may fail on
// emulators, see bug 1190379.
return mGLContext->Vendor() != GLVendor::Imagination &&
mGLContext->Renderer() != GLRenderer::AndroidEmulator;
}
EGLImage CopySurface(layers::Image* img) {