зеркало из https://github.com/mozilla/gecko-dev.git
Bug 780699 - Prevent possible deadlock by reducing the scope of a synchronized block in GLController. r=ajuma
This commit is contained in:
Родитель
3cfaa1db23
Коммит
a66ad991d2
|
@ -72,10 +72,13 @@ public class GLController {
|
|||
}
|
||||
|
||||
// This function is invoked by JNI
|
||||
public synchronized void resumeCompositorIfValid() {
|
||||
if (mSurfaceValid) {
|
||||
mView.getListener().compositionResumeRequested(mWidth, mHeight);
|
||||
public void resumeCompositorIfValid() {
|
||||
synchronized (this) {
|
||||
if (!mSurfaceValid) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
mView.getListener().compositionResumeRequested(mWidth, mHeight);
|
||||
}
|
||||
|
||||
// Wait until we are allowed to use EGL functions on the Surface backing
|
||||
|
|
Загрузка…
Ссылка в новой задаче