sf: call getPreviousGfxInfo in binder setTransactionState call.
1. ease the pain of the heavy workload of getSignalTimestamp of
each fence object when dump SurfaceFlinger, it may impact performance
test data a lot.
2. Align the previous behavior that did on legacy android version.
The call is triggered only in SF binder thread, main thread is not
impacted.
Change-Id: I453aefbf60fbfca197693cac989124e9ca02c3a5
CRs-Fixed: 2979753
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 30cfc88..150d805 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -2689,6 +2689,10 @@
return parent == nullptr ? false : parent->getPrimaryDisplayOnly();
}
+nsecs_t Layer::getPreviousGfxInfo() {
+ return mFrameTracker.getPreviousGfxInfo();
+}
+
// ---------------------------------------------------------------------------
std::ostream& operator<<(std::ostream& stream, const Layer::FrameRate& rate) {