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

Commit 7eca2110 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/28263269'] into 24Q3-release.

Change-Id: Icbec510d73ea95266265aa85d9b8b5bbf4c70a2f
parents 7a225582 80a6fd4a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -268,6 +268,12 @@ int64_t CameraServiceProxyWrapper::encodeSessionConfiguration(
            const auto& gbps = config.getGraphicBufferProducers();
            int32_t width = 0, height = 0;
            if (gbps.size() > 0) {
                if (gbps[0] == nullptr) {
                    ALOGE("%s: Failed to query size due to abandoned surface.",
                            __FUNCTION__);
                    return CameraFeatureCombinationStats::CAMERA_FEATURE_UNKNOWN;
                }

                sp<Surface> surface = new Surface(gbps[0], /*useAsync*/false);
                ANativeWindow *anw = surface.get();