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

Commit bf14dbb6 authored by Robert Carr's avatar Robert Carr
Browse files

Factor inputinfo changed out of doTransaction

Test: Existing tests pass. simpleperf
Bug: 186200583
Change-Id: Ic426d55f8e61481033159cd11609efe92f8330b3
parent 0aa188a3
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -700,11 +700,6 @@ uint32_t Layer::doTransaction(uint32_t flags) {
        mNeedsFiltering = getActiveTransform(s).needsBilinearFiltering();
    }

    if (mDrawingState.inputInfoChanged) {
        flags |= eInputInfoChanged;
        mDrawingState.inputInfoChanged = false;
    }

    commitTransaction(mDrawingState);

    return flags;
@@ -1986,7 +1981,7 @@ void Layer::setInputInfo(const InputWindowInfo& info) {
    mDrawingState.inputInfo = info;
    mDrawingState.touchableRegionCrop = extractLayerFromBinder(info.touchableRegionCropHandle);
    mDrawingState.modified = true;
    mDrawingState.inputInfoChanged = true;
    mFlinger->mInputInfoChanged = true;
    setTransactionFlags(eTransactionNeeded);
}

+0 −1
Original line number Diff line number Diff line
@@ -186,7 +186,6 @@ public:
        float cornerRadius;
        int backgroundBlurRadius;

        bool inputInfoChanged;
        InputWindowInfo inputInfo;
        wp<Layer> touchableRegionCrop;