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

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

Fix a derp

Fixes: 28074465

I knew I added that flag for a reason...

Change-Id: I6e28237dcd50191769a828bf2646c3a00c14387c
parent 3397c88f
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -52,14 +52,6 @@ namespace renderthread {
    MethodInvokeRenderTask* task = new MethodInvokeRenderTask((RunnableMethod) Bridge_ ## method); \
    ARGS(method) *args = (ARGS(method) *) task->payload()

namespace DumpFlags {
    enum {
        FrameStats = 1 << 0,
        Reset      = 1 << 1,
        JankStats  = 1 << 2,
    };
};

CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent,
        RenderNode* rootRenderNode, IContextFactory* contextFactory) {
    return new CanvasContext(*args->thread, args->translucent,
@@ -422,6 +414,9 @@ CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread,
    if (args->dumpFlags & DumpFlags::Reset) {
        args->context->resetFrameStats();
    }
    if (args->dumpFlags & DumpFlags::JankStats) {
        args->thread->jankTracker().dump(args->fd);
    }
    return nullptr;
}

+8 −0
Original line number Diff line number Diff line
@@ -49,6 +49,14 @@ class ErrorChannel;
class RenderThread;
class RenderProxyBridge;

namespace DumpFlags {
    enum {
        FrameStats = 1 << 0,
        Reset      = 1 << 1,
        JankStats  = 1 << 2,
    };
};

/*
 * RenderProxy is strictly single threaded. All methods must be invoked on the owning
 * thread. It is important to note that RenderProxy may be deleted while it has
+1 −1
Original line number Diff line number Diff line
@@ -122,5 +122,5 @@ void run(const TestScene::Info& info, const TestScene::Options& opts) {
        }
    }

    proxy->dumpProfileInfo(STDOUT_FILENO, 0);
    proxy->dumpProfileInfo(STDOUT_FILENO, DumpFlags::JankStats);
}