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

Commit 19f3fd09 authored by Chia-I Wu's avatar Chia-I Wu Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: simplify TimeStats::getInstance"

parents 0a0eb2ec ebd88889
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -32,11 +32,8 @@
namespace android {

TimeStats& TimeStats::getInstance() {
    static std::unique_ptr<TimeStats> sInstance;
    static std::once_flag sOnceFlag;

    std::call_once(sOnceFlag, [] { sInstance.reset(new TimeStats); });
    return *sInstance.get();
    static TimeStats sInstance;
    return sInstance;
}

void TimeStats::parseArgs(bool asProto, const Vector<String16>& args, size_t& index,