Merge \\"Don\\'t call surfaceCreated for just changed surfaces\\" into nyc-dev am: e4b1fb94e3

am: 93ff5124c6

Change-Id: I7b53bc90c0f4edbf1482924d02fd6361884a7860
This commit is contained in:
John Reck
2016-06-10 18:07:11 +00:00
committed by android-build-merger

View File

@@ -1946,7 +1946,7 @@ public final class ViewRootImpl implements ViewParent,
mSurfaceHolder.setSurfaceFrameSize(mWidth, mHeight);
mSurfaceHolder.mSurfaceLock.unlock();
if (mSurface.isValid()) {
if (!hadSurface || surfaceGenerationId != mSurface.getGenerationId()) {
if (!hadSurface) {
mSurfaceHolder.ungetCallbacks();
mIsCreating = true;
@@ -1959,7 +1959,7 @@ public final class ViewRootImpl implements ViewParent,
}
surfaceChanged = true;
}
if (surfaceChanged) {
if (surfaceChanged || surfaceGenerationId != mSurface.getGenerationId()) {
mSurfaceHolderCallback.surfaceChanged(mSurfaceHolder,
lp.format, mWidth, mHeight);
SurfaceHolder.Callback callbacks[] = mSurfaceHolder.getCallbacks();