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

Commit 120ee45b authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Dump SurfaceControl's layerId to proto

Test: Data appears in Winscope
Bug: 197712697
Change-Id: Ida47f5506a56b19902fcaafc644d1df34ce6c4a3
parent 9e98140a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import static android.graphics.Matrix.MSKEW_Y;
import static android.graphics.Matrix.MTRANS_X;
import static android.graphics.Matrix.MTRANS_Y;
import static android.view.SurfaceControlProto.HASH_CODE;
import static android.view.SurfaceControlProto.LAYER_ID;
import static android.view.SurfaceControlProto.NAME;

import android.annotation.FloatRange;
@@ -1537,6 +1538,7 @@ public final class SurfaceControl implements Parcelable {
        final long token = proto.start(fieldId);
        proto.write(HASH_CODE, System.identityHashCode(this));
        proto.write(NAME, mName);
        proto.write(LAYER_ID, getLayerId());
        proto.end(token);
    }

+1 −0
Original line number Diff line number Diff line
@@ -29,4 +29,5 @@ message SurfaceControlProto {

    optional int32 hash_code = 1;
    optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
    optional int32 layerId = 3;
}