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

Commit c15dd01e authored by Alec Mouri's avatar Alec Mouri
Browse files

Flip boolean op in RenderEngine tracing thread.

Now GPU tracing works.

-_-

Bug: 120992906
Test: systrace
Change-Id: I85bcb921175f5e6d18a8e2fd53a4c67c04983fa6
parent 1f3bcc2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1280,7 +1280,7 @@ void GLESRenderEngine::FlushTracer::loop() {
            std::lock_guard<std::mutex> lock(mMutex);

            mCondition.wait(mMutex,
                            [&]() REQUIRES(mMutex) { return !mQueue.empty() && !mRunning; });
                            [&]() REQUIRES(mMutex) { return !mQueue.empty() || !mRunning; });

            if (!mRunning) {
                // if mRunning is false, then FlushTracer is being destroyed, so