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

Commit cd3a22cf authored by John Reck's avatar John Reck
Browse files

Don't start RenderThread to do trimMemory

 Bug: 16825138

Change-Id: I35f57898b14bc8526c3d93a3003bca6f5a3d7fbe
parent b287c938
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -336,12 +336,15 @@ CREATE_BRIDGE2(timMemory, RenderThread* thread, int level) {
}

void RenderProxy::trimMemory(int level) {
    // Avoid creating a RenderThread to do a trimMemory.
    if (RenderThread::hasInstance()) {
        RenderThread& thread = RenderThread::getInstance();
        SETUP_TASK(timMemory);
        args->thread = &thread;
        args->level = level;
        thread.queue(task);
    }
}

CREATE_BRIDGE0(fence) {
    // Intentionally empty