Support skipping layer dump on virtual displays
Virtual displays consume significant buffer space and
frequently fill the in memory ring buffer during the transition, causing
test flakiness. To mitigate this problem, do'nt dump traces from virtual
displays by default
Bug: 255715397
Test: atest FlickerLibTest
Change-Id: I4a5d8a1fac52899f126edccf6534bed4876b10e0
diff --git a/services/surfaceflinger/Tracing/LayerTracing.h b/services/surfaceflinger/Tracing/LayerTracing.h
index e73dac6..b32001c 100644
--- a/services/surfaceflinger/Tracing/LayerTracing.h
+++ b/services/surfaceflinger/Tracing/LayerTracing.h
@@ -55,6 +55,7 @@
TRACE_EXTRA = 1 << 3,
TRACE_HWC = 1 << 4,
TRACE_BUFFERS = 1 << 5,
+ TRACE_VIRTUAL_DISPLAYS = 1 << 6,
TRACE_ALL = TRACE_INPUT | TRACE_COMPOSITION | TRACE_EXTRA,
};
void setTraceFlags(uint32_t flags);