[DO NOT MERGE] Dump SurfaceControl's layerId to proto
Test: Data appears in Winscope
Bug: 197712697
Change-Id: Ida47f5506a56b19902fcaafc644d1df34ce6c4a3
(cherry picked from commit 120ee45bd0)
This commit is contained in:
committed by
Nataniel Borges
parent
fd48767da7
commit
b88b5349d6
@@ -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;
|
||||
@@ -1540,6 +1541,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);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,4 +29,5 @@ message SurfaceControlProto {
|
||||
|
||||
optional int32 hash_code = 1;
|
||||
optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
|
||||
optional int32 layerId = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user