mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 780699 - Prevent possible deadlock by reducing the scope of a synchronized block in GLController. r=ajuma
This commit is contained in:
parent
9636508719
commit
c0d9057cff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user