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

Commit d951dd2b authored by Pablo Gamito's avatar Pablo Gamito Committed by Android (Google) Code Review
Browse files

Merge "Expose transaction id" into tm-qpr-dev

parents 336fe7f1 3e4e0be6
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.