DO NOT MERGE: Track SurfaceComposerClient changes
surfaceControlStats now includes the acquire count. Bug: 197269223 Bug: 212846697 Test: Existing tests pass Change-Id: I29f2e9ba1c100a831be5eddce2c2a442d136d98e
This commit is contained in:
@@ -298,7 +298,7 @@ void ASurfaceTransaction_setOnComplete(ASurfaceTransaction* aSurfaceTransaction,
|
||||
|
||||
auto& aSurfaceControlStats = aSurfaceTransactionStats.aSurfaceControlStats;
|
||||
|
||||
for (const auto& [surfaceControl, latchTime, acquireTime, presentFence, previousReleaseFence, transformHint, frameEvents] : surfaceControlStats) {
|
||||
for (const auto& [surfaceControl, latchTime, acquireTime, presentFence, previousReleaseFence, transformHint, frameEvents, ignore] : surfaceControlStats) {
|
||||
ASurfaceControl* aSurfaceControl = reinterpret_cast<ASurfaceControl*>(surfaceControl.get());
|
||||
aSurfaceControlStats[aSurfaceControl].acquireTime = acquireTime;
|
||||
aSurfaceControlStats[aSurfaceControl].previousReleaseFence = previousReleaseFence;
|
||||
@@ -650,7 +650,7 @@ void ASurfaceTransaction_setOnCommit(ASurfaceTransaction* aSurfaceTransaction, v
|
||||
for (const auto&
|
||||
[surfaceControl, latchTime, acquireTime, presentFence,
|
||||
previousReleaseFence, transformHint,
|
||||
frameEvents] : surfaceControlStats) {
|
||||
frameEvents, ignore] : surfaceControlStats) {
|
||||
ASurfaceControl* aSurfaceControl =
|
||||
reinterpret_cast<ASurfaceControl*>(surfaceControl.get());
|
||||
aSurfaceControlStats[aSurfaceControl].acquireTime = acquireTime;
|
||||
@@ -662,4 +662,4 @@ void ASurfaceTransaction_setOnCommit(ASurfaceTransaction* aSurfaceTransaction, v
|
||||
Transaction* transaction = ASurfaceTransaction_to_Transaction(aSurfaceTransaction);
|
||||
|
||||
transaction->addTransactionCommittedCallback(callback, context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user