diff options
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
| -rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 6b8341b..c643e1d 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -396,8 +396,10 @@ void RenderProxy::notifyFramePending() { mRenderThread.queueAtFront(task); } -CREATE_BRIDGE3(dumpProfileInfo, CanvasContext* context, int fd, int dumpFlags) { +CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, + int fd, int dumpFlags) { args->context->profiler().dumpData(args->fd); + args->thread->jankTracker().dump(args->fd); if (args->dumpFlags & DumpFlags::kFrameStats) { args->context->dumpFrames(args->fd); } @@ -410,11 +412,23 @@ CREATE_BRIDGE3(dumpProfileInfo, CanvasContext* context, int fd, int dumpFlags) { void RenderProxy::dumpProfileInfo(int fd, int dumpFlags) { SETUP_TASK(dumpProfileInfo); args->context = mContext; + args->thread = &mRenderThread; args->fd = fd; args->dumpFlags = dumpFlags; postAndWait(task); } +CREATE_BRIDGE1(resetProfileInfo, CanvasContext* context) { + args->context->resetFrameStats(); + return nullptr; +} + +void RenderProxy::resetProfileInfo() { + SETUP_TASK(resetProfileInfo); + args->context = mContext; + postAndWait(task); +} + CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) { args->thread->jankTracker().dump(args->fd); |
