Don't call invalidateHwcGeometry when handling transactions
This causes composition engine to trigger a full update when
preparing composition state (StateSubset::GeometryAndContent)
vs StateSubset::Content. In single buffer update scenarios
this costs ~14% of whole process CPU instructions or ~20% of main
thread CPU instructions.
Bug: 186200583
Test: Existing tests pass
Change-Id: I8e3be0e4d828823f665fb05ea275401a178eb861
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 7270016..6dc2bbc 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2481,7 +2481,6 @@
handleTransactionLocked(transactionFlags);
mDebugInTransaction = 0;
- invalidateHwcGeometry();
// here the transaction has been committed
}