Coalesce handlePageFlip and doTransaction traversal
Previous moved code had to execute either before commitTransaction or
update input-flinger. The remaining code in the doTransaction traversal
can execute later (around handlePageFlip). There is still room
for optimization here, in just removing this code, but it will
take more time, and the runtime is pretty fast at this point
once we coalesce the traversal.
Test: Existing tests pass. simpleperf
Bug: 186200583
Change-Id: I53d64db0c17df759904bbb6c1581cc2603a67a48
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 81f569a..044b0b4 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -1234,6 +1234,7 @@
// TODO: Also move visibleRegions over to a boolean system.
bool mInputInfoChanged = false;
bool mSomeChildrenChanged;
+ bool mForceTransactionDisplayChange = false;
bool mGeometryInvalid = false;
bool mAnimCompositionPending = false;