Camera2: Temporarily remove surface size 0 check

Temporarily remove surface size 0 check for deferred surface.

Test: Manual test of camera use case from Hangouts
Bug: 35027811
Change-Id: If1ecb1b322b9608dafb5784d5d9fb83e3517b8e5
This commit is contained in:
Shuzhen Wang
2017-02-06 10:11:18 -08:00
parent f90087168b
commit bdabb0f582

View File

@@ -259,10 +259,6 @@ public final class OutputConfiguration implements Parcelable {
throw new IllegalArgumentException("Unknow surface source class type");
}
if (surfaceSize.getWidth() == 0 || surfaceSize.getHeight() == 0) {
throw new IllegalArgumentException("Surface size needs to be non-zero");
}
mSurfaceGroupId = SURFACE_GROUP_ID_NONE;
mSurfaces = new ArrayList<Surface>();
mRotation = ROTATION_0;