Bug 925608 - 8/8: remove mServerSurfaceValid - r=kats
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user