summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Kean Mariotti <keanmariotti@google.com> 2023-04-27 16:42:13 +0000
committer Kean Mariotti <keanmariotti@google.com> 2023-09-01 10:40:30 +0000
commit7941ecfe603da0955783c5368ae1959aaaaf89c0 (patch)
tree43122ca540941e9b61b32a43f1336ef3a0dc4a2f /services/surfaceflinger/Layer.cpp
parent4ba343c8885c8956fba9c20003651f7a9c8d8256 (diff)
Revert^2 Revert layer proto format back to proto2
Perfetto doesn't support proto3, hence reverted to proto2. This reverts commit dcc0bab76dbf3156f18e4dd2697aa7220ad7a8e0 Bug: b/284424784 Test: atest libsurfaceflinger_unittest && atest transactiontrace_testsuite Change-Id: I107a56f57f547056c44877e776d169dd21db618a
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index d4babdbd79..9a5173ba9b 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -2325,15 +2325,11 @@ void Layer::writeToProtoCommonState(perfetto::protos::LayerProto* layerInfo,
auto parent = useDrawing ? mDrawingParent.promote() : mCurrentParent.promote();
if (parent != nullptr) {
layerInfo->set_parent(parent->sequence);
- } else {
- layerInfo->set_parent(-1);
}
auto zOrderRelativeOf = state.zOrderRelativeOf.promote();
if (zOrderRelativeOf != nullptr) {
layerInfo->set_z_order_relative_of(zOrderRelativeOf->sequence);
- } else {
- layerInfo->set_z_order_relative_of(-1);
}
layerInfo->set_is_relative_of(state.isRelativeOf);