зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1190379 - Disable surface copying on emulators. r=snorp
This commit is contained in:
Родитель
847a4ccf96
Коммит
949294537b
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче