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

Commit 420a72f7 authored by Sally Qi's avatar Sally Qi
Browse files

[Lut HAL] change func name to takeDisplayLut instead.

- also fix some build warnings.

Bug: 329472100
Test: builds
Change-Id: I8b6e25e150c00bdef0606b380bdaeb228cc7ba35
parent abda996e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ class ComposerClientReader {
    }

    // Get the lut(s) requested by hardware composer.
    std::vector<Lut> takeLuts(int64_t display) {
    std::vector<Lut> takeDisplayLuts(int64_t display) {
        LOG_ALWAYS_FATAL_IF(mDisplay && display != *mDisplay);
        auto found = mReturnData.find(display);

@@ -249,8 +249,7 @@ class ComposerClientReader {
        auto& data = mReturnData[displayLuts.display];
        for (auto& lut : displayLuts.luts) {
            if (lut.pfd.get() >= 0) {
                data.luts.push_back({lut.layer,
                                     std::move(ndk::ScopedFileDescriptor(lut.pfd.release())),
                data.luts.push_back({lut.layer, ndk::ScopedFileDescriptor(lut.pfd.release()),
                                     lut.lutProperties});
            }
        }