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

Commit a1902016 authored by Sally Qi's avatar Sally Qi Committed by Android (Google) Code Review
Browse files

Merge "[Lut screenshot] avoid calling getLuts if there is no buffer" into main

parents d90a085a c0766809
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -128,6 +128,8 @@ ScreenCaptureOutput::generateLuts() {
            }
        }

        // only call getLuts if buffers are not empty
        if (!buffers.empty()) {
            std::vector<aidl::android::hardware::graphics::composer3::Luts> luts;
            if (const auto physicalDisplayId = mDisplayIdVariant.and_then(asPhysicalDisplayId)) {
                auto& hwc = getCompositionEngine().getHwComposer();
@@ -140,6 +142,7 @@ ScreenCaptureOutput::generateLuts() {
                }
            }
        }
    }
    return lutsMapper;
}