Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdabb0f5 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

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
parent f9008716
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;