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

Commit af4c6ac3 authored by Shuzhen Wang's avatar Shuzhen Wang Committed by Android (Google) Code Review
Browse files

Merge "Camera2: Temporarily remove surface size 0 check"

parents e373313b bdabb0f5
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;