diff --git a/mobile/android/base/gfx/GLController.java b/mobile/android/base/gfx/GLController.java index e90ecbe8c6be..edbd3a3715d1 100644 --- a/mobile/android/base/gfx/GLController.java +++ b/mobile/android/base/gfx/GLController.java @@ -36,7 +36,6 @@ public class GLController { private static GLController sInstance; private LayerView mView; - private boolean mServerSurfaceValid; private int mWidth, mHeight; /* This is written by the compositor thread (while the UI thread @@ -82,8 +81,6 @@ public class GLController { ThreadUtils.assertOnUiThread(); Log.w(LOGTAG, "GLController::serverSurfaceDestroyed() with mCompositorCreated=" + mCompositorCreated); - mServerSurfaceValid = false; - // We need to coordinate with Gecko when pausing composition, to ensure // that Gecko never executes a draw event while the compositor is paused. // This is sent synchronously to make sure that we don't attempt to use @@ -100,13 +97,11 @@ public class GLController { synchronized void serverSurfaceChanged(int newWidth, int newHeight) { ThreadUtils.assertOnUiThread(); - Log.w(LOGTAG, "GLController::serverSurfaceChanged(" + newWidth + ", " + newHeight + ") with mServerSurfaceValid=" + mServerSurfaceValid); + Log.w(LOGTAG, "GLController::serverSurfaceChanged(" + newWidth + ", " + newHeight + ")"); mWidth = newWidth; mHeight = newHeight; - mServerSurfaceValid = true; - updateCompositor(); } @@ -140,10 +135,6 @@ public class GLController { mCompositorCreated = true; } - public boolean isServerSurfaceValid() { - return mServerSurfaceValid; - } - private void initEGL() { if (mEGL != null) { return; diff --git a/mobile/android/base/gfx/LayerView.java b/mobile/android/base/gfx/LayerView.java index 99685ccbd34f..a26fb38900be 100644 --- a/mobile/android/base/gfx/LayerView.java +++ b/mobile/android/base/gfx/LayerView.java @@ -514,7 +514,7 @@ 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) { + if (mSurfaceView == null) { surfaceChanged(width, height); return; }