зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1370121 - Catch exceptions when destroying GeckoSurfaceTexture r=jchen
MozReview-Commit-ID: KDoj9s0ebhY
This commit is contained in:
Родитель
2d0e498645
Коммит
35f072dc23
|
@ -112,7 +112,12 @@ public final class GeckoSurfaceTexture extends SurfaceTexture {
|
||||||
setListener(null);
|
setListener(null);
|
||||||
|
|
||||||
if (Versions.feature16Plus) {
|
if (Versions.feature16Plus) {
|
||||||
|
try {
|
||||||
detachFromGLContext();
|
detachFromGLContext();
|
||||||
|
} catch (Exception e) {
|
||||||
|
// This can throw if the EGL context is not current
|
||||||
|
// but we can't do anything about that now.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
release();
|
release();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче