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

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

Add RenderEngine trace point with layer name.

Bug: 188733347
Test: perfetto
Change-Id: I4f3dbe4f6a76d001296937b63c34723b4851ad6e
parent cda04d4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include <SkSurface.h>
#include <android-base/stringprintf.h>
#include <gl/GrGLInterface.h>
#include <gui/TraceUtils.h>
#include <sync/sync.h>
#include <ui/BlurRegion.h>
#include <ui/DebugUtils.h>
@@ -792,7 +793,7 @@ status_t SkiaGLRenderEngine::drawLayers(const DisplaySettings& display,
    }

    for (const auto& layer : layers) {
        ATRACE_NAME("DrawLayer");
        ATRACE_FORMAT("DrawLayer: %s", layer->name.c_str());

        if (kPrintLayerSettings) {
            std::stringstream ls;