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

Commit 2b727ac8 authored by David Sodman's avatar David Sodman
Browse files

SF: Add LayerName to CompositionInfo

Add layerName to CompositionInfo for tracking/debug purposes

Test: Compile
Merged-Id: I445a32f2a095dae435581888171a46082880c1e4
Change-Id: I445a32f2a095dae435581888171a46082880c1e4
parent 303407fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, const String8& n
        mLastFrameNumberReceived(0),
        mAutoRefresh(false),
        mFreezeGeometryUpdates(false),
        mBE{this} {
        mBE{this, name.string()} {

    mCurrentCrop.makeInvalid();

+2 −1
Original line number Diff line number Diff line
@@ -23,10 +23,11 @@

namespace android {

LayerBE::LayerBE(Layer* layer)
LayerBE::LayerBE(Layer* layer, std::string layerName)
      : mLayer(layer),
        mMesh(Mesh::TRIANGLE_FAN, 4, 2, 2) {
    compositionInfo.layer = this;
    compositionInfo.layerName = layerName;
}

void LayerBE::onLayerDisplayed(const sp<Fence>& releaseFence) {
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public:
    friend class ColorLayer;
    friend class SurfaceFlinger;

    LayerBE(Layer* layer);
    LayerBE(Layer* layer, std::string layerName);

    void onLayerDisplayed(const sp<Fence>& releaseFence);
    Mesh& getMesh() { return mMesh; }