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

Commit 6257c5fd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add display Power Mode information while layer dumps" into sc-v2-dev

parents ad87cd09 ecc45aea
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5149,7 +5149,8 @@ void SurfaceFlinger::dumpAllLocked(const DumpArgs& args, std::string& result) co
            continue;
        }

        StringAppendF(&result, "Display %s HWC layers:\n", to_string(*displayId).c_str());
        StringAppendF(&result, "Display %s (%s) HWC layers:\n", to_string(*displayId).c_str(),
                      (isDisplayActiveLocked(display) ? "active" : "inactive"));
        Layer::miniDumpHeader(result);

        const DisplayDevice& ref = *display;
+1 −1
Original line number Diff line number Diff line
@@ -1010,7 +1010,7 @@ private:

    sp<DisplayDevice> getDisplayWithInputByLayer(Layer* layer) const REQUIRES(mStateLock);

    bool isDisplayActiveLocked(const sp<const DisplayDevice>& display) REQUIRES(mStateLock) {
    bool isDisplayActiveLocked(const sp<const DisplayDevice>& display) const REQUIRES(mStateLock) {
        return display->getDisplayToken() == mActiveDisplayToken;
    }