Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e4e0be6 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Expose transaction id

We will need to dump the transaction id in transition traces to be able to reliably associated the start and end of a transition to the states in the SF trace.

Bug: 230462538
Test: N/A
Change-Id: I31d997c4e2b48945bb7181ed82e197f5980ef02c
parent 48036751
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -897,6 +897,10 @@ void SurfaceComposerClient::Transaction::clear() {
    mApplyToken = nullptr;
}

uint64_t SurfaceComposerClient::Transaction::getId() {
    return mId;
}

void SurfaceComposerClient::doUncacheBufferTransaction(uint64_t cacheId) {
    sp<ISurfaceComposer> sf(ComposerService::getComposerService());

+4 −0
Original line number Diff line number Diff line
@@ -461,6 +461,10 @@ public:
        // Clears the contents of the transaction without applying it.
        void clear();

        // Returns the current id of the transaction.
        // The id is updated every time the transaction is applied.
        uint64_t getId();

        status_t apply(bool synchronous = false, bool oneWay = false);
        // Merge another transaction in to this one, clearing other
        // as if it had been applied.