mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 834243 - avoid calling serverSurfaceChanged before the compositor is created - r=vladv
This commit is contained in:
parent
1cbdc1508d
commit
4d158f396f
@ -153,6 +153,10 @@ public class GLController {
|
||||
return mServerSurfaceValid;
|
||||
}
|
||||
|
||||
public boolean isCompositorCreated() {
|
||||
return mCompositorCreated;
|
||||
}
|
||||
|
||||
private void initEGL() {
|
||||
if (mEGL != null) {
|
||||
return;
|
||||
|
@ -514,8 +514,13 @@ public class LayerView extends FrameLayout implements Tabs.OnTabsChangedListener
|
||||
* TextureView instead of a SurfaceView, the first phase is skipped.
|
||||
*/
|
||||
private void onSizeChanged(int width, int height) {
|
||||
if (!mGLController.isServerSurfaceValid() || mSurfaceView == null) {
|
||||
surfaceChanged(width, height);
|
||||
if (!mGLController.isCompositorCreated()) {
|
||||
return;
|
||||
}
|
||||
|
||||
surfaceChanged(width, height);
|
||||
|
||||
if (mSurfaceView == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user