Bug 925608 - 8/8: remove mServerSurfaceValid - r=kats

This commit is contained in:
Benoit Jacob
2013-11-15 11:29:01 -05:00
parent bece47d87f
commit 02eff6fdee
2 changed files with 2 additions and 11 deletions

View File

@@ -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;